Having problem with python in OpenCV on mac (Bug #3105)
Description
Installed opencv with macports, using command:
$sudo port -v install opencv +python26
End of screen log :
---> Cleaning opencv
---> Removing work directory for opencv
---> Updating database of binaries: 100.0%
---> Scanning binaries for linking errors: 100.0%
---> No broken files found.
Issue:
$ python
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import oc2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named oc2
Tried setting the PYTHONPATH
$ export PYTHONPATH=/opt/local/lib/python2.6/site-packages/
But no help. Shows the same problem.
Any help will be highly appreciated.
History
Updated by Kirill Kornyakov over 11 years ago
OpenCV doesn't have oc2 module, it has cv2.
- Assignee set to Sunil Kumar
- Category set to python bindings
- Operating System set to Mac OSX
- HW Platform set to x86
- Priority changed from Blocker to Low
- Status changed from Open to Cancelled
- Target version set to 2.4.6