You are not logged in.
Hi guys, i just updated numpy (from 1.12 to 1.13) but it throws this error when i try to import it:
>>> import numpy
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/numpy/core/__init__.py", line 16, in <module>
from . import multiarray
ImportError: /usr/lib/python3.6/site-packages/numpy/core/multiarray.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PySlice_AdjustIndicesDuring handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/site-packages/numpy/__init__.py", line 142, in <module>
from . import add_newdocs
File "/usr/lib/python3.6/site-packages/numpy/add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "/usr/lib/python3.6/site-packages/numpy/lib/__init__.py", line 8, in <module>
from .type_check import *
File "/usr/lib/python3.6/site-packages/numpy/lib/type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "/usr/lib/python3.6/site-packages/numpy/core/__init__.py", line 26, in <module>
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control). Otherwise reinstall numpy.Original error was: /usr/lib/python3.6/site-packages/numpy/core/multiarray.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PySlice_AdjustIndices
PD: I am using Python 3.6.0
How can i solve it?
Offline
Wow, a different error than I was expecting.
Why are you on 3.6.0? Remember, partial updates are NOT supported!
Offline
Hi, thank you for answer.
I am working with Python 3.6.0 because Python 3.6.1 it's giving me a lot of trouble, it just dies (throws "core generated" and other erros i can't remember right now) so i had to downgrade it.
Offline
The best advice would be to seek help fixing the real problem then.
Less good but still sound advice would be to downgrade numpy to a version that is suitable for 3.6.0 which would be 1.12 ... so it's really no surpises that updating from 1.12 to 1.13 led to problems.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Thank you all guys, it worked downgrading numpy also. And yes, i think i'm finally gonna need to fix the real problem.
Offline