I believe I have got all the prerequisites, but it might not be so...
old Powerbook, 400 MHz, 10.3.9.
zlib, libpng, tk_inter, freetype 2.1.9, wx-2.6-mac-unicode, standard Apple Python 2.3, updated to MacPython, Numeric.
matplotlib compiled & installed apparently fine. No warnings that I could see.
Fairly drastic problem occurs when I do
import from pylab *
in the python shell.
1. get stream of warnings about type 1 fonts...
e.g.
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/font_manager.py:465: UserWarning: Could not open font file /Users/agn/Library/Fonts/Euclid Math Two
warnings.warn("Could not open font file %s"%fpath)
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/font_manager.py:465: UserWarning: Could not open font file /Library/Fonts/EucliSymIta
Think I can understand why this might be, as neither TT or X11.
One only of the .dfonts in /System/Library/Fonts fails--
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/font_manager.py:465: UserWarning: Could not open font file /System/Library/Fonts/LastResort.dfont
warnings.warn("Could not open font file %s"%fpath)
-- no warnings from rest of .dfonts.
2. More seriously, loading from pylab fails with FontManager error:
raceback (most recent call last):
File "/usr/local/bin/ipython", line 28, in ?
IPython.Shell.start().mainloop()
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/IPython/Shell.py", line 809, in start
return shell()
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/IPython/Shell.py", line 740, in __init__
IPShell.__init__(self,argv,user_ns,debug,shell_class=MatplotlibShell)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/IPython/Shell.py", line 54, in __init__
shell_class=shell_class)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/IPython/ipmaker.py", line 85, in make_IPython
IP = shell_class('__IP',user_ns=user_ns,**kw)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/IPython/Shell.py", line 493, in __init__
user_ns,b2 = self._matplotlib_config(name)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/IPython/Shell.py", line 373, in _matplotlib_config
from matplotlib import backends
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/backends/__init__.py", line 19, in ?
globals(),locals(),[backend_name])
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/backends/backend_tkagg.py", line 9, in ?
from backend_agg import FigureCanvasAgg
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/backends/backend_agg.py", line 82, in ?
from matplotlib.figure import Figure
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/figure.py", line 3, in ?
from axes import Axes, Subplot, PolarSubplot, PolarAxes
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/axes.py", line 12, in ?
from axis import XAxis, YAxis
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/axis.py", line 20, in ?
from font_manager import FontProperties
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/font_manager.py", line 991, in ?
fontManager = FontManager()
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/font_manager.py", line 835, in __init__
rebuild()
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/font_manager.py", line 828, in rebuild
self.ttfdict = createFontDict(self.ttffiles)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/font_manager.py", line 467, in createFontDict
prop = ttfFontProperty(font)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/font_manager.py", line 347, in ttfFontProperty
size = str(float(font.get_fontsize()))
AttributeError: get_fontsize
Anybody have any idea of what I have missed doing?
Regards, George Nurser.