problems with TkAgg on Linux

problems with TkAgg on Linux


I am installing matplotlib-0.87.5 on a red hat linux system with Python 2.4. I have all the listed packages installed on my linux. I have reinstalled it several times but it is still failing with TkAgg. I have removed and reinstalled all the components several times, but it still fails.

During the build the only messages that seemed unusual relate to

/usr/include/features.h:150:1: warning: this is the location of the previous definition

When I install matplotlib and test it with

python -dagg it works fine

python -dTkAgg it fails

Unfortunatly I need the TkAgg backend working.


File “”, line 2, in ?

from pylab import *

File “/home/arfras/local/cdat/lib/python2.4/site-packages/”, line 1, in ?

from matplotlib.pylab import *

File “/home/arfras/local/cdat/lib/python2.4/site-packages/matplotlib/”, line 219, in ?

new_figure_manager, draw_if_interactive, show = pylab_setup()

File “/home/arfras/local/cdat/lib/python2.4/site-packages/matplotlib/backends/”, line 23, in pylab_setup


File “/home/arfras/local/cdat/lib/python2.4/site-packages/matplotlib/backends/”, line 8, in ?

import tkagg                 # Paint image to Tk photo blitter extension

File “/home/arfras/local/cdat/lib/python2.4/site-packages/matplotlib/backends/”, line 1, in ?

import _tkagg

ImportError: /home/arfras/local/cdat/lib/python2.4/site-packages/matplotlib/backends/ undefined symbol: XSetInputFocus

Any ideas?