This (and your other post regarding tifffile.c) are both likely due to an un-built version of scikit-image. We have a large number of routines implemented in Cython for speed; these have to be built before all features in the package will work. Anaconda, Canopy, and other distributions ship compiled versions but if you download from GitHub it must be built.

Our documentation for building the package is located here:

It looks like your best path forward is building inplace by running `python build_ext -i` in the scikit-image directory.


On Friday, July 3, 2015 at 9:45:09 AM UTC-5, Saber Ayoub Chelaghma wrote:
I have a problem when i try to compile a basic example for scikit. I’m using python on Ubuntu :

cannot import name 'generic_cy'

unfile('/home/stage/Documents/scikit-image/', wdir='/home/stage/Documents/scikit-image')

  File "/usr/lib/python3/dist-packages/spyderlib/widgets/externalshell/", line 586, in runfile
    execfile(filename, namespace)

  File "/usr/lib/python3/dist-packages/spyderlib/widgets/externalshell/", line 48, in execfile
    exec(compile(open(filename, 'rb').read(), filename, 'exec'), namespace)

  File "/home/stage/Documents/scikit-image/", line 1, in <module>
    from skimage import data

  File "/home/stage/Documents/scikit-image/skimage/data/", line 13, in <module>
    from ._binary_blobs import binary_blobs

  File "/home/stage/Documents/scikit-image/skimage/data/", line 2, in <module>
    from ..filters import gaussian_filter

  File "/home/stage/Documents/scikit-image/skimage/filters/", line 13, in <module>
    from . import rank

  File "/home/stage/Documents/scikit-image/skimage/filters/rank/", line 1, in <module>
    from .generic import (autolevel, bottomhat, equalize, gradient, maximum, mean,

  File "/home/stage/Documents/scikit-image/skimage/filters/rank/", line 24, in <module>
    from . import generic_cy

Best regards