Error message:
Changing the config.yaml path in the web_service.py file to an absolute path is also incorrect, and also tried unset https_proxy
unset http_proxy, but the error code is as follows:
More information: The
model is self-trained det (SAST) rec (EN_Number_Lite)
The configuration of the model corresponding to the depoly has also been modified
Traceback (most recent call last):
File "web_service.py", line 159, in <module>
uci_service.prepare_pipeline_config("config.yml")
File "/home/dapeng/.local/lib/python3.7/site-packages/paddle_serving_server/web_service.py", line 65, in prepare_pipeline_config
self._server.prepare_server(yaml_file)
File "/home/dapeng/.local/lib/python3.7/site-packages/paddle_serving_server/pipeline/pipeline_server.py", line 172, in prepare_server
yml_file=yml_file, yml_dict=yml_dict)
File "/home/dapeng/.local/lib/python3.7/site-packages/paddle_serving_server/pipeline/pipeline_server.py", line 344, in load_server_yaml_conf
conf = yaml.load(f.read())
TypeError: load() missing 1 required positional argument: 'Loader'
Solution:
vim /home/dapeng/.local/lib/python3.7/site-packages/paddle_serving_server/pipeline/pipeline_server.py
# At line 344, after the conf = yaml.load() brackets addLoader=yaml.FullLoaderv
conf = yaml.load(f.read(), Loader=yaml.FullLoader)
Read More:
- [Solved] error: this statement may fall through [-Werror=implicit-fallthrough=]
- [Solved] CentOS7 python import docker Error: No module named selectors
- [Solved] xdd-plus-fetch qrcode error: Packet timed out,2-error: unknown flag
- spack install failed with bootstrapping [How to Solve]
- [Solved] Ubuntu Execute uci Error: uci: error while loading shared libraries: lib
- Install and start the tftp-server server and possible solutions to Redirecting to /bin/systemctl restart xinetd.service problems
- Failed to Initialize Error: error execution phase preflight: [preflight] Some fatal errors occurred: [ERROR Port-6443]
- [Solved] ERROR: error loading sources list: The read operation timed out
- [Solved] Zabix web Access Error: Database error No route to host
- [Solved] sys.stderr.write(f“ERROR: {exc}“) SyntaxError: invalid syntax
- Common configuration methods of nginx
- Error while loading shared libraries [How to Solve]
- [Solved] /usr/local/libexec/mecab/mecab-dict-index: error while loading shared libraries: libmecab.so.2: cannot open shared object file: No such file or directory
- nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
- [Solved] Dvc push Error: (ERROR: configuration error…)
- Nginx Startup Error: “/var/run/nginx/nginx.pid” failed” [How to Solve]
- Errors encountered when configuring static ip on Ubuntu 18.04
- MAC: Clion configure C compiler Error: The C compiler identification is unknown
- [Solved] FTP Setup Error: Job for vsftpd.service failed because the control process exited with error code…
- SCP path contains special characters Error [How to Solve]