install opencv 3.0 beta with python 3.4 in ubuntu 14.04 (Bug #4177)
Description
Im try install opencv 3.0 (beta) in ubuntu 14.04 x64. i use python 3.4 ( default in ubuntu).
I make opencv 3.0 beta by cmake 3.1.1. It works correctly when i use python3.4 command in terminal ( import cv2 have no error), but when i try with idle-python3.4:
import cv2
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import cv2
ImportError: dynamic module does not define init function (PyInit_cv2)
someone can help me please
thanks
History
Updated by Vadim Pisarevsky almost 10 years ago
- Category set to python bindings
Updated by Maksim Shabunin almost 10 years ago
I can successfully load it with python3.4 and idle-python3.4 with OpenCV 3.0-rc1.
Steps:
- build OpenCV with python3 support
- export PYTHONPATH="<build-dir>/lib/python3"
- run python3.4 or idle-python3.4 and import the cv2 package
Please, make sure the python interpreter can find cv2 module (for example using the PYTHONPATH environment variable).
- Status changed from New to Cancelled
- Priority changed from High to Low
- Assignee set to Maksim Shabunin
- Target version set to 3.0