problem with py311-scipy on M1 MacBook Pro

Artemio González López artemiog at mac.com
Thu Oct 19 08:55:29 UTC 2023


When I tried to install py311-scipy on an M1 MacBook Pro running the latest macOS (Sonoma 14.0), installation failed with (among others) the following error message:

:debug:main Starting logging for py311-scipy @1.10.1_0+gfortran+openblas
:debug:sysinfo macOS 14.0 (darwin/23.0.0) arch arm
:debug:sysinfo MacPorts 2.8.1
:debug:sysinfo Xcode 15.0, CLT 15.0.0.0.1.1694021235
:debug:sysinfo SDK 14
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 14.0

…

:info:build INFO:   libraries armpl_lp64_mp not found in ['/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib', '/usr/lib', '/opt/local/lib']
:info:build INFO:   NOT AVAILABLE
:info:build INFO: 
:info:build INFO: lapack_mkl_info:
:info:build INFO: Disabled lapack_mkl_info: (MKLROOT is None)
:info:build INFO: Disabled lapack_mkl_info: (MKLROOT is None)
:info:build INFO:   libraries mkl_rt not found in []
:info:build INFO:   NOT AVAILABLE
:info:build INFO: 
:info:build INFO: lapack_ssl2_info:
:info:build INFO:   libraries fjlapackexsve not found in ['/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib', '/usr/lib', '/opt/local/lib']
:info:build INFO:   NOT AVAILABLE
:info:build INFO: 
:info:build INFO: openblas_lapack_info:

…

:info:build ld: duplicate LC_RPATH '/opt/local/lib/libgcc' in '/opt/local/lib/libopenblas-r1.dylib'
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build INFO:   NOT AVAILABLE
:info:build INFO: 
:info:build INFO: openblas_clapack_info:
:info:build INFO:   libraries openblas,lapack not found in ['/opt/local/lib', '/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib', '/usr/lib']
:info:build INFO:   NOT AVAILABLE
:info:build INFO: 
:info:build INFO: flame_info:
:info:build INFO:   libraries flame not found in ['/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib', '/usr/lib', '/opt/local/lib']
:info:build INFO:   NOT AVAILABLE
:info:build INFO: 
:info:build INFO: accelerate_info:
:info:build INFO:   NOT AVAILABLE
:info:build INFO: 
:info:build INFO: atlas_3_10_threads_info:
:info:build INFO: Setting PTATLAS=ATLAS
:info:build INFO: Disabled atlas_3_10_threads_info: (ATLAS is None)
:info:build INFO: <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
:info:build INFO:   NOT AVAILABLE
:info:build INFO: 
:info:build INFO: atlas_3_10_info:
:info:build INFO: Disabled atlas_3_10_info: (ATLAS is None)
:info:build INFO: <class 'numpy.distutils.system_info.atlas_3_10_info'>
:info:build INFO:   NOT AVAILABLE
:info:build INFO: 
:info:build INFO: atlas_threads_info:
:info:build INFO: Setting PTATLAS=ATLAS
:info:build INFO: Disabled atlas_threads_info: (ATLAS is None)
:info:build INFO: <class 'numpy.distutils.system_info.atlas_threads_info'>
:info:build INFO:   NOT AVAILABLE
:info:build INFO: 
:info:build INFO: atlas_info:
:info:build INFO: Disabled atlas_info: (ATLAS is None)
:info:build INFO: <class 'numpy.distutils.system_info.atlas_info'>
:info:build INFO:   NOT AVAILABLE
:info:build INFO: 
:info:build INFO: lapack_info:
:info:build INFO:   libraries lapack not found in ['/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib', '/usr/lib', '/opt/local/lib']
:info:build INFO:   NOT AVAILABLE
:info:build INFO: 
:info:build /opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/distutils/system_info.py:1972: UserWarning: 
:info:build     Lapack (http://www.netlib.org/lapack/) libraries not found.
:info:build     Directories to search for the libraries can be specified in the
:info:build     numpy/distutils/site.cfg file (section [lapack]) or by setting
:info:build     the LAPACK environment variable.
:info:build   return getattr(self, '_calc_info_{}'.format(name))()
:info:build INFO: lapack_src_info:
:info:build INFO:   NOT AVAILABLE
:info:build INFO: 
:info:build /opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/distutils/system_info.py:1972: UserWarning: 
:info:build     Lapack (http://www.netlib.org/lapack/) sources not found.
:info:build     Directories to search for the sources can be specified in the
:info:build     numpy/distutils/site.cfg file (section [lapack_src]) or by setting
:info:build     the LAPACK_SRC environment variable.
:info:build   return getattr(self, '_calc_info_{}'.format(name))()
:info:build INFO:   NOT AVAILABLE

:info:build numpy.distutils.system_info.NotFoundError: No BLAS/LAPACK libraries found. Note: Accelerate is no longer supported.
:info:build To build Scipy from sources, BLAS & LAPACK libraries need to be installed.
:info:build See site.cfg.example in the Scipy source directory and
:info:build https://docs.scipy.org/doc/scipy/reference/building/index.html for details.

Obviously, the BLAS and LPACK libraries were not found, but I don’t understand why they were not installed as dependencies by port. The problem is definitely on my side, since I could install this package in a similar computer without a hitch, but I don’t know what I did wrong. Any help on the matter would be greatly appreciated!

Cheers,

Artemio
artemiog at mac.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4474 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20231019/e9faa259/attachment.bin>


More information about the macports-users mailing list