numpy.test() fails if it runs after scipy.test()
Hi, I've got one failure if I run numpy.test() after running scipy.test() : ====================================================================== ERROR: Ticket #396 ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/core/tests/test_regression.py", line 600, in check_poly1d_nan_roots self.failUnlessRaises(N.linalg.LinAlgError,getattr,p,"r") File "/home/loic/tmp/Linux/lib/python2.5/unittest.py", line 320, in failUnlessRaises callableObj(*args, **kwargs) File "/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/polynomial.py", line 623, in __getattr__ return roots(self.coeffs) File "/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/polynomial.py", line 124, in roots roots = _eigvals(A) File "/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/polynomial.py", line 37, in _eigvals return eigvals(arg) File "/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/linalg/decomp.py", line 378, in eigvals return eig(a,b=b,left=0,right=0,overwrite_a=overwrite_a) File "/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/linalg/decomp.py", line 128, in eig a1 = asarray_chkfinite(a) File "/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/function_base.py", line 398, in asarray_chkfinite raise ValueError, "array must not contain infs or NaNs" ValueError: array must not contain infs or NaNs But I've got no error if I begin with numpy test. I've seen that this Ticket #396 seems closed in Trac, should I reopen it ? for more information, I've attached the results of scipy.test and numpy.test . Regards, -- LB
Loic, I was not able to reproduce this. Have you tried doing a clean install by removing your numpy and scipy directories in the site-packages and reinstalling. I've had old files in my install directory cause problems in the past. You are correct, the tests should not effect one another. Chris On Sat, Feb 23, 2008 at 10:23 PM, Loïc BERTHE <berthe.loic@gmail.com> wrote:
Hi,
I've got one failure if I run numpy.test() after running scipy.test() :
====================================================================== ERROR: Ticket #396 ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/core/tests/test_regression.py", line 600, in check_poly1d_nan_roots self.failUnlessRaises(N.linalg.LinAlgError,getattr,p,"r") File "/home/loic/tmp/Linux/lib/python2.5/unittest.py", line 320, in failUnlessRaises callableObj(*args, **kwargs) File "/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/polynomial.py", line 623, in __getattr__ return roots(self.coeffs) File "/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/polynomial.py", line 124, in roots roots = _eigvals(A) File "/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/polynomial.py", line 37, in _eigvals return eigvals(arg) File "/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/linalg/decomp.py", line 378, in eigvals return eig(a,b=b,left=0,right=0,overwrite_a=overwrite_a) File "/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/linalg/decomp.py", line 128, in eig a1 = asarray_chkfinite(a) File "/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/function_base.py", line 398, in asarray_chkfinite raise ValueError, "array must not contain infs or NaNs" ValueError: array must not contain infs or NaNs
But I've got no error if I begin with numpy test. I've seen that this Ticket #396 seems closed in Trac, should I reopen it ?
for more information, I've attached the results of scipy.test and numpy.test.
Regards,
-- LB
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
-- Christopher Burns, Software Engineer Computational Infrastructure for Research Labs 10 Giannini Hall, UC Berkeley phone: 510.643.4014 http://cirl.berkeley.edu/
That's very strange, I've made a local installation of numpy 1.0.4 and scipy 0.6 from official source, and I use the same kind of installation script as in http://www.scipy.org/Installing_SciPy/Linux/BuildingFromSource/GCC_1, so I always erase all the local directory to prevent this kind of conflict from happening. What's your configuration ? I'm under GNU/Linux debian lenny on a i686, and, I've just seen that this pb is already in the debian packages of my distribution, which are :
dpkg -l 'python-*py' Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder | État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi- installé |/ Err?=(aucune)/H=à garder/besoin Réinstallation/X=les deux (État,Err: majuscule=mauvais) ||/ Nom Version Description +++-============================-============================- ======================================================================== un python-f2py <néant> (aucune description n'est disponible) ii python-ipy 1:0.56-1 Python module for handling IPv4 and IPv6 addresses and networks ii python-numpy 1:1.0.4-5 Numerical Python adds a fast array facility to the Python language ii python-scipy 0.6.0-5.1 scientific tools for Python un python-soappy <néant> (aucune description n'est disponible)
-- LB
participants (3)
-
Christopher Burns
-
LB
-
Loïc BERTHE