PaddlePaddle / Serving

A flexible, high-performance carrier for machine learning models(『飞桨』服务化部署框架)
Apache License 2.0
901 stars 250 forks source link

ModuleNotFoundError: No module named 'paddle_serving_server.proto #1991

Open UserShen-001 opened 7 months ago

UserShen-001 commented 7 months ago

An error occurs when running command : ``λ 71fd011ae915 /home/Serving/python {v0.9.0} python3 -m paddle_serving_server.serve check Traceback (most recent call last): File "/usr/local/lib/python3.6/runpy.py", line 183, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/usr/local/lib/python3.6/runpy.py", line 109, in _get_module_details import(pkg_name) File "/home/Serving/python/paddle_serving_server/init.py", line 22, in from paddle_serving_server import ( File "/home/Serving/python/paddle_serving_server/server.py", line 20, in from .proto import server_configure_pb2 as server_sdk ModuleNotFoundError: No module named 'paddle_serving_server.proto'

Use pip list to check the current environment. Paddle-serving-client ,paddle-serving-server and paddle-serving-server are installed. `λ 71fd011ae915 /home/Serving/python {v0.9.0} pip list Package Version


attrs 22.2.0 av 8.0.3 beautifulsoup4 4.12.3 certifi 2024.2.2 charset-normalizer 2.0.12 click 7.1.2 decord 0.4.2 Flask 1.1.4 func-timeout 4.3.5 google 3.0.0 google-cloud 0.34.0 grpcio 1.33.2 grpcio-tools 1.33.2 idna 3.6 importlib-metadata 4.8.3 iniconfig 1.1.1 itsdangerous 1.1.0 Jinja2 2.11.3 MarkupSafe 1.1.1 numpy 1.19.5 opencv-python 3.4.17.61 packaging 21.3 paddle-serving-app 0.9.0 paddle-serving-client 0.9.0 paddle-serving-server 0.9.0 Pillow 8.4.0 pip 21.3.1 pluggy 1.0.0 prometheus-client 0.12.0 protobuf 3.19.6 py 1.11.0 pyclipper 1.2.1 pyparsing 3.0.7 pytest 7.0.1 PyYAML 6.0.1 requests 2.27.1 sentencepiece 0.1.96 setuptools 59.6.0 Shapely 1.8.0 SimpleITK 2.1.1.2 six 1.16.0 soupsieve 2.3.2.post1 tomli 1.2.3 typing_extensions 4.1.1 ujson 4.3.0 urllib3 1.26.18 Werkzeug 1.0.1 wheel 0.34.2 zipp 3.6.0`

Currently python is 3.6 λ 71fd011ae915 /home/Serving/python {v0.9.0} python3 -V Python 3.6.0

github-actions[bot] commented 7 months ago

Message that will be displayed on users' first issue