[MacPorts] #62744: py39-opencv4 4.5.2: staging into destroot fails

MacPorts noreply at macports.org
Sat Apr 24 12:27:17 UTC 2021


#62744: py39-opencv4 4.5.2: staging into destroot fails
---------------------------+----------------------
  Reporter:  phosphide     |      Owner:  stromnov
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.6.4
Resolution:                |   Keywords:
      Port:  py39-opencv4  |
---------------------------+----------------------

Comment (by mascguy):

 This error occurs when the Python bindings aren't able to be built
 successfully.

 I'm seeing the following in the logs. It looks like there's in an issue
 with `py39-numpy`:

 {{{
 :info:configure -- Found PythonInterp: /opt/local/bin/python3.9 (found
 suitable version "3.9.4", minimum required is "3.2")
 :info:configure -- Found PythonLibs:
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib
 (found sui
 table exact version "3.9.4")
 :info:configure Traceback (most recent call last):
 :info:configure   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/numpy/core/__init__.py", line 22, in <module>
 :info:configure     from . import multiarray
 :info:configure   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/numpy/core/multiarray.py", line 12, in <module>
 :info:configure     from . import overrides
 :info:configure   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/numpy/core/overrides.py", line 7, in <module>
 :info:configure     from numpy.core._multiarray_umath import (
 :info:configure ImportError:
 dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/numpy/core/_multiarray_umath.cpython-39-darwin.so, 2):
 Library not loaded: @rpath/libgcc_s.1.1.dylib
 :info:configure   Referenced from:
 /opt/local/lib/libgcc/libgfortran.5.dylib
 :info:configure   Reason: image not found
 :info:configure During handling of the above exception, another exception
 occurred:
 :info:configure Traceback (most recent call last):
 :info:configure   File "<string>", line 1, in <module>
 :info:configure   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/numpy/__init__.py", line 145, in <module>
 :info:configure     from . import core
 :info:configure   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/numpy/core/__init__.py", line 48, in <module>
 :info:configure     raise ImportError(msg)
 :info:configure ImportError:
 :info:configure IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE
 THIS ISSUE!
 :info:configure Importing the numpy C-extensions failed. This error can
 happen for
 :info:configure many reasons, often due to issues with your setup or how
 NumPy was
 :info:configure installed.
 :info:configure We have compiled some common reasons and troubleshooting
 tips at:
 :info:configure     https://numpy.org/devdocs/user/troubleshooting-
 importerror.html
 :info:configure Please note and check the following:
 :info:configure   * The Python version is: Python3.9 from
 "/opt/local/bin/python3.9"
 :info:configure   * The NumPy version is: "1.20.2"
 :info:configure and make sure that they are the versions you expect.
 :info:configure Please carefully study the documentation linked above for
 further help.
 :info:configure Original error was:
 dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/numpy/core/_multiarray_umath.cpython-39-darwin.so, 2):
 Library not loaded: @rpath/libgcc_s.1.1.dylib
 :info:configure   Referenced from:
 /opt/local/lib/libgcc/libgfortran.5.dylib
 :info:configure   Reason: image not found
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/62744#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list