How to use a .so file of a Python version in a different
version\distribution of Python?
I'm working with a Mac trying to use OpenCv in Canopy. I've install OpenCv
Python binding with Macports. And it works fine in my Python 2.7.5, the
Mac default version. When I try to us it in Enthought Canopy Python 2.7.3
| 64-bit |. Python can't find the cv module. I've try to add to the PYTHON
PATH all the path of the first version I mentioned but when I add the path
with site-packages the kernel crash. So I tried to copy the cv.py and
cv2.so in the site-packages (e.g.
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages')
of Canopy but it crash too. I've tried to create a soft link but it
doesn't work. This is the log:
OS Version: Mac OS X 10.8.4 (12E55) Report Version: 10
Interval Since Last Report: 354354 sec Crashes Since Last Report: 169
Per-App Interval Since Last Report: 44745 sec Per-App Crashes Since Last
Report: 9 Anonymous UUID: C5B70571-7F3E-433F-8875-521B435C3FB1
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes:
KERN_INVALID_ADDRESS at 0x0000000000000000
VM Regions Near 0: --> __TEXT 0000000100000000-0000000100003000 [ 12K]
r-x/rwx SM=COW
>/Users/USER/Library/Enthought/*/Python.app/Contents/MacOS/Python
How can avoid that?Thanks a lot.
No comments:
Post a Comment