Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: cannot pickle '_thread.lock' object #1954

Closed
AndyYue99 opened this issue Jul 17, 2023 · 1 comment
Closed

TypeError: cannot pickle '_thread.lock' object #1954

AndyYue99 opened this issue Jul 17, 2023 · 1 comment

Comments

@AndyYue99
Copy link

mac os : 10.15.7
python: 3.9.17
paddlepaddle: 2.5.0
paddle-serving-app 0.8.3
paddle-serving-client 0.8.3
paddle-serving-server 0.8.3
安装的是cpu版本的,按照https:/PaddlePaddle/PaddleOCR/blob/release/2.6/deploy/pdserving/README_CN.md操作,执行到python3 web_service.py --config=config.yml &>log.txt &的时候报下面的错误

[PipelineServicer] succ init
Traceback (most recent call last):
File "/Users/xxxxx/projectPath/PaddleOCR/deploy/pdserving/web_service.py", line 169, in
uci_service.run_service()
File "/Users/xxxxx/anaconda/envs/myEnv/lib/python3.9/site-packages/paddle_serving_server/web_service.py", line 69, in run_service
self._server.run_server()
File "/Users/xxxxx/anaconda/envs/myEnv/lib/python3.9/site-packages/paddle_serving_server/pipeline/pipeline_server.py", line 318, in run_server
self._run_grpc_gateway(
File "/Users/xxxxx/anaconda/envs/myEnv/lib/python3.9/site-packages/paddle_serving_server/pipeline/pipeline_server.py", line 148, in _run_grpc_gateway
self._proxy_server.start()
File "/Users/xxxxx/anaconda/envs/myEnv/lib/python3.9/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
File "/Users/xxxxx/anaconda/envs/myEnv/lib/python3.9/multiprocessing/context.py", line 224, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "/Users/xxxxx/anaconda/envs/myEnv/lib/python3.9/multiprocessing/context.py", line 284, in _Popen
return Popen(process_obj)
File "/Users/xxxxx/anaconda/envs/myEnv/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 32, in init
super().init(process_obj)
File "/Users/xxxxx/anaconda/envs/myEnv/lib/python3.9/multiprocessing/popen_fork.py", line 19, in init
self._launch(process_obj)
File "/Users/xxxxx/anaconda/envs/myEnv/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 47, in _launch
reduction.dump(process_obj, fp)
File "/Users/xxxxx/anaconda/envs/myEnv/lib/python3.9/multiprocessing/reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: cannot pickle '_thread.lock' object

@github-actions
Copy link

Message that will be displayed on users' first issue

@paddle-bot paddle-bot bot closed this as completed Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant