Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 351057

Summary: dev-python/numpy-1.6.0 fails tests with Python 3.2
Product: Gentoo Linux Reporter: Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, gentoo, idella4, polidevk.polidevk, python, tdalman
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
URL: http://projects.scipy.org/numpy/ticket/1787
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 292402    
Attachments: numpy-1.5.1:20110107-203647.log

Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-01-07 21:07:51 UTC
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

----------------------------------------------------------------------
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-01-07 21:08:50 UTC
Created attachment 259241 [details]
numpy-1.5.1:20110107-203647.log
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-01-12 19:06:18 UTC
Incomplete fix:
https://github.com/numpy/numpy/commit/f1f52d6c962bf0ada57d8332b3fbd863bb1ca6cd
Comment 3 Tolga Dalman 2011-08-09 10:56:19 UTC
The fix in question is available in the current numpy-1.6.1 package. Do the fails persist ?
Comment 4 Kamen Dokov 2011-09-09 14:23:26 UTC
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 ?
Comment 5 Tolga Dalman 2011-09-27 12:14:13 UTC
(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 :)
Comment 6 Matthias Liebig 2011-10-08 01:01:29 UTC
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
Comment 7 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2011-10-16 08:12:28 UTC
*** Bug 386847 has been marked as a duplicate of this bug. ***
Comment 8 Ian Delaney (RETIRED) gentoo-dev 2011-12-23 13:27:21 UTC
*** Bug 393539 has been marked as a duplicate of this bug. ***
Comment 9 Ian Delaney (RETIRED) gentoo-dev 2011-12-23 13:30:17 UTC

*** This bug has been marked as a duplicate of bug 393539 ***
Comment 10 Arfrever Frehtes Taifersar Arahesis 2011-12-23 17:15:38 UTC
This bug was fixed in dev-python/numpy-1.6.1 by upstream.