RoIAlign.pytorch icon indicating copy to clipboard operation
RoIAlign.pytorch copied to clipboard

When I tested it, it gives an importerror: no module named _crop_and_resize

Open chang0977 opened this issue 6 years ago • 5 comments

sudo python tests/test.py

('Unexpected error:', <type 'exceptions.ImportError'>) Traceback (most recent call last): File "tests/test.py", line 13, in from roi_align.crop_and_resize import CropAndResizeFunction File "/usr/local/lib/python2.7/dist-packages/roi_align-0.0.1-py2.7.egg/roi_align/crop_and_resize.py", line 7, in from ._ext import crop_and_resize as _backend File "/usr/local/lib/python2.7/dist-packages/roi_align-0.0.1-py2.7.egg/roi_align/_ext/crop_and_resize/init.py", line 3, in from ._crop_and_resize import lib as _lib, ffi as _ffi ImportError: No module named _crop_and_resize

chang0977 avatar Aug 10 '18 06:08 chang0977

I also have this problem, Do you have solved it?

gjd2017 avatar Aug 15 '18 11:08 gjd2017

When I recompiled roi_align it was solved. If you did not compile it before, please do so.

chang0977 avatar Aug 16 '18 05:08 chang0977

Thanks , got it.

gjd2017 avatar Aug 16 '18 09:08 gjd2017

python setup.py install running install running bdist_egg running egg_info creating roi_align.egg-info writing roi_align.egg-info\PKG-INFO writing dependency_links to roi_align.egg-info\dependency_links.txt writing requirements to roi_align.egg-info\requires.txt writing top-level names to roi_align.egg-info\top_level.txt writing manifest file 'roi_align.egg-info\SOURCES.txt' reading manifest file 'roi_align.egg-info\SOURCES.txt' writing manifest file 'roi_align.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_py creating build creating build\lib.win-amd64-3.6 creating build\lib.win-amd64-3.6\roi_align copying roi_align\crop_and_resize.py -> build\lib.win-amd64-3.6\roi_align copying roi_align\roi_align.py -> build\lib.win-amd64-3.6\roi_align copying roi_align_init_.py -> build\lib.win-amd64-3.6\roi_align running build_ext error: [WinError 2] 系统找不到指定的文件。

when i compile roi_align , this error occured. what should i do to solve this problem? or are there any packages that i didn't install ?

holyYodu avatar Jul 04 '19 07:07 holyYodu

python setup.py install running install running bdist_egg running egg_info creating roi_align.egg-info writing roi_align.egg-info\PKG-INFO writing dependency_links to roi_align.egg-info\dependency_links.txt writing requirements to roi_align.egg-info\requires.txt writing top-level names to roi_align.egg-info\top_level.txt writing manifest file 'roi_align.egg-info\SOURCES.txt' reading manifest file 'roi_align.egg-info\SOURCES.txt' writing manifest file 'roi_align.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_py creating build creating build\lib.win-amd64-3.6 creating build\lib.win-amd64-3.6\roi_align copying roi_align\crop_and_resize.py -> build\lib.win-amd64-3.6\roi_align copying roi_align\roi_align.py -> build\lib.win-amd64-3.6\roi_align copying roi_align__init__.py -> build\lib.win-amd64-3.6\roi_align running build_ext error: [WinError 2] 系统找不到指定的文件。

when i compile roi_align , this error occured. what should i do to solve this problem? or are there any packages that i didn't install ?

same question

yyc-0126 avatar Apr 20 '20 08:04 yyc-0126