Numpy fails to launch with custom atlas library

Bug #887381 reported by Bolche
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NumPy
New
Undecided
Unassigned

Bug Description

I have recompiled the package libatlas3gf a optimized version as described in /usr/share/doc/libatlas3gf-base/README.Debian

This cause the renpy SDK to fail to launch with the following traceback:
Traceback (most recent call last):
  File "/usr/games/renpy", line 151, in <module>
    main()
  File "/usr/games/renpy", line 148, in main
    renpy.bootstrap.bootstrap(renpy_base)
  File "/usr/share/games/renpy/renpy/bootstrap.py", line 257, in bootstrap
    renpy.import_all()
  File "/usr/share/games/renpy/renpy/__init__.py", line 110, in import_all
    import renpy.display.pgrender #@UnresolvedImport
  File "/usr/share/games/renpy/renpy/display/pgrender.py", line 25, in <module>
    import pygame
  File "/usr/lib/python2.7/dist-packages/pygame/__init__.py", line 258, in <module>
    try: import pygame.sndarray
  File "/usr/lib/python2.7/dist-packages/pygame/sndarray.py", line 66, in <module>
    import pygame._numpysndarray as numpysnd
  File "/usr/lib/python2.7/dist-packages/pygame/_numpysndarray.py", line 38, in <module>
    import numpy
  File "/usr/lib/pymodules/python2.7/numpy/__init__.py", line 136, in <module>
    import add_newdocs
  File "/usr/lib/pymodules/python2.7/numpy/add_newdocs.py", line 9, in <module>
    from numpy.lib import add_newdoc
  File "/usr/lib/pymodules/python2.7/numpy/lib/__init__.py", line 13, in <module>
    from polynomial import *
  File "/usr/lib/pymodules/python2.7/numpy/lib/polynomial.py", line 11, in <module>
    import numpy.core.numeric as NX
AttributeError: 'module' object has no attribute 'core'

Using update-alternatives and selecting liblapack.so.3gf and libblas.so.3gf from the old, non-optimized packages allows the program to run without problems.

I should point out that I did not altered the package libatlas in any way and I followed the build instructions precisely. Other programs that depend on it, like octave and gnuplot, run flawlessly.

Revision history for this message
Bolche (companheiro-vermelho) wrote :

Uhh, actually, it doesn't look like the bug is in the numpy package. I launched python and typed "import numpy" and got:
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.7/numpy/__init__.py", line 136, in <module>
    import add_newdocs
  File "/usr/lib/pymodules/python2.7/numpy/add_newdocs.py", line 9, in <module>
    from numpy.lib import add_newdoc
  File "/usr/lib/pymodules/python2.7/numpy/lib/__init__.py", line 13, in <module>
    from polynomial import *
  File "/usr/lib/pymodules/python2.7/numpy/lib/polynomial.py", line 17, in <module>
    from numpy.linalg import eigvals, lstsq
  File "/usr/lib/pymodules/python2.7/numpy/linalg/__init__.py", line 48, in <module>
    from linalg import *
  File "/usr/lib/pymodules/python2.7/numpy/linalg/linalg.py", line 23, in <module>
    from numpy.linalg import lapack_lite
ImportError: /usr/lib/libblas.so.3gf: undefined symbol: _gfortran_st_write_done

According to a comment in Bug #877286, you have to rebuild numpy to get atlas support, but the author doesn't give details about how.

So, it's actually in the wrong package... How do I change it?

affects: renpy → numpy
summary: - Renpy fails to launch with custom atlas library
+ Numpy fails to launch with custom atlas library
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.