
Hi all,
There are some new test errors
====================================================================== ERROR: Test with missing and filling values ---------------------------------------------------------------------- Traceback (most recent call last): File "/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/tests/test_io.py", line 947, in test_user_filling_values test = np.genfromtxt(StringIO(data), **kwargs) File "/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/npyio.py", line 1285, in genfromtxt key = names.index(key) AttributeError: 'tuple' object has no attribute 'index'
====================================================================== ERROR: test_user_missing_values (test_io.TestFromTxt) ---------------------------------------------------------------------- Traceback (most recent call last): File "/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/tests/test_io.py", line 931, in test_user_missing_values **basekwargs) File "/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/npyio.py", line 1657, in mafromtxt return genfromtxt(fname, **kwargs) File "/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/npyio.py", line 1285, in genfromtxt key = names.index(key) AttributeError: 'tuple' object has no attribute 'index'
====================================================================== ERROR: test_io.test_gzip_load ---------------------------------------------------------------------- Traceback (most recent call last): File "/data/home/nwagner/local/lib/python2.5/site-packages/nose-0.11.1-py2.5.egg/nose/case.py", line 183, in runTest self.test(*self.arg) File "/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/tests/test_io.py", line 1255, in test_gzip_load assert_array_equal(np.load(f), a) File "/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/npyio.py", line 327, in load fid = seek_gzip_factory(file) File "/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/npyio.py", line 66, in seek_gzip_factory g.name = f.name AttributeError: GzipFile instance has no attribute 'name'
---------------------------------------------------------------------- Ran 3066 tests in 12.458s
FAILED (KNOWNFAIL=4, errors=3) <nose.result.TextTestResult run=3066 errors=3 failures=0>
numpy.__version__
'2.0.0.dev-12d0200'
Nils

On Tue, Nov 23, 2010 at 9:28 AM, Nils Wagner nwagner@iam.uni-stuttgart.de wrote:
"/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/npyio.py", line 66, in seek_gzip_factory g.name = f.name AttributeError: GzipFile instance has no attribute 'name'
This one is mine--the change was made to avoid a deprecationwarning. Which version of Python are you using?
Regards Stéfan

2010/11/23 Stéfan van der Walt stefan@sun.ac.za:
On Tue, Nov 23, 2010 at 9:28 AM, Nils Wagner nwagner@iam.uni-stuttgart.de wrote:
"/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/npyio.py", line 66, in seek_gzip_factory g.name = f.name AttributeError: GzipFile instance has no attribute 'name'
This one is mine--the change was made to avoid a deprecationwarning. Which version of Python are you using?
I hope 2.5, as his site-packages directory is in lib/python2.5 :)
Gerrit.

On Tue, 23 Nov 2010 16:39:13 +0100 Gerrit Holl gerrit.holl@gmail.com wrote:
2010/11/23 Stéfan van der Walt stefan@sun.ac.za:
On Tue, Nov 23, 2010 at 9:28 AM, Nils Wagner nwagner@iam.uni-stuttgart.de wrote:
"/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/npyio.py", line 66, in seek_gzip_factory g.name = f.name AttributeError: GzipFile instance has no attribute 'name'
This one is mine--the change was made to avoid a deprecationwarning. Which version of Python are you using?
I hope 2.5, as his site-packages directory is in lib/python2.5 :)
Exactly. Nils

2010/11/23 Stéfan van der Walt stefan@sun.ac.za:
On Tue, Nov 23, 2010 at 9:28 AM, Nils Wagner nwagner@iam.uni-stuttgart.de wrote:
"/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/npyio.py", line 66, in seek_gzip_factory g.name = f.name AttributeError: GzipFile instance has no attribute 'name'
This one is mine--the change was made to avoid a deprecationwarning. Which version of Python are you using?
OK, should be fixed. Let me know if it is working.
Cheers Stéfan

