GNU bug report logs -
#63912
python-scikit-learn can't be imported "module compiled against API version 0x10 but this version of numpy is 0xf"
Previous Next
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Dear Guix maintainers,
If I run:
guix shell python-scikit-learn
and in it, run:
python3 -c "from sklearn.feature_extraction.text import CountVectorizer"
I get:
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf . Check the section C-API incompatibility at the Troubleshooting ImportError section at https://numpy.org/devdocs/user/troubleshooting-importerror.html#c-api-incompatibility for indications on how to solve this problem .
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.10/site-packages/sklearn/__init__.py", line 82, in <module>
from .base import clone
File "/usr/lib/python3.10/site-packages/sklearn/base.py", line 17, in <module>
from .utils import _IS_32BIT
File "/usr/lib/python3.10/site-packages/sklearn/utils/__init__.py", line 17, in <module>
from scipy.sparse import issparse
File "/usr/lib/python3.10/site-packages/scipy/sparse/__init__.py", line 267, in <module>
from ._csr import *
File "/usr/lib/python3.10/site-packages/scipy/sparse/_csr.py", line 10, in <module>
from ._sparsetools import (csr_tocsc, csr_tobsr, csr_count_blocks,
ImportError: numpy.core.multiarray failed to import
I can't look into it right now, but I'm available to provide any
necessary information.
Cheers,
Edouard.
This bug report was last modified 2 years and 39 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.