ImportError: No module named c2
See original GitHub issueExpected results
What did you expect to see? test success
Actual results
What did you observe instead? import utils.c2 ImportError: No module named c2
Detailed steps to reproduce
E.g.:
python2 $DETECTRON/tests/test_spatial_narrow_as_op.py
System information
- Operating system: Ubuntu 14.01
- Compiler version: gcc4.8.4
- CUDA version: CUDA 8.0
- cuDNN version: cuDNN 6.0
- NVIDIA driver version: nvidia-384.111
- GPU models (for all devices if they are not all the same): GTX 1050Ti
PYTHONPATH
environment variable: /usr/local:/opt/ros/indigo/lib/python2.7/dist-packages:/usr/local::/home/znjs/caffe2/build:/home/znjs/caffe2/buildpython --version
output: Python 2.7.6- Anything else that seems relevant: ?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:10 (1 by maintainers)
Top Results From Across the Web
ImportError: No module named 'cv2' Python3 - Stack Overflow
Try pip3 install opencv-python. to get the cv2 . I'm not sure when opencv-python became available. I'd been building opencv by hand, ...
Read more >Fix ModuleNotFoundError (No Module Named CV2) Python ...
Fix ModuleNotFoundError ( No Module Named CV2) Python Import Error (If Installed / If Exists). 2.9K views 3 months ago.
Read more >Python ImportError: No module named cv2 - YouTube
How to fix Python ImportError : No module named cv2apt get install python-opencvpip install opencv-python.
Read more >ImportError: No module named hgdemandimport when building
I took the steps at https://bugzilla.mozilla.org/show_bug.cgi?id=1669934#c2 but that didn't fix it. I've run mach bootstrap as well.
Read more >Install OpenCV 3 and Python 2.7+ on Ubuntu - PyimageSearch
There are many reasons why the cv2 module could fail to import. The most common reasons are that your virtual environment was not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @earlysleepearlyup, please make sure that you have set up Python modules following the installation instructions.
Relevant extract:
@YoungMagic But there is no lib folder under DETECTRON project