scikit-learn: undefined symbol: PyFPE_jbuf

Hi!

I always encounter this problem when I pull from upstream. Following are the version details:

Linux-4.4.0-38-generic-x86_64-with-debian-stretch-sid
('Python', '2.7.12 | packaged by conda-forge | (default, Sep  8 2016, 14:22:31) \n[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)]')
('NumPy', '1.11.1')
('SciPy', '0.18.0')
('Scikit-Learn', '0.19.dev0')
('Cython', '0.24.1')

Following is the problem I’m facing:

In [1]: from sklearn import linear_model
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-a6ebbebad697> in <module>()
----> 1 from sklearn import linear_model

/home/devashish/EXPERIMENTATION/scikit-learn/sklearn/linear_model/__init__.py in <module>()
     10 # complete documentation.
     11 
---> 12 from .base import LinearRegression
     13 
     14 from .bayes import BayesianRidge, ARDRegression

/home/devashish/EXPERIMENTATION/scikit-learn/sklearn/linear_model/base.py in <module>()
     30 from ..utils.validation import FLOAT_DTYPES
     31 from ..utils import check_random_state
---> 32 from ..utils.extmath import safe_sparse_dot
     33 from ..utils.sparsefuncs import mean_variance_axis, inplace_column_scale
     34 from ..utils.fixes import sparse_lsqr

/home/devashish/EXPERIMENTATION/scikit-learn/sklearn/utils/extmath.py in <module>()
     24 from ._logistic_sigmoid import _log_logistic_sigmoid
     25 from ..externals.six.moves import xrange
---> 26 from .sparsefuncs_fast import csr_row_norms
     27 from .validation import check_array
     28 from ..exceptions import NonBLASDotWarning

ImportError: sklearn/utils/sparsefuncs_fast.so: undefined symbol: PyFPE_jbuf

I have already executed sudo make and sudo python setup.py develop however I still face this issue. Currently I solve this by cloning the fork and setting up again which is quite cumbersome.

How can this be solved? Sorry if I missed out on stating any detail. Thanks for the help!

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 16 (15 by maintainers)

Most upvoted comments

I uninstalled numpy and scipy and then reinstalled from conda-forge however I’m still getting this error. numpy.__path__ gives the conda path. When I rm -rf the scikit-learn folder, clone it again from my fork and build it, it runs fine.

This can apparently happen if you have two versions of numpy installed one with conda and another one with pip.