Error Messages:
bert_as_service + tensorflow 2.1.0 Tensorflow 2.1.0 is not tested!
So reinstalled the virtual environment
I:?[35mVENTILATOR?[0m:freeze, optimize and export graph, could take a while… d:\anaconda\envs\tensorflow\lib\site-packages\bert_serving\server\helper.py:176: UserWarning: Tensorflow 2.1.0 is not tested! It may or may not work. Feel free to submit an i ssue at https://github.com/hanxiao/bert-as-service/issues/ ‘Feel free to submit an issue at https://github.com/hanxiao/bert-as-service/issues/’ % tf.version) E:?[36mGRAPHOPT?[0m:fail to optimize the graph! Traceback (most recent call last): File “d:\anaconda\envs\tensorflow\lib\runpy.py”, line 193, in run_module_as_main “main”, mod_spec) File “d:\anaconda\envs\tensorflow\lib\runpy.py”, line 85, in run_code exec(code, run_globals) File "D:\Anaconda\envs\tensorflow\Scripts\bert-serving-start.exe_main.py", line 9, in File "d:\anaconda\envs\tensorflow\lib\site-packages\bert_serving\server\cli_init.py", line 4, in main with BertServer(get_run_args()) as server: File “d:\anaconda\envs\tensorflow\lib\site-packages\bert_serving\server_init_.py”, line 71, in init self.graph_path, self.bert_config = pool.apply(optimize_graph, (self.args,)) TypeError: ‘NoneType’ object is not iterable
It can be used by installing tensorflow1.10+python3.6.10
Read More:
- [Solved] RuntimeError: Numpy is not available (Associated Torch or Tensorflow)
- [Solved] Tensorflow Error: NameError: name ‘layers‘ is not defined
- [How to Fix]RuntimeError: Python is not installed as a framework, If you are using (Ana)Conda
- [Solved] R Error: Python module tensorflow.keras was not found.
- How to Solve Python Importerror: DLL load failed: unable to find the specified program using tensorflow
- import statsmodels.api as sm Error: ImportError: DLL load failed while importing _arpack: The specified program could not be found.
- TensorFlow Install Error: Could not load dynamic library ‘*****.dll‘; dlerror: ********.dll not found
- [Solved] TensorFlow Error: GetNext() failed because the iterator has not been initialized
- Python Error: Failed to establish a new connection: [Errno -2] Name or service not known
- PyCharm: How to Solve Tensorflow_datasets Import Error
- [Solved] Tensorflow cuda Error: Could not load dynamic library ‘libcudart.so.11.0‘; dlerror: libcudart.so.11.0:
- An error is reported in the requirements code of the generated project
- Tensorflow import Error: ImportError: libcuda.so.1: cannot open shared object file: No such file or dire
- import matplotlib.pyplot as plt [How to Solve]
- [Solved] Error: AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘
- Mac Selenium Use Error: Can not connect to the Service chromedriver
- [Solved] AttributeError: module ‘tensorflow‘ has no attribute ‘distributions‘
- Python AttributeError: module ‘tensorflow‘ has no attribute ‘InteractiveSession‘
- Tensorflow: Common Usage of tf.get_variable_scope()
- tensorflow2.3 InvalidArgumentError: jpeg::Uncompress failed [How to Solve]