sightmachine / SimpleCV

The Open Source Framework for Machine Vision
http://simplecv.org
BSD 3-Clause "New" or "Revised" License
2.68k stars 798 forks source link

import cv2.cv no longer works with OpenCV 3.4.1 #716

Open e-razorhead opened 6 years ago

e-razorhead commented 6 years ago

In base.py, try: import cv2.cv as cv except ImportError: try: import cv except ImportError: raise ImportError("Cannot load OpenCV library which is required by SimpleCV")

Since the newest OpenCV only support import cv2, should this part be updated?

xzhws commented 5 years ago

I got this problem today. But now I solved it, as far as I think, it is possiblely that you did not install 'python-opencv'. Remember to install all the reliable packages.

sudo apt-get install ipython python-opencv python-scipy python-numpy python-pygame python-setuptools git

If you counld not install all of them, Just 'sudo apt-get update', and then try again to install the above packages. If this operation can not make either, use 'sudo pip install'. Hope you can solve it.