Problem importing ft2font

Hello all,

I've looked through the archives and can't find a solution to this. Sorry if it is already there, please point me back in that direction if so!

matplotlib appears to compile and install fine. However when I try to import pylab, I get an error:

Python 2.3.4 (#5, Jul 12 2005, 11:42:21)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-24)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pylab import *
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/bmm/scratch/brj03/python/lib/python2.3/site-packages/pylab.py", line 1, in ?
    from matplotlib.pylab import *
  File "/bmm/scratch/brj03/python/lib/python2.3/site-packages/matplotlib/pylab.py", line 198, in ?
    from axes import Axes, PolarAxes
  File "/bmm/scratch/brj03/python/lib/python2.3/site-packages/matplotlib/axes.py", line 14, in ?
    from axis import XAxis, YAxis
  File "/bmm/scratch/brj03/python/lib/python2.3/site-packages/matplotlib/axis.py", line 25, in ?
    from font_manager import FontProperties
  File "/bmm/scratch/brj03/python/lib/python2.3/site-packages/matplotlib/font_manager.py", line 39, in ?
    from matplotlib import ft2font
ImportError: /bmm/scratch/brj03/python/lib/python2.3/site-packages/matplotlib/ft2font.so: undefined symbol: PyUnicodeUCS2_GetSize

I tried upgrading to the latest version of Python, and get a slightly different error - a different symbol can't be found:

Python 2.4.2 (#1, Dec 19 2005, 15:46:55)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pylab import *
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/bmm/scratch/brj03/python-latest/lib/python2.4/site-packages/pylab.py", line 1, in ?
    from matplotlib.pylab import *
  File "/bmm/scratch/brj03/python-latest/lib/python2.4/site-packages/matplotlib/pylab.py", line 198, in ?
    from axes import Axes, PolarAxes
  File "/bmm/scratch/brj03/python-latest/lib/python2.4/site-packages/matplotlib/axes.py", line 14, in ?
    from axis import XAxis, YAxis
  File "/bmm/scratch/brj03/python-latest/lib/python2.4/site-packages/matplotlib/axis.py", line 25, in ?
    from font_manager import FontProperties
  File "/bmm/scratch/brj03/python-latest/lib/python2.4/site-packages/matplotlib/font_manager.py", line 39, in ?
    from matplotlib import ft2font
ImportError: /bmm/scratch/brj03/python-latest/lib/python2.4/site-packages/matplotlib/ft2font.so: undefined symbol: _ZNSs7replaceEN9__gnu_cxx17__normal_iteratorIPcSsEES2_jc

There seem to be problems with the ft2font.so library. Can anyone help?

Cheers,
Ben.