Closed dondon03-10 closed 4 months ago
看看是不是python版本问题,Python=3.10。如果再不行,可以把from . import GrabSim_pb2改为绝对路径试试,可能是路径不对找不到。GrabSim_pb2_grpc.pyd 和 GrabSim_pb2.pyd 是两个文件,默认是在\RoboWaiter\robowaiter\proto下面,你可以移动它们。
将python版本切换为3.10后安装robowaiter软件包会报错,ERROR: Package 'robowaiter' requires a different Python: 3.10.14 not in '<4.0,>=3.11'
(python3.10) F:\RoboWaiter>pip install -e .
Obtaining file:///F:/RoboWaiter
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml) ... done
INFO: pip is looking at multiple versions of robowaiter to determine which version is compatible with other requirements. This could take a while.
ERROR: Package 'robowaiter' requires a different Python: 3.10.14 not in '<4.0,>=3.11'
(python3.10) F:\RoboWaiter>python --version
Python 3.10.14
通过修改pyproject文件中的python版本解决了问题,我为可能带来的不便感到抱歉。
问题描述 在运行 run_ui.py时,报错:ImportError: DLL load failed while importing GrabSim_pb2: 找不到指定的模块。
代码示例