[SciPy-User] scikits.learn installation
David Trethewey
dlrt2 at ast.cam.ac.uk
Tue Mar 2 06:02:09 EST 2010
I installed the python headers and libboost. It now compiles without
error but still when I actually try to import the em module I get the
same error message;
>>>> import scipy
>>>> import numpy
>>>> from scikits.learn.machine import em
>>>>
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "scikits/learn/machine/em/__init__.py", line 8, in <module>
> from online_em import OnGMM as _OnGMM
> File "scikits/learn/machine/em/online_em.py", line 164, in <module>
> import _rawden
> ImportError: No module named _rawden
>
>
> David Trethewey
> Institute of Astronomy, Cambridge, UK
>
>
>
scipy-user-request at scipy.org wrote:
> Send SciPy-User mailing list submissions to
> scipy-user at scipy.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.scipy.org/mailman/listinfo/scipy-user
> or, via email, send a message with subject or body 'help' to
> scipy-user-request at scipy.org
>
> You can reach the person managing the list at
> scipy-user-owner at scipy.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of SciPy-User digest..."
>
>
> Today's Topics:
>
> 1. Re: Error on importing scikits.learn (David Trethewey)
> 2. Re: Error on importing scikits.learn (David Trethewey)
> 3. Re: Error on importing scikits.learn (Helge Reikeras)
> 4. ANN: SfePy 2010.1 (Robert Cimrman)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 01 Mar 2010 11:46:42 +0000
> From: David Trethewey <dlrt2 at ast.cam.ac.uk>
> Subject: Re: [SciPy-User] Error on importing scikits.learn
> To: scipy-user at scipy.org
> Message-ID: <4B8BA922.6010900 at ast.cam.ac.uk>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> I get the following error message when attempting to import the
> expectation maximisation (em) module from scikits.learn :
>
>>>>> import scipy
>>>>> import numpy
>>>>> from scikits.learn.machine import em
>>>>>
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in <module>
>> File "scikits/learn/machine/em/__init__.py", line 8, in <module>
>> from online_em import OnGMM as _OnGMM
>> File "scikits/learn/machine/em/online_em.py", line 164, in <module>
>> import _rawden
>> ImportError: No module named _rawden
>>
>> Does anyone know what this _rawden module is and why might it not be
>> found?
>>
>> David Trethewey
>> Institute of Astronomy, Cambridge, UK
>>
>>
>>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 01 Mar 2010 11:51:14 +0000
> From: David Trethewey <dlrt2 at ast.cam.ac.uk>
> Subject: Re: [SciPy-User] Error on importing scikits.learn
> To: scipy-user at scipy.org
> Message-ID: <4B8BAA32.3000004 at ast.cam.ac.uk>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> I have traced it back to an error in compiling scikits.learn itself:
>
> building 'scikits.learn.machine.em._rawden' extension
> compiling C sources
> C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2
> -Wall -Wstrict-prototypes -fPIC
>
> compile options: '-I/usr/lib/python2.6/dist-packages/numpy/core/include
> -I/usr/include/python2.6 -c'
> gcc: scikits/learn/machine/em/src/pure_den.c
> scikits/learn/machine/em/src/pure_den.c:7:20: error: Python.h: No such
> file or directory
>
> David
>
> David Trethewey wrote:
>
>> I get the following error message when attempting to import the
>> expectation maximisation (em) module from scikits.learn :
>>
>>>>>> import scipy
>>>>>> import numpy
>>>>>> from scikits.learn.machine import em
>>>>>>
>>> Traceback (most recent call last):
>>> File "<stdin>", line 1, in <module>
>>> File "scikits/learn/machine/em/__init__.py", line 8, in <module>
>>> from online_em import OnGMM as _OnGMM
>>> File "scikits/learn/machine/em/online_em.py", line 164, in <module>
>>> import _rawden
>>> ImportError: No module named _rawden
>>>
>>> Does anyone know what this _rawden module is and why might it not be
>>> found?
>>>
>>> David Trethewey
>>> Institute of Astronomy, Cambridge, UK
>>>
>>>
>>>
>>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 01 Mar 2010 13:55:01 +0200
> From: "Helge Reikeras" <helge.reikeras at gmail.com>
> Subject: Re: [SciPy-User] Error on importing scikits.learn
> To: "SciPy Users List" <scipy-user at scipy.org>
> Message-ID: <op.u8v0pqws9y0l3i at helge-desktop>
> Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
>
> On Mon, 01 Mar 2010 13:51:14 +0200, David Trethewey <dlrt2 at ast.cam.ac.uk>
> wrote:
>
>
>> compile options: '-I/usr/lib/python2.6/dist-packages/numpy/core/include
>> -I/usr/include/python2.6 -c'
>> gcc: scikits/learn/machine/em/src/pure_den.c
>> scikits/learn/machine/em/src/pure_den.c:7:20: error: Python.h: No such
>> file or directory
>>
>
> This is because you don't have the Python header files installed. You need
> to install these somehow. E.g. if you are running Ubuntu you do "sudo
> apt-get install python-dev".
>
>
More information about the SciPy-User
mailing list