You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Charlie0329
changed the title
解决openpilot启动manager.py时报错ModuleNotFoundError: No module named 'cereal'的问题
解决manager.py报错ModuleNotFoundError: No module named 'cereal'的问题
Mar 9, 2023
Charlie0329
changed the title
解决manager.py报错ModuleNotFoundError: No module named 'cereal'的问题
解决manager.py报错ModuleNotFoundError: No module named 'cereal'
Mar 9, 2023
root cause:
如果直接运行python交互模式
import sys
print(sys.path)
会发现其中没有/data/openpilot。因此直接从命令行运行manager.py至import cereal时会出错。
解决办法是在/.bashrc中加入一行:
export PYTHONPATH=${PYTHONPATH}:/data/openpilot
但是,如果从./launch_openpilot.sh中开始运行,由于执行了
export PYTHONPATH="$PWD"
因此没有问题
The text was updated successfully, but these errors were encountered: