[SciPy-user] ImportError: No module named __config__

Matthew Brett matthew.brett@gmail....
Mon Mar 24 06:45:32 CDT 2008


Hi,

Did you see this message just sent by David Cournapeau in response to
similar question?

On Mon, Mar 24, 2008 at 12:22 PM, Mark Coletti <mcoletti@gmail.com> wrote:
> I've just installed scipy 0.6.0 but am unable to use it.  When attempting to
> import scipy, I get the following error:
>
> Python 2.5.2 (r252:60911, Feb 27 2008, 23:06:45)
>  [GCC 4.1.0 (SUSE Linux)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import scipy
>  Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "scipy/__init__.py", line 54, in <module>
>     from __config__ import show as show_config
> ImportError: No module named __config__

Mark Coletti wrote:
>
> I'm having the same problem with my SuSE 10.1 box.  I've had to install python
> 2.5 in /usr/local/; 2.4 is still in /usr/bin.  This *shouldn't* be a problem,
> but I worry there might be some sort of conflict between the two.  I hope
> there's not some compatibility problem between the latest python and scipy.
>

This is because you are trying to import numpy while being in the numpy
source tree, which does not work. The solution is to simply relaunch
your python interpreter from another directory. The last svn has a
better error message, because the above error is indeed quite obscure.

...

David


More information about the SciPy-user mailing list