import cv2 in python on Mac OS X Lion cause Segmentation fault (Bug #1426)


Added by fyu - over 13 years ago. Updated almost 13 years ago.


Status:Cancelled Start date:
Priority:Low Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:python bindings
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

I installed OpenCV 2.3.1, the release version. The compilation is fine. But after installing the library, I can't import cv or cv2 in python 2.7.2. The import process can't be finished and error "Segmentation fault: 11" is thrown. Then python is exited. I have tried OpenCV 2.3.0 and opencv svn. They all give me the same problem. My operation system is Mac OS X Lion. Python is 2.7.2 built by gcc 4.2.1 based on Apple. My CMakeCache is attached.


CMakeCache.txt (41.8 kB) fyu -, 2011-10-14 07:58 pm


Associated revisions

Revision 0033d453
Added by Roman Donchenko over 11 years ago

Merge pull request #1426 from nailbiter:optimPD

History

Updated by Alexander Shishkov about 13 years ago

  • Description changed from I installed [[OpenCV]] 2.3.1, the release version. The compilation is fine. B... to I installed OpenCV 2.3.1, the release version. The compilation is fine. But a... More

Updated by Alexander Shishkov almost 13 years ago

  • Target version deleted ()

Updated by Alexander Shishkov almost 13 years ago

  • Assignee deleted (Vadim Pisarevsky)

Updated by Vadim Pisarevsky almost 13 years ago

The problem is that you have 2 different Python versions, probably incompatible ones, installed on your machine - analysis of CMakeCache.txt proves that. Remove the one installed in "/opt" and everything should go well. On my OSX Lion machine cv2 works great.

  • Status changed from Open to Cancelled
  • Assignee set to Vadim Pisarevsky

Updated by Alexander Shishkov almost 13 years ago

  • Target version set to 2.4.0

Also available in: Atom PDF