← Back to team overview

yade-users team mailing list archive

[Question #292593]: Importing the skimage module into yade

 

New question #292593 on Yade:
https://answers.launchpad.net/yade/+question/292593

I have a problem with importing the scikit-image python library into Yade. Although the scikit-image library was succesfully instaled with Enthought Canopy installer and it works fine in python, I can't import it into Yade. Writing the command:

import skimage

results in the following error message:




ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line string', (1, 2))

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/usr/bin/yade in <module>()
----> 1 import skimage

/home/tijan/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/skimage/__init__.py in <module>()
    154         del geometry
    155     except ImportError as e:
--> 156         _raise_build_error(e)
    157     from .util.dtype import *
    158 

/home/tijan/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/skimage/__init__.py in _raise_build_error(e)
    135     raise ImportError("""%s
    136 It seems that scikit-image has not been built correctly.
--> 137 %s""" % (e, msg))
    138 
    139 try:

ImportError: /home/tijan/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/skimage/_shared/geometry.so: undefined symbol: PyUnicodeUCS2_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 




I am running the daily version of Yade on the 14.04 version of Ubuntu.  Do you have any ideas what could be causing this problem?

Thank you in advance for your help.

Tijan



-- 
You received this question notification because your team yade-users is
an answer contact for Yade.