Install difficulties - No module named _hough_transform

Johannes Schoenberger jsch at demuc.de
Sat Feb 14 12:32:50 EST 2015


Just to make sure: Do you try to import skimage from within the scikit-image source directory?

> On Feb 14, 2015, at 12:21 PM, James Jackson <james.a.f.jackson.2 at googlemail.com> wrote:
> 
> Just tinkering, I wondered if this was related to having multiple versions of Python installed.  When auto-config / build scripts are being run I always have a niggling feeling of unease in a multiple-version environment.  Looking at the multi-version support in OS X, I came across this nugget to set a global default version to execute:
> 
> sudo defaults write /Library/Preferences/com.apple.versioner.python Version 2.7
> 
> It looks like the modules are now importing properly.  Perhaps worth adding to the install page as a Mac OS X note?
> 
> Yours,
> James.
> 
> On Sat, Feb 14, 2015 at 6:17 PM, James Jackson <james.a.f.jackson.2 at googlemail.com> wrote:
> Josh,
> 
> Thanks for the reply - I've just installed cython using the requirements file so should be up-to-date.  Looking back at my install log, it seems I've got the latest (0.22).
> 
> Collecting cython>=0.21 (from -r requirements.txt (line 1))
>   Downloading Cython-0.22-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (3.7MB)
> 
> Looking in the site-packages directory I do see a _hough_transform library:
> 
> James-Jacksons-MacBook-Air:transform jamesjackson$ pwd
> /Library/Python/2.7/site-packages/skimage/transform
> James-Jacksons-MacBook-Air:transform jamesjackson$ ll | grep hough
> -rwxr-xr-x   1 root  wheel  659580 14 Feb 09:41 _hough_transform.so
> -rw-r--r--   1 root  wheel    5566 14 Feb 09:41 hough_transform.py
> -rw-r--r--   1 root  wheel    5044 14 Feb 09:41 hough_transform.pyc
> 
> So something funny is clearly going on here with it not being picked up...
> 
> Yours,
> James.
> 
> On Sat, Feb 14, 2015 at 5:51 PM, Josh Warner <silvertrumpet999 at gmail.com> wrote:
> Hi James,
> 
> These are Cython modules that aren't being found or are not properly compiling. Please let us know what version of Cython you are running.
> 
> Rest assured the modules are there. These are not external dependencies. I suspect an old version of Cython is to blame.
> 
> 
> Regards,
> 
> 
> 
> On Saturday, February 14, 2015 at 7:35:31 AM UTC-7, james.a.f... at googlemail.com wrote:
> > Hi,
> >
> >
> > I'm trying to install skimage, and having installed the dependencies (from requirements.txt in the source release), and then using pip to install skimage itself, I am having problems importing the transform library:
> >
> >
> >
> > Python 2.7.2 (default, Oct 11 2012, 20:14:37) 
> > [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> import skimage.data
> > >>> import skimage.transform
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> >   File "skimage/transform/__init__.py", line 1, in <module>
> >     from ._hough_transform import (hough_ellipse, hough_line,
> > ImportError: No module named _hough_transform
> >
> >
> > This is on Mac OSX 10.8.4 with Python 2.7.2.  Is this an external library that needs installing from somewhere else?  I have already had to install tifffile separately to get skimage.data working (perhaps should be added to requirements.txt?).  I've tried a variety of approaches, but haven't had any success.
> >
> >
> > Any and all advice welcome!
> >
> >
> > Yours,
> > James.
> 
> --
> You received this message because you are subscribed to a topic in the Google Groups "scikit-image" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/scikit-image/anOjoI4jW-w/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to scikit-image+unsubscribe at googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups "scikit-image" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to scikit-image+unsubscribe at googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.




More information about the scikit-image mailing list