[SciPy-user] Problem installing binaries/source on Debian
Pearu Peterson
pearu at cens.ioc.ee
Tue Sep 24 08:12:45 EDT 2002
On Tue, 24 Sep 2002, [iso-8859-15] José Luis Gómez Dans wrote:
> Having said that, I have just tried to import the io module and have
> succeeded by doing this:
> from scipy_base import *
> from scipy import *
> Traceback (most recent call last):
> File "./extract_data.py", line 6, in ?
> from scipy import *
> File
> "/tmp/SciPyTest/linux2/lib/python2.2/site-packages/scipy/__init__.py",
> line 62, in ?
> File
> "/tmp/SciPyTest/linux2/lib/python2.2/site-packages/scipy/weave/__init__.py",
> line 14, in ?
> ImportError: cannot import name inline
> from scipy import *
> from scipy.io import *
>
> (Note that I had to import scipy twice). So I import scipy, I get an
> error on the weave/inline_tools import, saying that it cannot import
> inline. However, if I retry this same statement, it can the import
> inline namespace thing.
First, why don't you install scipy properly from sources? Especially,
since you are using debian where the build process should be easy.
Second, do you need weave? If not then you can disable it easily by
modifying scipy/__init__.py. This is just to get pass weave import error
but I suspect that you'll see more..
Third, don't get excited if scipy import succeeds in the second try
because it doesn't. In the second import, the import command sees from
looking sys.modules that 'scipy' module is already imported (though
unsuccesfully but the import command does not know that) and therefore
does nothing.
Pearu
More information about the SciPy-User
mailing list