Friday, February 15, 2008

Gutsy Gibbon broken matplotlib, pylab

Usually, Ubuntu's package management system gets everything right. However, on Gutsy Gibbon when you install the very handy matplotlib it gives you a broken installation. Basically, you'll get some error messages like this:
>>> import pylab
Traceback (most recent call last):
File "", line 1, in ?
File "/usr/lib/python2.4/site-packages/", line 1, in ?
from matplotlib.pylab import *
File "/usr/lib/python2.4/site-packages/matplotlib/", line 199, in ?
import cm
File "/usr/lib/python2.4/site-packages/matplotlib/", line 5, in ?
import colors
File "/usr/lib/python2.4/site-packages/matplotlib/", line 38, in ?
from numerix import array, arange, take, put, Float, Int, putmask, \
File "/usr/lib/python2.4/site-packages/matplotlib/numerix/", line 82, in ?
import numpy
File "/usr/lib/python2.4/site-packages/numpy/", line 43, in ?
import linalg
File "/usr/lib/python2.4/site-packages/numpy/linalg/", line 4, in ?
from linalg import *
File "/usr/lib/python2.4/site-packages/numpy/linalg/", line 25, in ?
from numpy.linalg import lapack_lite
ImportError: /usr/lib/atlas/ undefined symbol: ATL_chemv

So, I think they are trying to allow you to use whatever linear algebra backend you want. A fix (maybe there are better ones) is to install lapack3:
 sudo aptitude install lapack3

No comments: