[MacPorts] #62523: py39-matplotlib 3.3.4 fails to build on Lion
MacPorts
noreply at macports.org
Tue Mar 23 14:48:16 UTC 2021
#62523: py39-matplotlib 3.3.4 fails to build on Lion
-------------------------------------+------------------------
Reporter: RobK88 | Owner: reneeotten
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords: Lion
Port: py-matplotlib py-numpy |
-------------------------------------+------------------------
Comment (by RobK88):
FYI -- below is the output of python3.9 -c "from numpy.core import
multiarray" on my Mac running Lion.
You were right. The same error is generated!
{{{
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/62523#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list