[Enthought-Dev] Canopy and OpenCV on Mac OSX

Jake Ross jirhiker at gmail.com
Tue May 7 01:53:10 CDT 2013


I was able to fix the ImportError using install_name_tool -change....

Following up on my own thoughts, I think using Canopy, OpenCV python
bindings, and possibly skimage will be much better than solution then
having to deal with boost.




On Tue, May 7, 2013 at 12:29 AM, Jake Ross <jirhiker at gmail.com> wrote:

>
> Hi All
>
> Im trying to use opencv with canopy but multiple attempts have been
> unsuccessful.
> First, I tried installing pyopencv but I cannot compile boost.python with
> Canopy (32 or 64). Ive been using pyopencv and boost.python with EPD7.X no
> problem. Any Thoughts?
>
> Then, I realized Canopy's package manager has OpenCV 2.4.2 so I tried that
> but importing cv fails.
>
> Enthought Canopy Python 2.7.3 | 64-bit | (default, Mar 25 2013, 15:52:02)
> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import cv
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File
> "/Users/ross/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/cv.py",
> line 1, in <module>
>     from cv2.cv import *
> ImportError:
> dlopen(/Users/ross/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/cv2.so,
> 2): Library not loaded: @executable_path/../Python
>   Referenced from:
> /Users/ross/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/cv2.so
>   Reason: image not found
>
> The main reason I need opencv is for videocapture. This is the only way
> Ive been able to display a live video stream. Does any one know of a better
> option using pyside or anything else? I figured phonon would do the trick
> but it doesn't appear that the current pyside version has all the
> bindings(?)
>
> Any thoughts/help would be great
> Thanks
> Jake
>
> --
> Jake Ross
> NM Tech
> jirhiker at nmt.edu
> jirhiker at gmail.com
> 575-835-5994 (office)
>



-- 
Jake Ross
NM Tech
jirhiker at nmt.edu
jirhiker at gmail.com
575-835-5994 (office)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.enthought.com/pipermail/enthought-dev/attachments/20130507/a9972844/attachment.html 


More information about the Enthought-Dev mailing list