Hi Stéfan,

Thanks for the reply.
Okay.  The official repo is upstream for me.  So

$ git fetch upstream
$ git reset --hard upstream/master
HEAD is now at a77923f Merge pull request #373 from luispedro/imread_io_plugin

But I'm getting the same import error.

Actually, I'm a little confused.
When I first try to import feature, I get an error related to the import of filter:

>>> from skimage import feature
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/[...]/skimage/feature/__init__.py", line 5, in <module>
    from .template import match_template
  File "/home/[...]/skimage/feature/template.py", line 4, in <module>
    from . import _template
  File "_template.pyx", line 37, in init skimage.feature._template (skimage/feature/_template.c:4073)
  File "/home/[...]/skimage/transform/__init__.py", line 1, in <module>
    from .hough_transform import *
  File "/home/[...]/skimage/transform/hough_transform.py", line 8, in <module>
    from skimage import measure, morphology
  File "/home/[...]/skimage/measure/__init__.py", line 2, in <module>
    from ._regionprops import regionprops, perimeter
  File "/home/[...]/skimage/measure/_regionprops.py", line 6, in <module>
    from skimage.morphology import convex_hull_image
  File "/home/[...]/skimage/morphology/__init__.py", line 6, in <module>
    from .watershed import watershed, is_local_maximum
  File "/home/[...]/skimage/morphology/watershed.py", line 30, in <module>
    from ..filter import rank_order
  File "/home/[...]/skimage/filter/__init__.py", line 7, in <module>
    from ._denoise import denoise_bilateral
ImportError: No module named _denoise

And on the second try or later, the error is indeed the same as before the fetch and reset:

>>> from skimage import feature
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/[...]/skimage/feature/__init__.py", line 5, in <module>
    from .template import match_template
  File "/home/[...]/skimage/feature/template.py", line 4, in <module>
    from . import _template
ImportError: cannot import name _template

(I displayed the error messages from the Python interpreter just because they are shorter than those from IPython.)

...
Marianne


On Friday, November 30, 2012 1:56:01 AM UTC+1, Stefan van der Walt wrote:
Hi Marianne

On Thu, Nov 29, 2012 at 9:01 AM, Marianne Corvellec
<marianne....@ens-lyon.org> wrote:
> I am having an Import Error when I try to import feature, namely:
>
> In [28]: from skimage import feature

Could you please try the following?

$ get fetch origin
$ git reset --hard origin/master

Rebuild and then try again?  You may have to replace "origin" with
"upstream" or whatever you called the official repo.

Stéfan