You are not logged in.

#1 2017-06-18 01:53:02

T-Minus
Member
Registered: 2016-01-07
Posts: 13

Error importing numpy after update

Hi guys, i just updated numpy (from 1.12 to 1.13) but it throws this error when i try to import it:

python wrote:

>>> 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_AdjustIndices

During 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

#2 2017-06-18 01:56:42

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: Error importing numpy after update

Wow, a different error than I was expecting.

Why are you on 3.6.0? Remember, partial updates are NOT supported!

Offline

#3 2017-06-18 02:09:52

T-Minus
Member
Registered: 2016-01-07
Posts: 13

Re: Error importing numpy after update

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

#4 2017-06-18 02:24:14

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Error importing numpy after update

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

#5 2017-06-18 03:14:04

T-Minus
Member
Registered: 2016-01-07
Posts: 13

Re: Error importing numpy after update

Thank you all guys, it worked downgrading numpy also. And yes, i think i'm finally gonna need to fix the real problem.

Offline

Board footer

Powered by FluxBB