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

解决manager.py报错ModuleNotFoundError: No module named 'cereal' #10

Open
Charlie0329 opened this issue Mar 9, 2023 · 0 comments
Open
Assignees

Comments

@Charlie0329
Copy link
Collaborator

Charlie0329 commented 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"
因此没有问题

@Charlie0329 Charlie0329 self-assigned this Mar 9, 2023
@Charlie0329 Charlie0329 changed the title 解决openpilot启动manager.py时报错ModuleNotFoundError: No module named 'cereal'的问题 解决manager.py报错ModuleNotFoundError: No module named 'cereal'的问题 Mar 9, 2023
@Charlie0329 Charlie0329 changed the title 解决manager.py报错ModuleNotFoundError: No module named 'cereal'的问题 解决manager.py报错ModuleNotFoundError: No module named 'cereal' Mar 9, 2023
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