On Tue, 23 Nov 2010 23:24:25 +0200, Stéfan van der Walt wrote:
2010/11/23 Stéfan van der Walt stefan@sun.ac.za:
On Tue, Nov 23, 2010 at 9:28 AM, Nils Wagner nwagner@iam.uni-stuttgart.de wrote:
"/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/npyio.py", line 66, in seek_gzip_factory g.name = f.name AttributeError: GzipFile instance has no attribute 'name'
This one is mine--the change was made to avoid a deprecationwarning. Which version of Python are you using?
OK, should be fixed. Let me know if it is working.
There's this on Python 3.2:
====================================================================== ERROR: test_io.test_gzip_load ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/lib/buildslave/numpy-real/b15/../../local3/nose/case.py", line 177, in runTest self.test(*self.arg) File "/var/lib/buildslave/numpy-real/b15/numpy-install-3.2/lib/python3.2/site-packages/numpy/lib/tests/test_io.py", line 1255, in test_gzip_load assert_array_equal(np.load(f), a) File "/var/lib/buildslave/numpy-real/b15/numpy-install-3.2/lib/python3.2/site-packages/numpy/lib/npyio.py", line 332, in load fid = seek_gzip_factory(file) File "/var/lib/buildslave/numpy-real/b15/numpy-install-3.2/lib/python3.2/site-packages/numpy/lib/npyio.py", line 73, in seek_gzip_factory f = GzipFile(fileobj=f.fileobj, filename=name) File "/usr/local/stow/python-3.2a4/lib/python3.2/gzip.py", line 162, in __init__ if hasattr(fileobj, 'mode'): mode = fileobj.mode File "/usr/local/stow/python-3.2a4/lib/python3.2/gzip.py", line 101, in __getattr__ return getattr(name, self.file) TypeError: getattr(): attribute name must be string
and also
Python 3.2a4 (r32a4:86446, Nov 20 2010, 17:59:19) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import numpy as np np.core.multiarray.__file__
'.../numpy/core/multiarray.cpython-32m.so'
which leads to
====================================================================== ERROR: Failure: OSError (/var/lib/buildslave/numpy-real/b15/numpy-install-3.2/lib/python3.2/site-packages/numpy/core/multiarray.pyd: cannot open shared object file: No such file or directory) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/lib/buildslave/numpy-real/b15/../../local3/nose/failure.py", line 27, in runTest reraise(self.exc_class, self.exc_val, self.tb) File "/var/lib/buildslave/numpy-real/b15/../../local3/nose/_3.py", line 7, in reraise raise exc_class(exc_val).with_traceback(tb) File "/var/lib/buildslave/numpy-real/b15/../../local3/nose/loader.py", line 372, in loadTestsFromName addr.filename, addr.module) File "/var/lib/buildslave/numpy-real/b15/../../local3/nose/importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/var/lib/buildslave/numpy-real/b15/../../local3/nose/importer.py", line 84, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/var/lib/buildslave/numpy-real/b15/numpy-install-3.2/lib/python3.2/site-packages/numpy/tests/test_ctypeslib.py", line 8, in <module> cdll = load_library('multiarray', np.core.multiarray.__file__) File "/var/lib/buildslave/numpy-real/b15/numpy-install-3.2/lib/python3.2/site-packages/numpy/ctypeslib.py", line 122, in load_library raise exc File "/var/lib/buildslave/numpy-real/b15/numpy-install-3.2/lib/python3.2/site-packages/numpy/ctypeslib.py", line 119, in load_library return ctypes.cdll[libpath] File "/usr/local/stow/python-3.2a4/lib/python3.2/ctypes/__init__.py", line 415, in __getitem__ return getattr(self, name) File "/usr/local/stow/python-3.2a4/lib/python3.2/ctypes/__init__.py", line 410, in __getattr__ dll = self._dlltype(name) File "/usr/local/stow/python-3.2a4/lib/python3.2/ctypes/__init__.py", line 340, in __init__ self._handle = _dlopen(self._name, mode) OSError: /var/lib/buildslave/numpy-real/b15/numpy-install-3.2/lib/python3.2/site-packages/numpy/core/multiarray.pyd: cannot open shared object file: No such file or directory

On 23 November 2010 23:44, Pauli Virtanen pav@iki.fi wrote:
On Tue, 23 Nov 2010 23:24:25 +0200, Stéfan van der Walt wrote: There's this on Python 3.2:
====================================================================== ERROR: test_io.test_gzip_load
Traceback (most recent call last): File "/var/lib/buildslave/numpy-real/b15/../../local3/nose/case.py", line 177, in runTest self.test(*self.arg) File "/var/lib/buildslave/numpy-real/b15/numpy-install-3.2/lib/python3.2/site-packages/numpy/lib/tests/test_io.py", line 1255, in test_gzip_load assert_array_equal(np.load(f), a) File "/var/lib/buildslave/numpy-real/b15/numpy-install-3.2/lib/python3.2/site-packages/numpy/lib/npyio.py", line 332, in load fid = seek_gzip_factory(file) File "/var/lib/buildslave/numpy-real/b15/numpy-install-3.2/lib/python3.2/site-packages/numpy/lib/npyio.py", line 73, in seek_gzip_factory f = GzipFile(fileobj=f.fileobj, filename=name) File "/usr/local/stow/python-3.2a4/lib/python3.2/gzip.py", line 162, in __init__ if hasattr(fileobj, 'mode'): mode = fileobj.mode File "/usr/local/stow/python-3.2a4/lib/python3.2/gzip.py", line 101, in __getattr__ return getattr(name, self.file) TypeError: getattr(): attribute name must be string
This was filed and fixed during the python bug weekend (http://bugs.python.org/issue10465), so it shouldn't be a problem with a current 3.2 checkout.
participants (5)
-
Gerrit Holl
-
Neil Muller
-
Nils Wagner
-
Pauli Virtanen
-
Stéfan van der Walt