On Tue, 23 Nov 2010 23:24:25 +0200, Stéfan van der Walt wrote:
> 2010/11/23 Stéfan van der Walt <[email protected]>:
>> On Tue, Nov 23, 2010 at 9:28 AM, Nils Wagner
>> <[email protected]> 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
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion