|
From: Brice T. <B.P...@ci...> - 2005-07-07 11:50:02
|
Thank you for your help, I tried to do as you said and I got the
following messages and then python quit: (I haven't planned to use
PyGTK as I want to use WX.)
Many Thanks
Brice
import pylab
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/matplotlib/font_manager.py:456: UserWarning: Could not open
font file /Library/Fonts/NISC18030.ttf
warnings.warn("Could not open font file %s"%fpath)
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/matplotlib/font_manager.py:456: UserWarning: Could not open
font file /Library/Fonts/fonts.cache-1
warnings.warn("Could not open font file %s"%fpath)
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/matplotlib/font_manager.py:456: UserWarning: Could not open
font file /System/Library/Fonts/LastResort.dfont
warnings.warn("Could not open font file %s"%fpath)
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/matplotlib/font_manager.py:456: UserWarning: Could not open
font file /System/Library/Fonts/Keyboard.dfont
warnings.warn("Could not open font file %s"%fpath)
No module named pygtk
PyGTK version 1.99.16 or greater is required to run the GTK Matplotlib
backends
On 6 Jul 2005, at 15:51, John Hunter wrote:
>>>>>> "Brice" == Brice Thurin <B.P...@ci...> writes:
> Brice> packages/matplotlib/font_manager.py", line 458, in
> Brice> createFontDict prop = ttfFontProperty(font) File
> Brice>
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> Brice> packages/matplotlib/font_manager.py", line 271, in
> Brice> ttfFontProperty sfnt = font.get_sfnt() RuntimeError: No
> Brice> SFNT name table
>
>
> Try editing matplotlib/font_manager.py on line 458 and replacing
>
>
> prop = ttfFontProperty(font)
>
> with
>
> try: prop = ttfFontProperty(font)
> except: continue
>
> Let me know if this helps...
>
> JDH
>
>
Brice Thurin
Department of Optometry and Visual Science
City University, Northampton Square
London, EC1V 0HB, UK.
http://www.city.ac.uk/optometry/Luis/myresearch/Research/
scatteringproper.html
http://www.sharpeye.org/
Tel: +44 (0)20 7040 4157
Fax: +44(0)20 7040 8355
e-mail: B.P...@ci...
|