[MacPorts] #68513: py39-scipy @1.10.1_0+gfortran+openblas: numpy.distutils.system_info.NotFoundError: No BLAS/LAPACK libraries found
MacPorts
noreply at macports.org
Fri Jan 5 01:49:18 UTC 2024
#68513: py39-scipy @1.10.1_0+gfortran+openblas:
numpy.distutils.system_info.NotFoundError: No BLAS/LAPACK libraries found
---------------------------+-----------------------
Reporter: artbotterell | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: sonoma
Port: py39-scipy |
---------------------------+-----------------------
Comment (by kencu):
I have the fixed openblas, so no dupicate RPATH errors, but it still won't
build (MacOS 14.2.1 arm64):
first error I see is:
{{{
Traceback (most recent call last):
File "/opt/local/var/macports/build/_opt_macportsofficial_macports-
ports_python_py-scipy/py39-scipy/work/scipy-1.10.1/tools/cythonize.py",
line 100, in process_pyx
r = subprocess.call(['cython'] + flags + ["-o", tofile, fromfile],
cwd=cwd)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py",
line 349, in call
Processing scipy/linalg/cython_blas.pyx
with Popen(*popenargs, **kwargs) as p:
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py",
line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py",
line 1837, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cython'
}}}
so I did this simple fix:
{{{
% sudo port select cython cython39
}}}
and then after that, the next error is:
{{{
Error compiling Cython file:
------------------------------------------------------------
...
if with_signature:
signature = "int (double *, npy_intp, double *, npy_intp, void *)"
try:
capsule = PyCapsule_New(<void *>_filter1d, signature, _destructor)
^
------------------------------------------------------------
_cytest.pyx:45:62: Cannot assign type 'void (object) except *' to
'PyCapsule_Destructor'. Exception values are incompatible. Suggest adding
'noexcept' to type 'void (object) except *'.
Traceback (most recent call last):
File "/opt/local/var/macports/build/_opt_macportsofficial_macports-
ports_python_py-scipy/py39-scipy/work/scipy-1.10.1/tools/cythonize.py",
line 317, in <module>
main()
File "/opt/local/var/macports/build/_opt_macportsofficial_macports-
ports_python_py-scipy/py39-scipy/work/scipy-1.10.1/tools/cythonize.py",
line 313, in main
find_process_files(root_dir)
File "/opt/local/var/macports/build/_opt_macportsofficial_macports-
ports_python_py-scipy/py39-scipy/work/scipy-1.10.1/tools/cythonize.py",
line 302, in find_process_files
for result in pool.imap_unordered(lambda args: process(*args), jobs):
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py",
line 870, in next
raise value
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py",
line 125, in worker
result = (True, func(*args, **kwds))
File "/opt/local/var/macports/build/_opt_macportsofficial_macports-
ports_python_py-scipy/py39-scipy/work/scipy-1.10.1/tools/cythonize.py",
line 302, in <lambda>
for result in pool.imap_unordered(lambda args: process(*args), jobs):
File "/opt/local/var/macports/build/_opt_macportsofficial_macports-
ports_python_py-scipy/py39-scipy/work/scipy-1.10.1/tools/cythonize.py",
line 236, in process
processor_function(fromfile, tofile, cwd=path)
File "/opt/local/var/macports/build/_opt_macportsofficial_macports-
ports_python_py-scipy/py39-scipy/work/scipy-1.10.1/tools/cythonize.py",
line 102, in process_pyx
raise Exception('Cython failed')
Exception: Cython failed
}}}
--
Ticket URL: <https://trac.macports.org/ticket/68513#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list