[MacPorts] #38560: port install opencv +python27 fails

MacPorts noreply at macports.org
Wed Mar 27 07:34:08 PDT 2013


#38560: port install opencv +python27 fails
--------------------------+--------------------------------
 Reporter:  johnsankey@…  |      Owner:  macports-tickets@…
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.1.3
 Keywords:                |       Port:
--------------------------+--------------------------------
 sudo port selfupdate
 sudo port install python27 py27-numpy py27-scipy
 sudo port install opencv +python27

 /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-
 packages/

 then contains linkages for numpy and scipy but nothing for opencv so the
 linkage doesn't work.

 .........

 I'm told that this fixes the problem with Homebrew:
 cv2.so and cv.py are located in
 "/usr/local/Cellar/opencv/2.4.4a/lib/python2.7/site-packages"
 You need to copy those two files into the python site-packages directory
 which should be
 "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-
 packages/"

 I'm also told that this fixes it with Windows:
 "Copy the file cv2.pyd and paste it into C:\Python27\Lib\site-packages."
 It is located in C:\Python27\Lib\site-packages\opencv\build\python\2.7

 The Macports linkage seems too complex for a quick solution, but is there
 one?

-- 
Ticket URL: <https://trac.macports.org/ticket/38560>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list