install opencv 3.0 beta with python 3.4 in ubuntu 14.04 (Bug #4177)


Added by Le Tuyen about 10 years ago. Updated almost 10 years ago.


Status:Cancelled Start date:2015-02-06
Priority:Low Due date:
Assignee:Maksim Shabunin % Done:

0%

Category:python bindings
Target version:3.0
Affected version:branch 'master' (3.0-dev) Operating System:Linux
Difficulty: HW Platform:x64
Pull request:

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:

  1. build OpenCV with python3 support
  2. export PYTHONPATH="<build-dir>/lib/python3"
  3. 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

Also available in: Atom PDF