Description of problem: Running a script using Numpy 1.2.0-1.fc9 and Scipy 0.6.0-7.fc9 gives the warning messages: /usr/lib64/python2.5/site-packages/scipy/misc/__init__.py:25: DeprecationWarning: NumpyTest will be removed in the next release; please update your code to use nose or unittest test = NumpyTest().test /usr/lib64/python2.5/site-packages/scipy/linalg/__init__.py:32: DeprecationWarning: NumpyTest will be removed in the next release; please update your code to use nose or unittest test = NumpyTest().test /usr/lib64/python2.5/site-packages/scipy/special/__init__.py:23: DeprecationWarning: NumpyTest will be removed in the next release; please update your code to use nose or unittest test = NumpyTest().test /usr/lib64/python2.5/site-packages/scipy/interpolate/__init__.py:15: DeprecationWarning: NumpyTest will be removed in the next release; please update your code to use nose or unittest test = NumpyTest().test This is very annoying and breaks my scripts (I parse the output). See: http://www.nabble.com/NumpyTest-warning-after-upgrade-td19714442.html This is really the fault of the upstream developers, and has happened before (with NumPy 1.0.2 and SciPy 0.5.2). I don't understand why they release Numpy such that it breaks the current release of Scipy. Anyhow, I'd appreciate it if you could apply the fix as in upstream svn (or in the reference above). Unless a new upstream version is due out soon... Thanks, Matt
Yeah this is unfortunate. If you can collect all the necessary changes of from numpy.testing import NumpyTest to from numpy.testing import Tester into a patch that I can apply I'd very much welcome it. I'm not sure I can get to this until Sunday at the earliest if I need to do it on my own. If you can get me a patch I will spin up an f9 update which includes it. -jef
I'll see if I can get together a patch. Thanks, Matt
Created attachment 322335 [details] Proposed Patch I think this is everything. However, I could not figure out how to test this patch using: import scipy scipy.test(level=1) from the non-installed copy I used to create the patch. Is that something that would be easy for you to do? Thanks, Matt
Created attachment 323967 [details] Updated patch This patch now applies via 'patch -p1' from inside the top-level scipy directory. I was able to run the test suite via: from scipy import * test() This does yield hundreds (?) of additional 'Obsolete' warnings etc, but does seem to remove the warnings that are the subject of this bug report. It seems that scipy has some significant changes coming in the next release to sync up with numpy again. Does this look OK? Thanks, Matt
scipy-0.7.0-0.1.b1.fc9 has been submitted as an update for Fedora 9. http://admin.fedoraproject.org/updates/scipy-0.7.0-0.1.b1.fc9
scipy-0.7.0-0.1.b1.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/scipy-0.7.0-0.1.b1.fc10
scipy-0.7.0-0.1.b1.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing-newkey update scipy'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2009-0020
scipy-0.7.0-0.1.b1.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update scipy'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-0211
As I wrote at http://admin.fedoraproject.org/updates/F9/FEDORA-2009-0020 this does fix the depreciation warnings mentioned here. However, an upstream package is not completely updated for 0.7.0 yet as: >>from scipy.interpolate.fitpack import splev gives the warning: /usr/lib64/python2.5/site-packages/scipy/sparse/linalg/dsolve/linsolve.py:20: DeprecationWarning: scipy.sparse.linalg.dsolve.umfpack will be removed, install scikits.umfpack instead ' install scikits.umfpack instead', DeprecationWarning ) Thanks! I'll bring this up to the SciPy developers.
There is a fix in SciPy trunk that evidently resolves the issue in #9, but it did not make it into the beta. So this should be fixed with the release version. I think we can close this? Thanks! Matt
If you can point me to the patch to fix it, I can re-roll an test update. -jef
I think it was fixed in trunk rev 5214. Not sure about a patch per-se. Thanks, - Matt
scipy-0.7.0-0.1.b1.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.
scipy-0.7.0-0.1.b1.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.