From: Cong <vo....@is...> - 2002-12-22 08:51:40
|
Cong> I've just upgraded from Numeric-21.0 to Numeric-22.0 Cong> ( python-2.2.2 ) and found a bug. Do anyone use LinearAlgebra too ? Cong> Cong> Now, I downed it to Numeric 21.0 . This version works very well. I found that now this version doesnot work too. So I delete Numeric 21.0 complettely then install Numeric 22.0 again. After that the error message changed to: $ python Python 2.2.2 (#1, Dec 22 2002, 17:44:21) [GCC 3.2.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import LinearAlgebra Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.2/site-packages/Numeric/LinearAlgebra.py", line 10, in ? import MLab File "/usr/lib/python2.2/site-packages/Numeric/MLab.py", line 20, in ? import RandomArray File "/usr/lib/python2.2/site-packages/Numeric/RandomArray.py", line 30, in ? seed() File "/usr/lib/python2.2/site-packages/Numeric/RandomArray.py", line 26, in seed x = int(t/base) OverflowError: float too large to conver I can not figure out what is happenning. Temporarily, I import LinearAlgebra this way: try: import LinearAlgebra except: import LinearAlgebra And this worked, for Numeric 22.0 on python 2.2.2 as well as for Numeric 21.0 on python 2.2.2 . // Cong Cong> Cong> Cong Cong> Cong> $ python Cong> Python 2.2.2 (#1, Dec 14 2002, 05:45:37) Cong> [GCC 3.2.1] on linux2 Cong> Type "help", "copyright", "credits" or "license" for more information. Cong> >>> import LinearAlgebra Cong> Traceback (most recent call last): Cong> File "<stdin>", line 1, in ? Cong> File "/usr/lib/python2.2/site-packages/Numeric/LinearAlgebra.py", line 10, in ? Cong> import MLab Cong> File "/usr/lib/python2.2/site-packages/Numeric/MLab.py", line 20, in ? Cong> import RandomArray Cong> File "/usr/lib/python2.2/site-packages/Numeric/RandomArray.py", line 30, in ? Cong> seed() Cong> File "/usr/lib/python2.2/site-packages/Numeric/RandomArray.py", line 24, in seed Cong> ndigits = int(math.log10(t)) Cong> OverflowError: float too large to convert Cong> |