[SciPy-dev] Strange import-related bug caused by scipy

Pearu Peterson pearu at scipy.org
Sat Nov 15 16:19:14 CST 2003



On Thu, 13 Nov 2003, Fernando Perez wrote:

> Here's how to reproduce it.
> 
> Start with two very simple files:
> 
> planck[import]> cat one.py
> from weave import inline,converters
> 
> planck[import]> cat two.py
> import scipy
> 
> import one
> 
> Here's what happens if you execfile() these:
> 
> 
> planck[import]> python
> Python 2.2.2 (#1, Feb 24 2003, 19:13:11)
> [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> execfile("one.py")
>  >>> execfile("two.py")
> Traceback (most recent call last):
>    File "<stdin>", line 1, in ?
>    File "two.py", line 3, in ?
>      import one
>    File "one.py", line 1, in ?
>      from weave import inline,converters
> ImportError: cannot import name converters

This bug was related to previous ppimport bug that you reported
some time ago. Then the fix was not general enough as the example above 
demonstrates.  Now the bug should be fixed in CVS, hopefully for good.

Pearu




More information about the Scipy-dev mailing list