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

运行ResultMerge.py 报错ModuleNotFoundError: No module named '_polyiou' #24

Open
chrisllove opened this issue Dec 6, 2023 · 0 comments

Comments

@chrisllove
Copy link

ubuntu系统, swig我已经装了,步骤如下。 还是报错,不知道啥原因
sudo apt-get install swig
swig -c++ -python polyiou.i
python setup.py build_ext --inplace

完整报错:
Traceback (most recent call last):
File "/home/user/Desktop/ultralytics-v8/dataset/DOTA_devkit_YOLO-master/polyiou.py", line 18, in swig_import_helper
fp, pathname, description = imp.find_module('_polyiou', [dirname(file)])
File "/home/user/anaconda3/lib/python3.9/imp.py", line 296, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_polyiou'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/user/Desktop/ultralytics-v8/dataset/DOTA_devkit_YOLO-master/ResultMerge.py", line 13, in
import polyiou
File "/home/user/Desktop/ultralytics-v8/dataset/DOTA_devkit_YOLO-master/polyiou.py", line 28, in
_polyiou = swig_import_helper()
File "/home/user/Desktop/ultralytics-v8/dataset/DOTA_devkit_YOLO-master/polyiou.py", line 20, in swig_import_helper
import _polyiou
ModuleNotFoundError: No module named '_polyiou'

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