On Mon, Apr 4, 2011 at 11:42 PM, Charles R Harris <charlesr.harris@gmail.com> wrote:
On Mon, Apr 4, 2011 at 8:42 PM, Derek Homeier <derek@astro.physik.uni-goettingen.de> wrote:
Hi all,
On 4 Apr 2011, at 22:04, Ralf Gommers wrote:
I am pleased to announce the availability of the second beta of NumPy 1.6.0. Due to the extensive changes in the Numpy core for this release, the beta testing phase will last at least one month. Please test this beta and report any problems on the Numpy mailing list.
the tests have a number of Python2.4-incompatibilities, one for a file opening mode and the rest for class declaration styles.
Cheers, Derek
Running unit tests for numpy NumPy version 1.6.0b2 NumPy is installed in /sw/lib/python2.4/site-packages/numpy Python version 2.4.4 (#1, Jan 5 2011, 03:05:41) [GCC 4.0.1 (Apple Inc. build 5493)] nose version 1.0.0 ..... ====================================================================== ERROR: Failure: SyntaxError (invalid syntax (test_multiarray.py, line 1023)) ... File "/sw/lib/python2.4/site-packages/numpy/core/tests/ test_multiarray.py", line 1023 class TestPutmask(): ^ SyntaxError: invalid syntax
====================================================================== ERROR: Failure: SyntaxError (invalid syntax (test_numeric.py, line 1068)) ... File "/sw/lib/python2.4/site-packages/numpy/core/tests/ test_numeric.py", line 1068 class TestAllclose(): ^ SyntaxError: invalid syntax
====================================================================== ERROR: Failure: SyntaxError (invalid syntax (test_scalarmath.py, line 84)) ... File "/sw/lib/python2.4/site-packages/numpy/core/tests/ test_scalarmath.py", line 84 class TestRepr(): ^ SyntaxError: invalid syntax
====================================================================== ERROR: Failure: SyntaxError (invalid syntax (test_twodim_base.py, line 280)) ... File "/sw/lib/python2.4/site-packages/numpy/lib/tests/ test_twodim_base.py", line 280 class TestTriuIndices(): ^ SyntaxError: invalid syntax
====================================================================== ERROR: Failure: SyntaxError (invalid syntax (test_linalg.py, line 243)) ... File "/sw/lib/python2.4/site-packages/numpy/linalg/tests/ test_linalg.py", line 243 class TestMatrixPower(): ^ SyntaxError: invalid syntax
Subclassing object should fix those, I think.
====================================================================== ERROR: test_gft_filename (test_io.TestFromTxt) ---------------------------------------------------------------------- Traceback (most recent call last): File "/sw/lib/python2.4/site-packages/numpy/lib/tests/test_io.py", line 1327, in test_gft_filename assert_array_equal(np.genfromtxt(name), exp_res) File "/sw/lib/python2.4/site-packages/numpy/lib/npyio.py", line 1235, in genfromtxt fhd = iter(np.lib._datasource.open(fname, 'Ub')) File "/sw/lib/python2.4/site-packages/numpy/lib/_datasource.py", line 145, in open return ds.open(path, mode) File "/sw/lib/python2.4/site-packages/numpy/lib/_datasource.py", line 477, in open return _file_openers[ext](found, mode=mode) IOError: invalid mode: Ub
Guess that wasn't tested before ;) I thought that was strange when I saw it. The source of the problem is line 2035 in npyio.py. Additionally, Since genloadtxt needs to have byte strings the 'rb" mode should probably be used. That works on linux, both for python 2 and python 3, but doing that might uncover genfromtxt problems on other platforms.
"rb" is fine on Windows with python 3.2, (that's what I tested initially for this bug) Josef
Chuck _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion