Opened 2 weeks ago

#60695 assigned defect

py27-scipy @1.2.3: ImportError: cannot import name _distributor_init

Reported by: ryandesign (Ryan Schmidt) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: lion Cc:
Port: py-scipy

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.