Closed echristophe closed 4 years ago
Can you please provide more information, i.e., Linux distro, kernel, what BLAS you have installed. Also can you let me know what blas that numpy is linking to. I would like to recreate this, but cannot on my two current Linux builds
Debian testing, kernel 5.2.17
libblass and libblas64-3 are 3.8.0-7 numpy is the distribution package (1:1.16.5-1) so I expect it to be linking to the libblass above.
Can you please provide the output of numpy.config.show()
>>> numpy.__config__.show()
blas_mkl_info:
NOT AVAILABLE
blis_info:
NOT AVAILABLE
openblas_info:
NOT AVAILABLE
atlas_3_10_blas_threads_info:
NOT AVAILABLE
atlas_3_10_blas_info:
NOT AVAILABLE
atlas_blas_threads_info:
NOT AVAILABLE
atlas_blas_info:
NOT AVAILABLE
accelerate_info:
NOT AVAILABLE
blas_info:
libraries = ['blas', 'blas']
library_dirs = ['/usr/lib/x86_64-linux-gnu']
include_dirs = ['/usr/local/include', '/usr/include']
language = c
define_macros = [('HAVE_CBLAS', None)]
blas_opt_info:
define_macros = [('NO_ATLAS_INFO', 1), ('HAVE_CBLAS', None)]
libraries = ['blas', 'blas']
library_dirs = ['/usr/lib/x86_64-linux-gnu']
include_dirs = ['/usr/local/include', '/usr/include']
language = c
lapack_mkl_info:
NOT AVAILABLE
openblas_lapack_info:
NOT AVAILABLE
openblas_clapack_info:
NOT AVAILABLE
atlas_3_10_threads_info:
NOT AVAILABLE
atlas_3_10_info:
NOT AVAILABLE
atlas_threads_info:
NOT AVAILABLE
atlas_info:
NOT AVAILABLE
lapack_info:
libraries = ['lapack', 'lapack']
library_dirs = ['/usr/lib/x86_64-linux-gnu']
language = f77
lapack_opt_info:
define_macros = [('NO_ATLAS_INFO', 1), ('HAVE_CBLAS', None)]
libraries = ['lapack', 'lapack', 'blas', 'blas']
library_dirs = ['/usr/lib/x86_64-linux-gnu']
language = c
include_dirs = ['/usr/local/include', '/usr/include']
>>>
Thanks, this should be linking against blas, not sure why its not, need to look at Cython arguments. While I am debugging, can you try to install openblas and see if you get the same error?
Same after installing openblas (and recompiling fdasrsf). I also reproduced the same issue on another clean debian testing machine.
Just out of curiosity, does np.__config__.show()
show using openblas after you installed it. Usually on Debian you need to do a update-alternatives
Can you pull from master and let me know if that fixes it....have only tested on anaconda lately, my bad.
Thanks for the quick fix!
Few points:
np.__config__.show()
was unchanged (I never ran the update-alternatives
)>>> import fdasrsf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/echristophe/opensource/fdasrsf_python/fdasrsf/__init__.py", line 29, in <module>
from .regression import elastic_prediction, elastic_logistic, elastic_regression, elastic_mlogistic
File "/home/echristophe/opensource/fdasrsf_python/fdasrsf/regression.py", line 14, in <module>
from patsy import bs
File "/usr/lib/python3/dist-packages/patsy/__init__.py", line 77, in <module>
import patsy.highlevel
File "/usr/lib/python3/dist-packages/patsy/highlevel.py", line 19, in <module>
from patsy.design_info import DesignMatrix, DesignInfo
File "/usr/lib/python3/dist-packages/patsy/design_info.py", line 31, in <module>
from patsy.util import atleast_2d_column_default
File "/usr/lib/python3/dist-packages/patsy/util.py", line 33, in <module>
import pandas
File "/usr/lib/python3/dist-packages/pandas/__init__.py", line 57, in <module>
from pandas.io.api import *
File "/usr/lib/python3/dist-packages/pandas/io/api.py", line 19, in <module>
from pandas.io.packers import read_msgpack, to_msgpack
File "/usr/lib/python3/dist-packages/pandas/io/packers.py", line 69, in <module>
from pandas.util._move import (
ValueError: module functions cannot set METH_CLASS or METH_STATIC
This might be related to
https://github.com/pandas-dev/pandas/issues/23040
and its the import order, however I have not seen this on other systems/os
I'm running into issues when importing fdasrsf:
undefined symbol: dorgqr_
Full error:
Here is the part of the compilation process related to optimum_reparam_Ng:
And linking: