import cv2 in python on Mac OS X Lion cause Segmentation fault (Bug #1426)
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.
Associated revisions
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