Homebrew'd OpenCV Python module segfaults on import #16016
Comments
The opencv compilation log you posted said this:
among other things, which indicates that there is small problem that I thought was solved months ago, but things change. Let me try it here with Homebrew Python on 10.8.2 and see what adjustment needs to be made. |
It works for me. You probably just need to reinstall Homebrew Python and try again. If which python-config
ls -ld /usr/local/opt/python |
Right, You should perhaps It should also work to avoid homebrewed python and only use Apple's (older) python. But you can't mix. |
@fish2000 what's the status? |
I was struggling with this exact same issue and following @samueljohn's advice solved my issue. A gotchas for other python developers to keep an eye on:
With these settings in place, opencv should get built against the appropriate architecture and its python bindings should be installed somewhere on your path. I can't believe I finally got this working on my Mac - thank you. |
I'll put that note in the wiki, I guess. |
Updated the wiki: |
Closing due to (a) lack of response and (b) assumption that the solution outlined above will solve the problem. |
Couldn't you put in a check to recompile all the software that builds c-python extensions? |
first:use brew install python: type below command: my succeed! |
the last two lines (symbolic links) in selectersky's recipe finally made it work. Could someone please explain why this is needed? |
I had to do the same things as @selectersky ... finally opencv ... many battles, many loses, one battle, much win, war over |
Hi, I encountered the same problem export OCI_HOME=/Applications/instantclient_11_2; PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}" Anything wrong here? PS: hntvlan569:testDrone_video xuxu$ which python-config |
I followed comments from @samueljohn on Nov 14, 2012 and removed the python 2.7.8 installed by homebrew. Now, there is only one python, version 2.7.9, on my mac. I could import cv and cv2 freely. |
This gist has both the verbose compilation output and the Console.app crash log in full:
https://gist.github.com/4064775
At the end of the first file is the meat of the issue:
I have tried building it with and without the
--with-tbb
and--with-qt
options and the results are the same in all of these cases: segfault number eleven.The text was updated successfully, but these errors were encountered: