[MacPorts] #59616: py37-numpy: Symbol not found: _environ, Referenced from: libgfortran.5.dylib, Expected in: flat namespace

MacPorts noreply at macports.org
Tue Mar 23 15:18:53 UTC 2021


#59616: py37-numpy: Symbol not found: _environ, Referenced from:
libgfortran.5.dylib, Expected in: flat namespace
-------------------------+-----------------------
  Reporter:  ryandesign  |      Owner:  michaelld
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.2
Resolution:              |   Keywords:
      Port:  py-numpy    |
-------------------------+-----------------------

Comment (by RobK88):

 FYI -- Even though I can build and install py39-numpy on my Mac running
 Lion, it looks like py39-numpy is not working properly.

 Perhaps the problem lies with libgfortran.5.dylib?


 {{{
 bash-3.2$ python3.9 -c "from numpy.core import multiarray"
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/numpy/core/__init__.py", line 22, in <module>
     from . import multiarray
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/numpy/core/multiarray.py", line 12, in <module>
     from . import overrides
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/numpy/core/overrides.py", line 7, in <module>
     from numpy.core._multiarray_umath import (
 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):
 Symbol not found: _environ
   Referenced from: /opt/local/lib/libgcc/libgfortran.5.dylib
   Expected in: flat namespace
  in /opt/local/lib/libgcc/libgfortran.5.dylib

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/numpy/__init__.py", line 145, in <module>
     from . import core
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/numpy/core/__init__.py", line 48, in <module>
     raise ImportError(msg)
 ImportError:

 IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

 Importing the numpy C-extensions failed. This error can happen for
 many reasons, often due to issues with your setup or how NumPy was
 installed.

 We have compiled some common reasons and troubleshooting tips at:

     https://numpy.org/devdocs/user/troubleshooting-importerror.html

 Please note and check the following:

   * The Python version is: Python3.9 from "/opt/local/bin/python3.9"
   * The NumPy version is: "1.20.1"

 and make sure that they are the versions you expect.
 Please carefully study the documentation linked above for further help.

 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):
 Symbol not found: _environ
   Referenced from: /opt/local/lib/libgcc/libgfortran.5.dylib
   Expected in: flat namespace
  in /opt/local/lib/libgcc/libgfortran.5.dylib

 bash-3.2$
 }}}

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


More information about the macports-tickets mailing list