How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Russell H. Your Own Question

Russell H.
Russell H., Programmer & Coder
Category: Programming
Satisfied Customers: 9534
Experience:  Programmer & Coder
13568747
Type Your Programming Question Here...
Russell H. is online now
A new question is answered every 9 seconds

I'm trying to install opencv on Ubuntu, and the problem is

Customer Question

I'm trying to install opencv on Ubuntu, and the problem is "import cv2.cv as cv","ImportError: No module named cv"
and I do have sys.path.append('/usr/local/lib/python2.7/dist-packages') in my code, and cv2.so is in that directory.
I'm reading posts on the issue here for a while on stackoverflow and others for a while, and after another compile still no luck?
what things would be the most useful to track down the issue of a missing resources, or the missing link?
Submitted: 1 year ago.
Category: Programming
Customer: replied 1 year ago.
Pages I have pulled up (though I could have missed something):
http://stackoverflow.com/questions/25215102/installing-opencv-for-python-on-ubuntu-getting-importerror-no-module-named-cv2
https://www.raspberrypi.org/forums/viewtopic.php?t=73548&p=529079
http://answers.opencv.org/question/19081/importerror-no-module-named-cv/
http://askubuntu.com/questions/334158/installing-opencv
http://stackoverflow.com/questions/8804064/find-opencv-version-installed-on-ubuntu
http://stackoverflow.com/questions/12292070/import-cv2-works-but-import-cv2-cv-as-cv-not-working
Customer: replied 1 year ago.
here is my bash history to show what I have done...
Customer: replied 1 year ago.
It looks like this could have been a version change issue - I commented out the line, and although I get another issue, pictures are being taken.I'm going to request this thread / order be closed for this issue.
I think I'm going to re-write some code - thanks.
Expert:  Russell H. replied 1 year ago.
Hi - I regret that your case waited so long for an answer. Though it appears the issue has been solved, I think your question at least deserves some sort of an answer. An appropriate comment from forum posts relative to what you've been trying to do is: please avoid the old cv2.cv module, it won't exist in the next opencv version – (commenter c. year 2014.) Such a message implies that perhaps that module was not unpacked successfully, at some point, or basically is not provided to the program that is doing the make command. Or, as you so obviously say,cv2.so is in that directory...but, no file named .cv, as the error message points out. So you may simply not have anycv2.cveven if you have a cv2.so. Simply thus, I think. You need not respond to this, and your question/case will be closed in due course. Thank you for consulting JustAnswer.com, and good luck.