hukaixuan19970627 / DOTA_devkit_YOLO

Trans DOTA OBB format(poly format) to YOLO format.
195 stars 39 forks source link

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

Open chrisllove opened 9 months ago

chrisllove commented 9 months ago

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'