-
Notifications
You must be signed in to change notification settings - Fork 22
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
ImportError: No module named 'utils.cython_modules.cython_bbox' #2
Comments
For anyone who are troubled by the case 2, i.e. the corresponding binaries have been already put into the proper directory but still get the error of 'Not Found', you should rename the binaries as below:
this solution is found from others' discussion |
Hi @TreeLLi, First off, thanks for stoping by! :) |
Thanks for your explanation. The problem has been addressed perfectly. But I still think including the latest cython binaries in your directory will be a good idea, since it's not like a problem of missing some external library e.g. easydict. Besides, currently the solution is not such easy to find, for people have to combine the info from CNTK website and others' issue discussion. So updating the cython module or pointing it out clearly in the Readme file will be super friendly to some beginners specifically for CNTK Faster-RCNN. |
@TreeLLi that's very accurate! Thanks for feedback! |
I know this error has been widely discussed and here are some specifications I found for this program.
The default cython binaries in the directory
'Detection/utils/cython_modules/'
only support for particular version, 3.4(Linux) and 3.5(Windows), of Python. So anyone who got the error info like the title should checks if your Python version is suitable.The latest cython module binaries have been updated on the repo of CNTK. But after copying the corresponding binaries for Python 3.5(Linux), i.e.
cpu_nms.cpython-35m.so
andcython_bbox.cpython-35m.so
, into the directory of current project 'Detection/utils/cython_modules/
', it still reports the same error as the title during compilation, while the program will run well if I change my Python to 3.4 by Anaconda virtual environment and run the same project, i.e. same directory and same program.Another solution for this problem is to recompile the above cython modules by ourselves following instructions from CNTK Guide. The lucky thing is that the program can pass the compilation without any error report, while unfortunately it produces/prints some unknown error info during the training.
All of my testing are run on the latest DSVM for Linux.
Default Python: Python 3.5 with CNTK 2.2
Python 3.4 Virtual Environment: Python 3.4 with CNTK 2.1
The text was updated successfully, but these errors were encountered: