Install difficulties - No module named _hough_transform

James Jackson james.a.f.jackson.2 at googlemail.com
Sat Feb 14 12:21:07 EST 2015


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.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20150214/1a770be0/attachment.html>


More information about the scikit-image mailing list