[MacPorts] #59616: py37-numpy: Symbol not found: _environ, Referenced from: libgfortran.5.dylib, Expected in: flat namespace
MacPorts
noreply at macports.org
Wed Nov 6 17:35:04 UTC 2019
#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
Keywords: | Port: py-numpy
------------------------+-----------------------
There is something wrong with at least the py37-numpy subport on at least
Mac OS X 10.7. Software that uses numpy
[https://build.macports.org/builders/ports-10.7_x86_64-builder/builds/6548/steps
/install-port/logs/stdio fails to build] like this:
{{{
Traceback (most recent call last):
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/numpy/core/__init__.py", line 17, in <module>
from . import multiarray
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/numpy/core/multiarray.py", line 14, in <module>
from . import overrides
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/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.7/lib/python3.7
/site-packages/numpy/core/_multiarray_umath.cpython-37m-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 "gsl_dist/gsl_Extension.py", line 25, in <module>
from array_includes import array_include_dirs
File "gsl_dist/array_includes.py", line 7, in <module>
from numpy.distutils.misc_util import get_numpy_include_dirs
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/numpy/__init__.py", line 142, in <module>
from . import core
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/numpy/core/__init__.py", line 47, in <module>
raise ImportError(msg)
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy c-extensions failed.
- Try uninstalling and reinstalling numpy.
- If you have already done that, then:
1. Check that you expected to use Python3.7 from
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7",
and that you have no directories in your PATH or PYTHONPATH that can
interfere with the Python and numpy version "1.17.3" you're trying to
use.
2. If (1) looks fine, you can open a new issue at
https://github.com/numpy/numpy/issues. Please include details on:
- how you installed Python
- how you installed numpy
- your operating system
- whether or not you have multiple versions of Python installed
- if you built from source, your compiler versions and ideally a
build log
- If you're working with a numpy git repository, try `git clean -xdf`
(removes all files not under version control) and rebuild numpy.
Note: this error has many possible causes, so please don't comment on
an existing issue about this - open a new one instead.
Original error was:
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/numpy/core/_multiarray_umath.cpython-37m-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 "setup.py", line 99, in <module>
from gsl_Extension import gsl_Extension
File "gsl_dist/gsl_Extension.py", line 27, in <module>
from pygsl.gsl_dist.array_includes import array_include_dirs
File "/opt/local/var/macports/build
/_opt_bblocal_var_buildworker_ports_build_ports_python_py-
gsl/py37-gsl/work/pygsl-2.3.0/pygsl/__init__.py", line 47, in <module>
import pygsl.errno
ModuleNotFoundError: No module named 'pygsl.errno'
Command failed: cd "/opt/local/var/macports/build
/_opt_bblocal_var_buildworker_ports_build_ports_python_py-
gsl/py37-gsl/work/pygsl-2.3.0" &&
/opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7
setup.py config
Exit code: 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/59616>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list