[MacPorts] #53562: Probem Installing Opencv 3.2.0 with Python 3.5
MacPorts
noreply at macports.org
Tue Feb 14 00:44:25 UTC 2017
#53562: Probem Installing Opencv 3.2.0 with Python 3.5
----------------------------+----------------------------
Reporter: fmw42 | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.0
Keywords: python, opencv | Port: python, opencv
----------------------------+----------------------------
I recently installed some python support tools (py35-pip), which caused
MacPorts to upgrade other ports including, I believe, python35 and opencv.
Recently I tried to run one of my script and got an error message.
{{{
python3.5 match_image_subsections.py
/Users/fred/Desktop/ALIVE_sub_compare_test2
Traceback (most recent call last):
File "match_image_subsections.py", line 31, in <module>
import cv2
ImportError:
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
/site-packages/cv2.cpython-35m-darwin.so, 2): Library not loaded:
/opt/local/lib/libwebp.6.dylib
Referenced from: /opt/local/lib/libopencv_imgcodecs.3.1.dylib
Reason: image not found
}}}
So I just tried to launch python and import cv2, which failed as below:
{{{
python3.5
Python 3.5.3 (default, Feb 10 2017, 16:04:07)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError:
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
/site-packages/cv2.cpython-35m-darwin.so, 2): Library not loaded:
/opt/local/lib/libwebp.6.dylib
Referenced from: /opt/local/lib/libopencv_imgcodecs.3.1.dylib
Reason: image not found
>>> quit()
}}}
So I tried cleaning python35 and opencv and install again, but I am now
getting the following message:
{{{
---> Building opencv
Error: Failed to build opencv: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/main.log
for details.
Error: rev-upgrade failed: Error rebuilding opencv
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
}}}
This appears to be a bug. But perhaps I am doing something wrong.
Please confirm if a bug and have it fixed. Or if I am doing something
wrong, I would appreciate any help if getting this working. I am no longer
able to run my python/opencv scripts.
See attachments for my MacPorts session and the installation attempts and
bug reports.
I may have made a mistake trying to use version numbers, but at the end of
my session, I tried without the version numbers after cleaning python and
opencv, but still no success.
Thanks
--
Ticket URL: <https://trac.macports.org/ticket/53562>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list