Skip to content

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

Description

@chrisllove

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions