[Numpy-discussion] [SciPy-Dev] ANN: Numpy 1.6.0 beta 1

Bruce Southey bsouthey@gmail....
Wed Mar 23 14:48:07 CDT 2011


On 03/23/2011 02:32 PM, Pauli Virtanen wrote:
> On Wed, 23 Mar 2011 14:17:20 -0500, Bruce Southey wrote:
>> I can not figure out what is different between git and this version :-(
>>
>> All the paths appear to be the same.
>> Further it continues onwards when I do: $python3.1 -m pdb setup.py build
>>
>> I added these lines to the start of "numpy/compat/__init__.py" import os
>> print(os.getcwd())
>>
>> /home/bsouthey/python/numpystuff/tmp6/numpy-1.6.0b1/build/py3k This is
>> equivalent to the git version.
>>
>> Unless someone else finds it, I will consider it just my problem and
>> ignore it.
> There's some magic in setup.py for generating numpy/version.py, which
> behaves differently depending whether `.git` is present or not. It might
> do some stuff that goes wrong --- I fixed it once already, but maybe it's
> broken again.
>
> 	Pauli
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
That's it!
I commented out the setup.py line 'from numpy.version import 
git_revision as GIT_REVISION' and defined GIT_VERSION.

(I reverted to an older nose version for nose)
Python3.1 passes all tests but Python3.2 has a failure but I have to 
cleanup my messes in case it is me.

Bruce

$ python3.2 -c "import numpy; numpy.test()"
Running unit tests for numpy
NumPy version 1.6.0b1
NumPy is installed in /usr/local/lib/python3.2/site-packages/numpy
Python version 3.2 (r32:88445, Mar 23 2011, 11:36:08) [GCC 4.5.1 
20100924 (Red Hat 4.5.1-4)]
nose version 3.0.0
..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K.....................................................................Warning: 
invalid value encountered in true_divide
Warning: invalid value encountered in true_divide
Warning: invalid value encountered in true_divide
.................................................................................................................K.................................................................................................K......................K..........................................................................................................STart 
of distr core
......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................./usr/local/lib/python3.2/site-packages/numpy/lib/format.py:575: 
ResourceWarning: unclosed file <_io.BufferedReader name='/tmp/tmpathakb'>
   mode=mode, offset=offset)
....................................................................................................................................................................................................................................................................................................................................................................................................................................................................../usr/local/lib/python3.2/subprocess.py:460: 
ResourceWarning: unclosed file <_io.BufferedReader name=3>
   return Popen(*popenargs, **kwargs).wait()
/usr/local/lib/python3.2/subprocess.py:460: ResourceWarning: unclosed 
file <_io.BufferedReader name=8>
   return Popen(*popenargs, **kwargs).wait()
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E........
======================================================================
ERROR: Failure: OSError 
(/usr/local/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 
"/usr/local/lib/python3.2/site-packages/nose-3.0.0.dev-py3.2.egg/nose/failure.py", 
line 37, in runTest
     reraise(self.exc_class, self.exc_val, self.tb)
   File 
"/usr/local/lib/python3.2/site-packages/nose-3.0.0.dev-py3.2.egg/nose/_3.py", 
line 7, in reraise
     raise exc_class(exc_val).with_traceback(tb)
   File 
"/usr/local/lib/python3.2/site-packages/nose-3.0.0.dev-py3.2.egg/nose/loader.py", 
line 389, in loadTestsFromName
     addr.filename, addr.module)
   File 
"/usr/local/lib/python3.2/site-packages/nose-3.0.0.dev-py3.2.egg/nose/importer.py", 
line 39, in importFromPath
     return self.importFromDir(dir_path, fqname)
   File 
"/usr/local/lib/python3.2/site-packages/nose-3.0.0.dev-py3.2.egg/nose/importer.py", 
line 86, in importFromDir
     mod = load_module(part_fqname, fh, filename, desc)
   File 
"/usr/local/lib/python3.2/site-packages/numpy/tests/test_ctypeslib.py", 
line 8, in <module>
     cdll = load_library('multiarray', np.core.multiarray.__file__)
   File "/usr/local/lib/python3.2/site-packages/numpy/ctypeslib.py", 
line 122, in load_library
     raise exc
   File "/usr/local/lib/python3.2/site-packages/numpy/ctypeslib.py", 
line 119, in load_library
     return ctypes.cdll[libpath]
   File "/usr/local/lib/python3.2/ctypes/__init__.py", line 415, in 
__getitem__
     return getattr(self, name)
   File "/usr/local/lib/python3.2/ctypes/__init__.py", line 410, in 
__getattr__
     dll = self._dlltype(name)
   File "/usr/local/lib/python3.2/ctypes/__init__.py", line 340, in __init__
     self._handle = _dlopen(self._name, mode)
OSError: 
/usr/local/lib/python3.2/site-packages/numpy/core/multiarray.pyd: cannot 
open shared object file: No such file or directory




More information about the NumPy-Discussion mailing list