[MacPorts] #60695: py27-scipy @1.2.3: ImportError: cannot import name _distributor_init

MacPorts noreply at macports.org
Mon Jun 22 22:35:26 UTC 2020


#60695: py27-scipy @1.2.3: ImportError: cannot import name _distributor_init
------------------------+-----------------------
 Reporter:  ryandesign  |      Owner:  michaelld
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.2
 Keywords:  lion        |       Port:  py-scipy
------------------------+-----------------------
 [https://build.macports.org/builders/ports-10.7_x86_64-builder/builds/23455/steps
 /install-dependencies/logs/stdio py27-scipy failed to build] on the 10.7
 buildbot worker:

 {{{
 Traceback (most recent call last):
   File "setup.py", line 492, in <module>
     setup_package()
   File "setup.py", line 468, in setup_package
     from numpy.distutils.core import setup
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/__init__.py", line 140, in <module>
     from . import _distributor_init
 ImportError: cannot import name _distributor_init
 Command failed:  cd "/opt/local/var/macports/build
 /_opt_bblocal_var_buildworker_ports_build_ports_python_py-
 scipy/py27-scipy/work/scipy-1.2.3" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
 setup.py --no-user-cfg config_fc --fcompiler gnu95 --f77exec
 /opt/local/bin/gfortran-mp-10 --f77flags='-m64 -Os -fno-second-underscore'
 --f90exec /opt/local/bin/gfortran-mp-10 --f90flags='-m64 -Os -fno-second-
 underscore' config --cc /usr/bin/clang --include-dirs /opt/local/include
 --library-dirs /opt/local/lib build
 }}}

 Not sure what's special about that worker, other than that I just brought
 it back online so it's working through a backlog of old builds, but it
 built successfully on other builders.

 Maybe it has to do with the fact that it's using gfortran 10, whereas the
 previous builds of 1.2.3 on the other workers took place in January and
 used gfortran 9 except for the build on 10.6 x86_64 last month which used
 gfortran 8.

 I see that `compilers.allow_arguments_mismatch yes` was added to
 py3#-scipy (#60520); maybe that's needed for py27-scipy as well.

-- 
Ticket URL: <https://trac.macports.org/ticket/60695>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list