-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tracking issue topics Smit #36
Comments
Hi Ralf, numpy.distutils.system_info.NotFoundError: No BLAS/LAPACK libraries found.
To build Scipy from sources, BLAS & LAPACK libraries need to be installed.
See site.cfg.example in the Scipy source directory and
https://docs.scipy.org/doc/scipy/reference/building/index.html for details. I followed the steps mentioned here: https://docs.scipy.org/doc/scipy/reference/building/linux.html#debian-ubuntu to install BLAS/LAPACK I got this error while running: |
Do you have If you're using Please let me know if that didn't fix it! |
The whole traceback looks like this: Details
·· Error running /home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/bin/python setup.py build (exit status 1)
STDOUT -------->
Running scipy/stats/_generate_pyx.py
Running scipy/linalg/_generate_pyx.py
Running scipy/special/_generate_pyx.py
Processing scipy/interpolate/_bspl.pyx
Processing scipy/interpolate/interpnd.pyx
Processing scipy/interpolate/_ppoly.pyx
Processing scipy/spatial/ckdtree.pyx
Processing scipy/spatial/_hausdorff.pyx
Processing scipy/spatial/qhull.pyx
Processing scipy/spatial/_voronoi.pyx
Processing scipy/spatial/transform/rotation.pyx
Processing scipy/stats/_sobol.pyx
Processing scipy/stats/_qmc_cy.pyx
Processing scipy/stats/biasedurn.pyx
Processing scipy/stats/_stats.pyx
Processing scipy/stats/_boost/src/hypergeom_ufunc.pyx
Processing scipy/stats/_boost/src/binom_ufunc.pyx
Processing scipy/stats/_boost/src/nbinom_ufunc.pyx
Processing scipy/stats/_boost/src/beta_ufunc.pyx
Processing scipy/signal/_peak_finding_utils.pyx
Processing scipy/signal/_sosfilt.pyx
Processing scipy/signal/_spectral.pyx
Processing scipy/signal/_upfirdn_apply.pyx
Processing scipy/signal/_max_len_seq_inner.pyx
Processing scipy/linalg/_solve_toeplitz.pyx
Processing scipy/linalg/_decomp_update.pyx.in
Processing scipy/linalg/cython_blas.pyx
Processing scipy/linalg/_matfuncs_sqrtm_triu.pyx
Processing scipy/linalg/cython_lapack.pyx
Processing scipy/sparse/_csparsetools.pyx.in
Processing scipy/sparse/csgraph/_traversal.pyx
Processing scipy/sparse/csgraph/_tools.pyx
Processing scipy/sparse/csgraph/_flow.pyx
Processing scipy/sparse/csgraph/_min_spanning_tree.pyx
Processing scipy/sparse/csgraph/_matching.pyx
Processing scipy/sparse/csgraph/_shortest_path.pyx
Processing scipy/sparse/csgraph/_reordering.pyx
Processing scipy/_lib/messagestream.pyx
Processing scipy/_lib/_test_deprecation_call.pyx
Processing scipy/_lib/_test_deprecation_def.pyx
Processing scipy/_lib/_ccallback_c.pyx
Processing scipy/io/matlab/mio5_utils.pyx
Processing scipy/io/matlab/mio_utils.pyx
Processing scipy/io/matlab/streams.pyx
Processing scipy/special/_ellip_harm_2.pyx
Processing scipy/special/_comb.pyx
Processing scipy/special/cython_special.pyx
Processing scipy/special/_ufuncs_cxx.pyx
Processing scipy/special/_ufuncs.pyx
Processing scipy/special/_test_round.pyx
Processing scipy/fftpack/convolve.pyx
Processing scipy/cluster/_vq.pyx
Processing scipy/cluster/_optimal_leaf_ordering.pyx
Processing scipy/cluster/_hierarchy.pyx
Processing scipy/ndimage/src/_cytest.pyx
Processing scipy/ndimage/src/_ni_label.pyx
Processing scipy/optimize/_bglu_dense.pyx
Processing scipy/optimize/_group_columns.pyx
Processing scipy/optimize/_highs/cython/src/_highs_wrapper.pyx
Processing scipy/optimize/_highs/cython/src/_highs_constants.pyx
Processing scipy/optimize/_lsq/givens_elimination.pyx
Processing scipy/optimize/_trlib/_trlib.pyx
Processing scipy/optimize/cython_optimize/_zeros.pyx.in
Cythonizing sources
lapack_opt_info:
lapack_mkl_info:
customize UnixCCompiler
C compiler: /home/smit/anaconda3/envs/scipy-dev/bin/x86_64-conda-linux-gnu-cc -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/smit/anaconda3/envs/scipy-dev/include -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/smit/anaconda3/envs/scipy-dev/include -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/smit/anaconda3/envs/scipy-dev/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/smit/anaconda3/envs/scipy-dev/include -fPIC
creating /tmp/tmpizdjdiu3/tmp
creating /tmp/tmpizdjdiu3/tmp/tmpizdjdiu3
compile options: '-MMD -MF /tmp/tmpizdjdiu3/file.c.d -c'
x86_64-conda-linux-gnu-cc: /tmp/tmpizdjdiu3/file.c
libraries mkl_rt not found in ['/home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/']
NOT AVAILABLE
openblas_lapack_info:
libraries openblas not found in ['/home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/']
NOT AVAILABLE
openblas_clapack_info:
libraries openblas,lapack not found in ['/home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/']
NOT AVAILABLE
flame_info:
libraries flame not found in ['/home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/']
NOT AVAILABLE
accelerate_info:
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/lib
libraries tatlas,tatlas not found in /home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/lib
libraries lapack_atlas not found in /usr/local/lib
libraries tatlas,tatlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries tatlas,tatlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib/
libraries tatlas,tatlas not found in /usr/lib/
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
libraries lapack_atlas not found in /home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/lib
libraries satlas,satlas not found in /home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/lib
libraries lapack_atlas not found in /usr/local/lib
libraries satlas,satlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries satlas,satlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib/
libraries satlas,satlas not found in /usr/lib/
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/lib
libraries ptf77blas,ptcblas,atlas not found in /home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/lib
libraries lapack_atlas not found in /usr/local/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib/
libraries ptf77blas,ptcblas,atlas not found in /usr/lib/
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
libraries lapack_atlas not found in /home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/lib
libraries f77blas,cblas,atlas not found in /home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/lib
libraries lapack_atlas not found in /usr/local/lib
libraries f77blas,cblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries f77blas,cblas,atlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib/
libraries f77blas,cblas,atlas not found in /usr/lib/
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
lapack_info:
libraries lapack not found in ['/home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/']
NOT AVAILABLE
lapack_src_info:
NOT AVAILABLE
NOT AVAILABLE
STDERR -------->
Running from SciPy source directory.
/home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/lib/python3.9/site-packages/numpy/distutils/system_info.py:1858: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
return getattr(self, '_calc_info_{}'.format(name))()
/home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/lib/python3.9/site-packages/numpy/distutils/system_info.py:1858: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
return getattr(self, '_calc_info_{}'.format(name))()
Traceback (most recent call last):
File "/home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/project/setup.py", line 631, in <module>
setup_package()
File "/home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/project/setup.py", line 627, in setup_package
setup(**metadata)
File "/home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/lib/python3.9/site-packages/numpy/distutils/core.py", line 135, in setup
config = configuration()
File "/home/smit/Smitlunagariya/scipy/benchmarks/env/9774801ae38aac7b90590412a25793ef/project/setup.py", line 530, in configuration
raise NotFoundError(msg)
numpy.distutils.system_info.NotFoundError: No BLAS/LAPACK libraries found.
To build Scipy from sources, BLAS & LAPACK libraries need to be installed.
See site.cfg.example in the Scipy source directory and
https://docs.scipy.org/doc/scipy/reference/building/index.html for details.
·· Failed to build the project and import the benchmark suite.
I tried the following too(scipy#9481 (comment)):
EDIT: Also, I edited https://github.com/Smit-create/scipy/blob/meson/.github/workflows/linux.yml and it works fine, see: https://github.com/Smit-create/scipy/runs/3446108473?check_suite_focus=true |
For comparing BLAS libraries on the same machine, here's how to easily switch them out with conda: https://conda-forge.org/docs/maintainer/knowledge_base.html#switching-blas-implementation |
It produces the following error:
From
Should there be something else to change the build type? |
Ah you're installing from |
The solve is slow when done in an existing
|
Hi,
My CPU details are:
The python script which I used for obtaining the results can be found at: https://gist.github.com/Smit-create/99f7fb2b8781053c39c3f25215e26cbf |
The "deprecate private API in SciPy" issue is coming to an end, we discussed to after that update the |
Old issue, closing. |
Hi @Smit-create, as we talked about on the weekend, let's keep a list of topics and ideas that would be interesting to work on.
misc
,io
, maybe there's more later)sparsetools
extension can be improved #33 (this may be a challenging one)signal.sepfir2d
issues: Tackling somesepfir2d
improvements #43meson: timestamp caching in CI trick. Thebuild/
folder can be saved and reused for future PRs, but the timestamps must be manipulated in a smart way in order to get rebuilds for only the targets that were affected by a PR and commits since the last rebuild. I read a blog post about this that I cannot find right now. (no separate issue yet)aarch64
too. And haven't seen much aboutarm64
(Mac M1) yet.-O0
...-O3
,-g
, etc.).-Werror
in Meson job, and sync with upstream master #62).meson.build
files #72meson
branch in this fork to be up-to-date with SciPymaster
(see MAINT: Update meson build according to private API changes #93)dev.py
interface for the Meson build: current idea is to import functions that don't need changes fromruntests.py
and reimplementbuild_project
.stats.linalg
tests are installed and passing (currently ~90 failures on master)scipy.signal
and create a Colab notebook which works with CuPy and https://docs.rapids.ai/api/cusignal/nightly/api.html#module-cusignal.filtering.resamplegcc
,clang
regular builds and a gcc debug build on Linux.--gcov
doesn't work with Meson scipy/scipy#15896meson-python
The text was updated successfully, but these errors were encountered: