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

运行报错 #8

Open
alsosos opened this issue Jan 13, 2021 · 1 comment
Open

运行报错 #8

alsosos opened this issue Jan 13, 2021 · 1 comment

Comments

@alsosos
Copy link

alsosos commented Jan 13, 2021

用pyhton3 运行 python3 calibration.py --config ./configs/sample.yaml报错
Traceback (most recent call last):
File "calibration.py", line 27, in
import segmentation_ext
ImportError: dynamic module does not define module export function (PyInit_segmentation_ext)
python2 运行python calibration.py --config ./configs/sample.yaml报错
Traceback (most recent call last):
File "calibration.py", line 27, in
import segmentation_ext
ImportError: No module named segmentation_ext
请问怎么解决

@HViktorTsoi
Copy link
Owner

对于python3下的报错,请参考issue #1 的解决方案;

对于python2下的报错, 看起来您的segmentaion_ext是在python3的环境下编译安装的,如果要使用python2,还要在python2的环境重新编译安装一次

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

2 participants