Strange error after installing matplotlib from macports

Hi All,

After having installed Snow Leopard (10.6), I got some silly errors with libraries (installed via Macports) using deprecated functions Apple no longer supports, so I trashed the whole of Macports and reinstalled it. I then installed py25-matplotlib and get the following error message when trying the following

>>> from matplotlib.figure import Figure
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/opt/local/lib/python2.5/site-packages/matplotlib/", line 19, in <module>
     from axes import Axes, SubplotBase, subplot_class_factory
   File "/opt/local/lib/python2.5/site-packages/matplotlib/", line 12, in <module>
     import matplotlib.axis as maxis
   File "/opt/local/lib/python2.5/site-packages/matplotlib/", line 10, in <module>
     import matplotlib.font_manager as font_manager
   File "/opt/local/lib/python2.5/site-packages/matplotlib/", line 1301, in <module>
   File "/opt/local/lib/python2.5/site-packages/matplotlib/", line 1292, in _rebuild
     fontManager = FontManager()
   File "/opt/local/lib/python2.5/site-packages/matplotlib/", line 1010, in __init__
     self.afmlist = createFontList(self.afmfiles, fontext='afm')
   File "/opt/local/lib/python2.5/site-packages/matplotlib/", line 578, in createFontList
     font = afm.AFM(fh)
   File "/opt/local/lib/python2.5/site-packages/matplotlib/", line 294, in __init__
   File "/opt/local/lib/python2.5/site-packages/matplotlib/", line 282, in parse_afm
     dcmetrics_ascii, dcmetrics_name = _parse_char_metrics(fh)
   File "/opt/local/lib/python2.5/site-packages/matplotlib/", line 168, in _parse_char_metrics
     bbox = _to_list_of_ints(vals[3][2:])
   File "/opt/local/lib/python2.5/site-packages/matplotlib/", line 47, in _to_list_of_ints
     return [_to_int(val) for val in s.split()]
ValueError: invalid literal for int() with base 10: '836.364'

I have no clue what is going on. Does anybody have any ideas?