dev-python/numpy-1.5.1 fails tests with Python 3.2. ====================================================================== ERROR: Failure: UnboundLocalError (local variable 'e' referenced before assignment) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib64/python3.2/site-packages/nose/failure.py", line 37, in runTest raise self.exc_class(self.exc_val).with_traceback(self.tb) File "/usr/lib64/python3.2/site-packages/nose/loader.py", line 390, in loadTestsFromName addr.filename, addr.module) File "/usr/lib64/python3.2/site-packages/nose/importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib64/python3.2/site-packages/nose/importer.py", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/var/tmp/portage/dev-python/numpy-1.5.1/work/numpy-1.5.1/test-3.2/lib/python/numpy/tests/test_ctypeslib.py", line 8, in <module> cdll = load_library('multiarray', np.core.multiarray.__file__) File "/var/tmp/portage/dev-python/numpy-1.5.1/work/numpy-1.5.1/test-3.2/lib/python/numpy/ctypeslib.py", line 122, in load_library raise e UnboundLocalError: local variable 'e' referenced before assignment ----------------------------------------------------------------------
Created attachment 259241 [details] numpy-1.5.1:20110107-203647.log
Incomplete fix: https://github.com/numpy/numpy/commit/f1f52d6c962bf0ada57d8332b3fbd863bb1ca6cd
The fix in question is available in the current numpy-1.6.1 package. Do the fails persist ?
Well I did 'eselect python set python3.2' and recompiled numpy. It builds and installs fine! Is it safe now to set as default python instance 3.2 ?
(In reply to comment #4) > Is it safe now to set as default python instance 3.2 ? This is what I did. So far no problems :)
Tests seem to work fine with numpy-1.6.1 on ~amd64: Ran 3532 tests in 27.587s OK (KNOWNFAIL=5, SKIP=5) Running unit tests for numpy NumPy version 1.6.1 NumPy is installed in /var/tmp/portage/dev-python/numpy-1.6.1/work/numpy-1.6.1/test-3.2/lib/python/numpy Python version 3.2.2 (default, Sep 19 2011, 13:53:58) [GCC 4.5.3] nose version 1.1.2
*** Bug 386847 has been marked as a duplicate of this bug. ***
*** Bug 393539 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 393539 ***
This bug was fixed in dev-python/numpy-1.6.1 by upstream.