not able to import skimage #2440

Open
vrjgamer opened this Issue Jan 9, 2017 · 4 comments

Projects

None yet

2 participants

@vrjgamer
vrjgamer commented Jan 9, 2017 edited

Description

I'm not able to import skimage in python.

[>> import skimage
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/vrushabh/.local/lib/python2.7/site-packages/skimage/__init__.py", line 156, in <module>
    _raise_build_error(e)
  File "/home/vrushabh/.local/lib/python2.7/site-packages/skimage/__init__.py", line 137, in _raise_build_error
    %s""" % (e, msg))
ImportError: /home/vrushabh/.local/lib/python2.7/site-packages/skimage/_shared/geometry.so: undefined symbol: PyUnicodeUCS4_DecodeUTF8

It seems that scikit-image has not been built correctly.

Your install of scikit-image appears to be broken.
Try re-installing the package following the instructions at:
http://scikit-image.org/docs/stable/install.html 

this is the error

@soupault
Member
soupault commented Jan 9, 2017

@vrjgamer how did you install your copy of scikit-image?

@vrjgamer
vrjgamer commented Jan 9, 2017 edited

using this pip install -U scikit-image

even this:

If your distribution ships an outdated version, you may recompile from source. First install the dependencies:

sudo apt-get install python-matplotlib python-numpy python-pil python-scipy
Get compilers:

sudo apt-get install build-essential cython

@soupault
Member
soupault commented Jan 9, 2017 edited

@vrjgamer installing with sudo typically copies files to /usr/lib. In your case you have scikit-image installed also(?) into /home/vrushabh/.local/lib. This latter is probably a corrupted installation.
Please, try with /home/vrushabh/.local/lib/python2.7/site-packages/skimage removed.

@soupault
Member

@vrjgamer any news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment