question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: No module named c2

See original GitHub issue

Expected 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/build
  • python --version output: Python 2.7.6
  • Anything else that seems relevant: ?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
ir413commented, Jan 30, 2018

Hi @earlysleepearlyup, please make sure that you have set up Python modules following the installation instructions.

Relevant extract:

Set up Python modules:

cd $DETECTRON/lib && make
6reactions
gclsoftcommented, Jun 20, 2018

@YoungMagic But there is no lib folder under DETECTRON project image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found