[SciPy-user] scipy import warning - how to remove

Jakob van Bethlehem jakobsybren@gmail....
Wed Jul 4 12:59:09 CDT 2007


Robert VERGNES <robert.vergnes <at> yahoo.fr> writes:

> 
> 
> Hello,each time I do a from scipy import * I get a warning. How to remove it
?This has a bad result on py2exe which seems to believe it is an error and stop
starting my application.Any ideas ?(how to force not to importe scipytest
?)ThanxRobertPlatform - Windows - Scipy 0.5.2from scipy import 

I'm not sure whether it is possible to prevent the module from loading. You can
however prevent the message quite easily (on Linux anyway) by going to the
packages-dir of your scipy installation (...../site-packages/scipy)
In this directory give the following command:

find . -name "*.py" -exec sed -i -e "s/ScipyTest/NumpyTest/g" "{}" \;

This will replace the deprecated definitions/calls of ScipyTest by the new
NumpyTest, including the also deprecated class ScipyTestCase. (I suppose this is
precisely what has been done in the svn-version)




More information about the SciPy-user mailing list