Numpy fails to launch with custom atlas library
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/
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.
File "/usr/share/
renpy.
File "/usr/share/
import renpy.display.
File "/usr/share/
import pygame
File "/usr/lib/
try: import pygame.sndarray
File "/usr/lib/
import pygame.
File "/usr/lib/
import numpy
File "/usr/lib/
import add_newdocs
File "/usr/lib/
from numpy.lib import add_newdoc
File "/usr/lib/
from polynomial import *
File "/usr/lib/
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.
Uhh, actually, it doesn't look like the bug is in the numpy package. I launched python and typed "import numpy" and got: pymodules/ python2. 7/numpy/ __init_ _.py", line 136, in <module> pymodules/ python2. 7/numpy/ add_newdocs. py", line 9, in <module> pymodules/ python2. 7/numpy/ lib/__init_ _.py", line 13, in <module> pymodules/ python2. 7/numpy/ lib/polynomial. py", line 17, in <module> pymodules/ python2. 7/numpy/ linalg/ __init_ _.py", line 48, in <module> pymodules/ python2. 7/numpy/ linalg/ linalg. py", line 23, in <module> libblas. so.3gf: undefined symbol: _gfortran_ st_write_ done
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
import add_newdocs
File "/usr/lib/
from numpy.lib import add_newdoc
File "/usr/lib/
from polynomial import *
File "/usr/lib/
from numpy.linalg import eigvals, lstsq
File "/usr/lib/
from linalg import *
File "/usr/lib/
from numpy.linalg import lapack_lite
ImportError: /usr/lib/
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?