|
From: Daoliang T. <dao...@gm...> - 2010-12-04 07:06:42
|
Right now, I am not sure whether I am a member of the matplotlib-user maillist. Since I don't receive any indication about the successful application as other maillists did. But after googling, I find the reply from Michael Droettboom. I really appreciate your kind help. Based on your hints and suggestions, the command "ipython -pylab --verbose-debug" produces the following outputs (sorry for this large bunch block and I will explicitly give you the requried value of "fpath" on line 578 of font_manager.py ) : =============================================================================================================================================== $HOME=/home/michael CONFIGDIR=/home/michael/.matplotlib matplotlib data path /usr/share/matplotlib/mpl-data loaded rc file /etc/matplotlibrc matplotlib version 0.99.3 verbose.level debug interactive is False units is False platform is linux2 loaded modules: ['numpy.core.info', 'IPython.iplib', 'ctypes.os', 'gc', 'matplotlib.tempfile', 'distutils.sysconfig', 'types', 'IPython.ConfigLoader', 'numpy.polynomial.exceptions', 'numpy.fft.types', 'numpy.ma.operator', 'pprint', 'numpy.core.umath', 'matplotlib.matplotlib', 'string', 'matplotlib.locale', 'numpy.lib.arraysetops', 'encodings.utf_8', 'IPython.Debugger', 'datetime', 'numpy.core.machar', 'cmd', 'numpy.ma.extras', 'numpy.fft.fftpack_lite', 'shlex', 'IPython.testing.decorator_msim', 'IPython.excolors', 'dis', 'numpy.numpy', 'IPython.external.simplegeneric', 'IPython.types', 'numpy.lib.sys', 'numpy.ma.itertools', 'abc', 'bdb', 'numpy.matrixlib.sys', 'matplotlib.sys', 'numpy.lib._compiled_base', 'new', 'numpy.random.mtrand', 'IPython.external.fnmatch', 'xml', 'optparse', '_ctypes', 'numpy.fft.numpy', 'exceptions', 'codecs', 'numpy.os', 'matplotlib.sre_constants', 'matplotlib.os', 'StringIO', 'IPython.platform', 'IPython.external.pwd', 'weakref', 'numpy.core._internal', 'doctest', 'IPython.tokenize', 'distutils.sys', 'numpy.matrixlib.numpy', 'base64', 'IPython.Release', '_sre', 'matplotlib.re', 'IPython', 'select', 'ctypes._ctypes', '_heapq', 'numpy.lib.financial', 'binascii', 'IPython.sys', 'IPython.genutils', 'tokenize', 'numpy.core.numpy', 'numpy.polynomial.chebyshev', 'cPickle', 'IPython.macro', 'IPython.string', 'matplotlib.pyparsing', 'numpy.core.fromnumeric', 'numpy.ctypeslib', 'encodings.aliases', 'fnmatch', 'sre_parse', 'pickle', 'IPython.prefilter', 'xml.sax.types', 'numpy.lib.polynomial', 'numpy.compat', 'IPython.ipstruct', 'IPython.inspect', 'numpy.core.records', 'IPython.testing.decorators_numpy', 'strop', 'numpy.core.numeric', 'IPython.shutil', 'IPython.Extensions.pickleshare', 'IPython.Logger', 'IPython.subprocess', 'numpy.lib.utils', 'numpy.core.__builtin__', 'codeop', 'numpy.lib.arrayterator', 'os.path', 'IPython.DPyGetOpt', 'functools', 'numpy.core.numerictypes', 'numpy.ma.cPickle', 'matplotlib.copy', 'numpy.matrixlib.defmatrix', 'tempfile', 'IPython.doctest', 'IPython.external.md5', 'imp', 'IPython.pdb', 'IPython.rlineimpl', 'numpy.core.scalarmath', 'numpy.linalg.info', 'matplotlib.__future__', 'IPython.thread', 'IPython.Itpl', 'numpy.core.os', 'IPython.Extensions.time', 'numpy.lib._datasource', 'token', 'IPython.testing.sys', 'IPython.new', 'cStringIO', 'numpy.polynomial', 'matplotlib.StringIO', 'IPython.platutils_posix', 'numpy.add_newdocs', 'IPython.commands', 'encodings', 'IPython.threading', 'numpy.lib.numpy', 're', 'IPython.external.string', 'numpy.polynomial.polyutils', 'math', 'numpy.ma.warnings', 'IPython.Queue', 'numpy.lib.warnings', 'ctypes.struct', 'numpy.core.sys', 'md5', '_locale', 'thread', 'IPython.StringIO', 'traceback', 'errno', 'IPython.traceback', '_collections', 'matplotlib.traceback', 'IPython.Shell', 'xml.sax.sys', 'numpy.random', 'numpy.linalg.numpy', 'IPython.external.tokenize', 'numpy.lib.twodim_base', 'ctypes.sys', 'matplotlib.datetime', 'posixpath', 'numpy.lib.re', 'IPython.re', 'numpy.core.arrayprint', 'IPython.getopt', 'IPython.token', 'numpy.lib.stride_tricks', 'numpy.lib.scimath', 'xml.sax.os', '_codecs', 'numpy.lib.operator', 'numpy.__config__', 'numpy.lib.ufunclike', 'copy', 'hashlib', 'keyword', 'IPython.linecache', 'xml.sax.saxutils', 'posix', '_curses', 'numpy.core.ctypes', 'IPython.OutputTrap', 'sre_compile', '_hashlib', 'IPython.PyColorize', 'IPython.Extensions.warnings', 'numpy._import_tools', 'IPython.history', '__main__', 'numpy.fft.info', 'numpy.sys', 'IPython.bisect', 'encodings.codecs', 'curses.curses', 'IPython.external.codecs', 'IPython.readline', '_ssl', 'numpy.lib.index_tricks', 'warnings', 'glob', 'IPython.ColorANSI', 'numpy.lib.os', 'matplotlib.cbook', 'IPython.Extensions.os', 'linecache', 'xml.sax.codecs', 'numpy.lib.cStringIO', 'numpy.linalg.linalg', 'matplotlib.warnings', 'numpy.lib._iotools', 'random', '_bisect', 'subprocess', 'IPython.bdb', 'ctypes._endian', 'encodings.encodings', 'IPython.time', 'numpy.ma.numpy', 'numpy.lib.__future__', 'IPython.Extensions.cPickle', 'numpy.compat.types', 'numpy.linalg', 'IPython.OInspect', 'cProfile', 'IPython.cStringIO', 'matplotlib.subprocess', 'numpy.lib.math', 'repr', 'ssl', 'numpy.testing.re', 'numpy.version', 'distutils.re', '_lsprof', 'IPython.os', 'numpy.lib.type_check', 'resource', 'IPython.external.os', 'bisect', 'IPython.glob', 'numpy.lib.types', 'pydoc', 'threading', 'IPython.ctypes', 'IPython.Extensions.glob', 'numpy.fft.helper', 'IPython.external.warnings', 'numpy.lib.itertools', 'IPython.external.shutil', 'IPython.external.glob', 'locale', 'IPython.external', 'numpy.testing.types', 'IPython.testing.inspect', 'numpy.testing.decorators', 'IPython.external.__future__', 'matplotlib.string', 'urllib', 'IPython.__main__', 'fcntl', 'IPython.Extensions.stat', 'distutils.os', 'IPython.hooks', 'numpy.lib.info', 'ctypes', 'IPython.generics', 'numpy.testing.sys', 'numpy.core._sort', 'Queue', 'commands', 'numpy.lib.shutil', 'IPython.socket', 'itertools', 'numpy.fft.fftpack', 'opcode', 'pdb', 'numpy.polynomial.numpy', 'IPython.testing', 'curses._curses', 'IPython.external.path', 'IPython.codeop', 'pkgutil', 'platform', 'sre_constants', 'matplotlib.types', 'numpy.core.function_base', 'numpy', 'IPython.strdispatch', 'numpy.polynomial.warnings', 'matplotlib.xml', 'termios', 'numpy.lib.shape_base', 'IPython.IPython', 'curses.sys', 'numpy.testing.os', 'IPython.resource', 'numpy.lib', 'distutils.types', 'IPython.Extensions.IPython', 'IPython.optparse', 'IPython.curses', 'distutils.distutils', 'copy_reg', 'site', 'IPython.cProfile', 'shutil', 'numpy.lib.cPickle', 'numpy.core._dotblas', 'numpy.testing.traceback', 'numpy.ctypes', 'numpy.core', 'matplotlib.rcsetup', 'IPython.wildcard', 'curses.os', 'IPython.shadowns', 'numpy.core.types', 'sys', 'numpy.compat._inspect', 'IPython.ipmaker', 'IPython.background_jobs', 'matplotlib.fontconfig_pattern', '_weakref', 'difflib', 'distutils.errors', 'urlparse', 'IPython.ipapi', 'numpy.testing.numpy', 'heapq', 'xml.sax.urlparse', 'distutils', 'IPython.signal', 'matplotlib.errno', 'IPython.Prompts', 'matplotlib.colors', 'struct', 'numpy.random.info', 'xml.sax.urllib', 'matplotlib.threading', 'numpy.testing.operator', 'numpy.testing', 'collections', 'IPython.pydoc', 'unittest', 'zipimport', 'IPython.Magic', 'numpy.testing.unittest', 'textwrap', 'getopt', 'numpy.lib.__builtin__', 'signal', 'numpy.lib.io', 'IPython.shlex', 'numpy.core.multiarray', 'IPython.exceptions', 'distutils.version', 'numpy.ma.core', 'numpy.core.getlimits', 'IPython.termios', 'numpy.matrixlib', 'IPython.testing.decorators', 'numpy.polynomial.string', 'matplotlib.numpy', 'UserDict', 'inspect', '_functools', 'numpy.__builtin__', 'socket', 'IPython.cmd', 'numpy.core.memmap', 'numpy.testing.warnings', 'IPython.external.Itpl', 'numpy.linalg.lapack_lite', 'os', 'marshal', 'IPython.FakeModule', '__future__', 'numpy.core.shape_base', 'curses', '__builtin__', 'xml.sax.xmlreader', 'numpy.core.cPickle', 'operator', 'numpy.polynomial.polytemplate', 'distutils.string', 'IPython.usage', '_socket', 'numpy.ma', 'xml.sax.handler', '_warnings', 'encodings.__builtin__', 'IPython.platutils', 'IPython.keyword', 'pwd', 'sitecustomize', 'curses.wrapper', 'IPython.__builtin__', 'numpy.core.re', '_struct', 'numpy.fft', 'numpy.random.numpy', 'numpy.lib.function_base', 'IPython.ultraTB', 'IPython.tempfile', 'xml.sax', '_random', 'IPython.external.types', 'numpy.polynomial.polynomial', 'IPython.Extensions.UserDict', 'matplotlib.weakref', 'IPython.pprint', 'numpy.testing.numpytest', 'IPython.textwrap', 'numpy.core.defchararray', 'gettext', 'IPython.external.sys', '_abcoll', 'IPython.Extensions', 'IPython.fnmatch', 'matplotlib.time', 'xml.sax._exceptions', 'genericpath', 'stat', 'IPython.warnings', 'numpy.core.warnings', 'ctypes.ctypes', 'numpy.lib.format', 'readline', 'numpy.testing.nosetester', 'matplotlib', 'IPython.cPickle', 'numpy.polynomial.__future__', 'matplotlib.distutils', 'matplotlib.shutil', 'time', 'numpy.testing.utils'] font search path ['/usr/share/matplotlib/mpl-data/fonts/ttf', '/usr/share/matplotlib/mpl-data/fonts/afm'] trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/cmb10.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/cmex10.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/STIXNonUniIta.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/STIXNonUni.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/STIXSiz5Sym.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/cmtt10.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/STIXGeneral.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/STIXNonUniBolIta.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/STIXSiz3SymBol.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/STIXSiz3Sym.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/STIXSiz2Sym.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/STIXGeneralBol.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/cmr10.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/STIXSiz2SymBol.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/cmsy10.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/cmss10.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/STIXSiz1SymBol.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/STIXGeneralItalic.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/STIXSiz4SymBol.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/STIXSiz4Sym.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/STIXSiz1Sym.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/cmmi10.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/STIXNonUniBol.ttf trying fontname /usr/share/matplotlib/mpl-data/fonts/ttf/STIXGeneralBolIta.ttf trying fontname /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Bold.ttf trying fontname /usr/share/fonts/truetype/ttf-sil-gentium-basic/GenBkBasI.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf trying fontname /usr/share/fonts/truetype/ttf-sil-gentium-basic/GenBkBasR.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/verdanai.ttf trying fontname /usr/share/fonts/truetype/freefont/FreeSerif.ttf trying fontname /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf trying fontname /usr/share/fonts/truetype/ttf-liberation/LiberationMono-Bold.ttf trying fontname /usr/share/fonts/truetype/arphic/gbsn00lp.ttf trying fontname /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf trying fontname /usr/share/fonts/truetype/ttf-lyx/cmmi10.ttf trying fontname /usr/share/fonts/truetype/ttf-sil-gentium-basic/GenBasB.ttf trying fontname /usr/share/fonts/truetype/ttf-bitstream-vera/VeraBd.ttf trying fontname /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Regular.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/Georgia_Bold.ttf trying fontname /usr/share/fonts/truetype/freefont/FreeSerifBold.ttf trying fontname /usr/share/fonts/truetype/ttf-liberation/LiberationMono-Italic.ttf trying fontname /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/georgiab.ttf trying fontname /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf trying fontname /usr/share/fonts/truetype/ttf-sil-gentium-basic/GenBasI.ttf trying fontname /usr/share/fonts/truetype/freefont/FreeSansOblique.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/Andale_Mono.ttf trying fontname /usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoBd.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/Courier_New_Bold.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/Georgia_Bold_Italic.ttf trying fontname /usr/share/fonts/truetype/ttf-bitstream-vera/VeraSeBd.ttf trying fontname /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf trying fontname /home/michael/.fonts/gbsn00lp.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold_Italic.ttf trying fontname /usr/share/fonts/truetype/ttf-lyx/eufm10.ttf trying fontname /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-BoldOblique.ttf trying fontname /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Italic.ttf trying fontname /usr/share/fonts/truetype/ttf-lyx/wasy10.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/Impact.ttf trying fontname /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-BoldOblique.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/Georgia.ttf trying fontname /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Bold.ttf trying fontname /usr/share/fonts/truetype/ttf-lyx/msbm10.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/andalemo.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/arialbi.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/Verdana.ttf trying fontname /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf trying fontname /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-BoldItalic.ttf trying fontname /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Oblique.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/cour.ttf trying fontname /usr/share/fonts/truetype/ttf-sil-gentium/GenR102.ttf trying fontname /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Italic.ttf trying fontname /usr/share/fonts/truetype/ttf-bitstream-vera/VeraBI.ttf trying fontname /home/michael/.fonts/Ubuntu-R.ttf trying fontname /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-BoldItalic.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/courbd.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS.ttf trying fontname /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-Bold.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS_Italic.ttf trying fontname /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Bold.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/Courier_New.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/comicbd.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/Arial.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/courbi.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/times.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/Verdana_Italic.ttf trying fontname /usr/share/fonts/truetype/ttf-liberation/LiberationSans-BoldItalic.ttf trying fontname /usr/share/fonts/truetype/ttf-sil-gentium/GenAR102.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/couri.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/georgia.ttf trying fontname /usr/share/fonts/truetype/msttcorefonts/trebuc.ttf trying fontname /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf trying fontname /usr/share/fonts/truetype/ttf-bitstream-vera/VeraIt.ttf trying fontname /usr/share/fonts/truetype/arphic/bsmi00lp.ttf trying fontname /usr/share/fonts/truetype/freefont/FreeSansBold.ttf trying fontname /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf trying fontname /usr/share/fonts/truetype/freefont/FreeMonoBold.ttf trying fontname /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf trying fontname /usr/share/fonts/truetype/ttf-bitstream-vera/VeraMono.ttf trying fontname /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-ExtraLight.ttf trying fontname /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/cmb10.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/cmex10.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/STIXNonUniIta.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/STIXNonUni.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/STIXSiz5Sym.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/cmtt10.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/STIXGeneral.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/STIXNonUniBolIta.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/STIXSiz3SymBol.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/STIXSiz3Sym.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/STIXSiz2Sym.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/STIXGeneralBol.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/cmr10.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/STIXSiz2SymBol.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/cmsy10.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/cmss10.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/STIXSiz1SymBol.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/STIXGeneralItalic.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/STIXSiz4SymBol.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/STIXSiz4Sym.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/STIXSiz1Sym.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/cmmi10.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/STIXNonUniBol.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/ttf/STIXGeneralBolIta.ttf createFontDict: /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Bold.ttf createFontDict: /usr/share/fonts/truetype/ttf-sil-gentium-basic/GenBkBasI.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf createFontDict: /usr/share/fonts/truetype/ttf-sil-gentium-basic/GenBkBasR.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/verdanai.ttf createFontDict: /usr/share/fonts/truetype/freefont/FreeSerif.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf createFontDict: /usr/share/fonts/truetype/ttf-liberation/LiberationMono-Bold.ttf createFontDict: /usr/share/fonts/truetype/arphic/gbsn00lp.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf createFontDict: /usr/share/fonts/truetype/ttf-lyx/cmmi10.ttf createFontDict: /usr/share/fonts/truetype/ttf-sil-gentium-basic/GenBasB.ttf createFontDict: /usr/share/fonts/truetype/ttf-bitstream-vera/VeraBd.ttf createFontDict: /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Regular.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Georgia_Bold.ttf createFontDict: /usr/share/fonts/truetype/freefont/FreeSerifBold.ttf createFontDict: /usr/share/fonts/truetype/ttf-liberation/LiberationMono-Italic.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/georgiab.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf createFontDict: /usr/share/fonts/truetype/ttf-sil-gentium-basic/GenBasI.ttf createFontDict: /usr/share/fonts/truetype/freefont/FreeSansOblique.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Andale_Mono.ttf createFontDict: /usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoBd.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Courier_New_Bold.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Georgia_Bold_Italic.ttf createFontDict: /usr/share/fonts/truetype/ttf-bitstream-vera/VeraSeBd.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf createFontDict: /home/michael/.fonts/gbsn00lp.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold_Italic.ttf createFontDict: /usr/share/fonts/truetype/ttf-lyx/eufm10.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-BoldOblique.ttf createFontDict: /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Italic.ttf createFontDict: /usr/share/fonts/truetype/ttf-lyx/wasy10.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Impact.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-BoldOblique.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Georgia.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Bold.ttf createFontDict: /usr/share/fonts/truetype/ttf-lyx/msbm10.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/andalemo.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/arialbi.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Verdana.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf createFontDict: /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-BoldItalic.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Oblique.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/cour.ttf createFontDict: /usr/share/fonts/truetype/ttf-sil-gentium/GenR102.ttf createFontDict: /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Italic.ttf createFontDict: /usr/share/fonts/truetype/ttf-bitstream-vera/VeraBI.ttf createFontDict: /home/michael/.fonts/Ubuntu-R.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-BoldItalic.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/courbd.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-Bold.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS_Italic.ttf createFontDict: /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Bold.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Courier_New.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/comicbd.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Arial.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/courbi.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/times.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Verdana_Italic.ttf createFontDict: /usr/share/fonts/truetype/ttf-liberation/LiberationSans-BoldItalic.ttf createFontDict: /usr/share/fonts/truetype/ttf-sil-gentium/GenAR102.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/couri.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/georgia.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/trebuc.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf createFontDict: /usr/share/fonts/truetype/ttf-bitstream-vera/VeraIt.ttf createFontDict: /usr/share/fonts/truetype/arphic/bsmi00lp.ttf createFontDict: /usr/share/fonts/truetype/freefont/FreeSansBold.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf createFontDict: /usr/share/fonts/truetype/freefont/FreeMonoBold.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf createFontDict: /usr/share/fonts/truetype/ttf-bitstream-vera/VeraMono.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-ExtraLight.ttf createFontDict: /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/verdanaz.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/georgiai.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Comic_Sans_MS_Bold.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Georgia_Italic.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Courier_New_Italic.ttf createFontDict: /usr/share/fonts/truetype/ttf-sil-gentium/GenI102.ttf createFontDict: /home/michael/.fonts/gkai00mp.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-BoldItalic.ttf createFontDict: /home/michael/.fonts/Ubuntu-B.ttf createFontDict: /usr/share/fonts/truetype/ttf-lyx/esint10.ttf createFontDict: /usr/share/fonts/truetype/ttf-lyx/cmsy10.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/ariblk.ttf createFontDict: /usr/share/fonts/truetype/openoffice/opens___.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Verdana_Bold_Italic.ttf createFontDict: /usr/share/fonts/truetype/ttf-sil-gentium-basic/GenBasR.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-Italic.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Arial_Black.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Webdings.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Verdana_Bold.ttf createFontDict: /usr/share/fonts/truetype/freefont/FreeSansBoldOblique.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Arial_Italic.ttf createFontDict: /usr/share/fonts/truetype/freefont/FreeMonoBoldOblique.ttf createFontDict: /usr/share/fonts/truetype/freefont/FreeSans.ttf createFontDict: /usr/share/fonts/truetype/ttf-sil-gentium-basic/GenBkBasB.ttf createFontDict: /usr/share/fonts/truetype/ttf-lyx/cmr10.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/ariali.ttf createFontDict: /usr/share/fonts/truetype/freefont/FreeSerifBoldItalic.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/trebucbi.ttf createFontDict: /home/michael/.fonts/Ubuntu-BI.ttf createFontDict: /usr/share/fonts/truetype/freefont/FreeMono.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/timesi.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Italic.ttf createFontDict: /usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoBI.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/georgiaz.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Courier_New_Bold_Italic.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/arialbd.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/timesbd.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS_Bold.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Italic.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/verdana.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/arial.ttf createFontDict: /usr/share/fonts/truetype/freefont/FreeMonoOblique.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/comic.ttf createFontDict: /usr/share/fonts/truetype/ttf-bitstream-vera/VeraSe.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/webdings.ttf createFontDict: /usr/share/fonts/truetype/ttf-sil-gentium/GenAI102.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Oblique.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/trebucit.ttf createFontDict: /usr/share/fonts/truetype/ttf-liberation/LiberationMono-Regular.ttf createFontDict: /usr/share/fonts/truetype/ttf-sil-gentium-basic/GenBkBasBI.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/timesbi.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Comic_Sans_MS.ttf createFontDict: /usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoIt.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Arial_Bold_Italic.ttf createFontDict: /usr/share/fonts/truetype/ttf-sil-gentium-basic/GenBasBI.ttf createFontDict: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed.ttf createFontDict: /usr/share/fonts/truetype/ttf-liberation/LiberationMono-BoldItalic.ttf createFontDict: /home/michael/.fonts/wqy-zenhei.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/impact.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/verdanab.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS_Bold_Italic.ttf createFontDict: /usr/share/fonts/truetype/arphic/gkai00mp.ttf createFontDict: /usr/share/fonts/truetype/ttf-lyx/msam10.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/trebucbd.ttf createFontDict: /usr/share/fonts/truetype/freefont/FreeSerifItalic.ttf createFontDict: /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.ttf createFontDict: /home/michael/.fonts/Ubuntu-I.ttf createFontDict: /usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold.ttf createFontDict: /usr/share/fonts/truetype/ttf-lyx/cmex10.ttf createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/phvl8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pzcmi8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pplb8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/putbi8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/phvro8an.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pbkd8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pncri8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pcrb8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/phvr8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/putb8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pncb8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pcrro8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/cmex10.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/cmtt10.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/phvr8an.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/phvro8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/ptmr8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pplbi8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/cmsy10.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pagk8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pcrr8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/cmmi10.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pagko8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pbkdi8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/phvbo8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/cmr10.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pagdo8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/ptmb8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/phvlo8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/phvb8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pzdr.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/ptmri8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pplr8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pbkl8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pncbi8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/psyr.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/putri8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pplri8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/ptmbi8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pbkli8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/putr8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pagd8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pncr8a.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/phvbo8an.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/phvb8an.afm createFontDict: /usr/share/matplotlib/mpl-data/fonts/afm/pcrbo8a.afm createFontDict: /home/michael/.fonts/kai26.afm Traceback (most recent call last): File "/usr/bin/ipython", line 28, in <module> IPython.Shell.start().mainloop() File "/usr/lib/pymodules/python2.6/IPython/Shell.py", line 1241, in start return shell(user_ns = user_ns) File "/usr/lib/pymodules/python2.6/IPython/Shell.py", line 1106, in __init__ shell_class=MatplotlibShell) File "/usr/lib/pymodules/python2.6/IPython/Shell.py", line 73, in __init__ debug=debug,shell_class=shell_class) File "/usr/lib/pymodules/python2.6/IPython/ipmaker.py", line 100, in make_IPython embedded=embedded,**kw) File "/usr/lib/pymodules/python2.6/IPython/Shell.py", line 627, in __init__ user_ns,user_global_ns,b2 = self._matplotlib_config(name,user_ns,user_global_ns) File "/usr/lib/pymodules/python2.6/IPython/Shell.py", line 556, in _matplotlib_config import matplotlib.pylab as pylab File "/usr/lib/pymodules/python2.6/matplotlib/pylab.py", line 206, in <module> from matplotlib import mpl # pulls in most modules File "/usr/lib/pymodules/python2.6/matplotlib/mpl.py", line 2, in <module> from matplotlib import axis File "/usr/lib/pymodules/python2.6/matplotlib/axis.py", line 10, in <module> import matplotlib.font_manager as font_manager File "/usr/lib/pymodules/python2.6/matplotlib/font_manager.py", line 1301, in <module> _rebuild() File "/usr/lib/pymodules/python2.6/matplotlib/font_manager.py", line 1292, in _rebuild fontManager = FontManager() File "/usr/lib/pymodules/python2.6/matplotlib/font_manager.py", line 1010, in __init__ self.afmlist = createFontList(self.afmfiles, fontext='afm') File "/usr/lib/pymodules/python2.6/matplotlib/font_manager.py", line 578, in createFontList font = afm.AFM(fh) File "/usr/lib/pymodules/python2.6/matplotlib/afm.py", line 303, in __init__ parse_afm(fh) File "/usr/lib/pymodules/python2.6/matplotlib/afm.py", line 291, in parse_afm dcmetrics_ascii, dcmetrics_name = _parse_char_metrics(fh) File "/usr/lib/pymodules/python2.6/matplotlib/afm.py", line 176, in _parse_char_metrics bbox = _to_list_of_floats(vals[3][2:]) File "/usr/lib/pymodules/python2.6/matplotlib/afm.py", line 58, in _to_list_of_floats return [_to_float(val) for val in s.split()] ValueError: invalid literal for float(): uni2605 ================================================================================================================================================= *The fpath value is * /usr/share/matplotlib/mpl-data/fonts/afm/phvl8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/pzcmi8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/pplb8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/putbi8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/phvro8an.afm /usr/share/matplotlib/mpl-data/fonts/afm/pbkd8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/pncri8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/pcrb8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/phvr8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/putb8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/pncb8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/pcrro8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/cmex10.afm /usr/share/matplotlib/mpl-data/fonts/afm/cmtt10.afm /usr/share/matplotlib/mpl-data/fonts/afm/phvr8an.afm /usr/share/matplotlib/mpl-data/fonts/afm/phvro8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/ptmr8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/pplbi8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/cmsy10.afm /usr/share/matplotlib/mpl-data/fonts/afm/pagk8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/pcrr8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/cmmi10.afm /usr/share/matplotlib/mpl-data/fonts/afm/pagko8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/pbkdi8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/phvbo8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/cmr10.afm /usr/share/matplotlib/mpl-data/fonts/afm/pagdo8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/ptmb8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/phvlo8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/phvb8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/pzdr.afm /usr/share/matplotlib/mpl-data/fonts/afm/ptmri8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/pplr8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/pbkl8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/pncbi8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/psyr.afm /usr/share/matplotlib/mpl-data/fonts/afm/putri8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/pplri8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/ptmbi8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/pbkli8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/putr8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/pagd8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/pncr8a.afm /usr/share/matplotlib/mpl-data/fonts/afm/phvbo8an.afm /usr/share/matplotlib/mpl-data/fonts/afm/phvb8an.afm /usr/share/matplotlib/mpl-data/fonts/afm/pcrbo8a.afm --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Hopefully, this info can help to pinpoint the difficult font file. Thanks for your help! Daoliang On Fri, Nov 26, 2010 at 9:54 AM, Daoliang Tan <dao...@gm...> wrote: > Dear all, > > I am facing a weird problem when I import pylab or pyplot modules. > Right now, I can successfully import matplotlib. But after I issue > the command "ipython -pylab --verbose-helpful", I get the following > error: > ================================================================================================================================================= > $HOME=/home/michael > CONFIGDIR=/home/michael/.matplotlib > matplotlib data path /usr/share/matplotlib/mpl-data > loaded rc file /etc/matplotlibrc > matplotlib version 0.99.3 > verbose.level helpful > interactive is False > units is False > platform is linux2 > font search path ['/usr/share/matplotlib/mpl-data/fonts/ttf', > '/usr/share/matplotlib/mpl-data/fonts/afm'] > Traceback (most recent call last): > File "/usr/bin/ipython", line 28, in <module> > IPython.Shell.start().mainloop() > File "/usr/lib/pymodules/python2.6/IPython/Shell.py", line 1241, in start > return shell(user_ns = user_ns) > File "/usr/lib/pymodules/python2.6/IPython/Shell.py", line 1106, in __init__ > shell_class=MatplotlibShell) > File "/usr/lib/pymodules/python2.6/IPython/Shell.py", line 73, in __init__ > debug=debug,shell_class=shell_class) > File "/usr/lib/pymodules/python2.6/IPython/ipmaker.py", line 100, in > make_IPython > embedded=embedded,**kw) > File "/usr/lib/pymodules/python2.6/IPython/Shell.py", line 627, in __init__ > user_ns,user_global_ns,b2 = > self._matplotlib_config(name,user_ns,user_global_ns) > File "/usr/lib/pymodules/python2.6/IPython/Shell.py", line 556, in > _matplotlib_config > import matplotlib.pylab as pylab > File "/usr/lib/pymodules/python2.6/matplotlib/pylab.py", line 206, in <module> > from matplotlib import mpl # pulls in most modules > File "/usr/lib/pymodules/python2.6/matplotlib/mpl.py", line 2, in <module> > from matplotlib import axis > File "/usr/lib/pymodules/python2.6/matplotlib/axis.py", line 10, in <module> > import matplotlib.font_manager as font_manager > File "/usr/lib/pymodules/python2.6/matplotlib/font_manager.py", line > 1301, in <module> > _rebuild() > File "/usr/lib/pymodules/python2.6/matplotlib/font_manager.py", line > 1292, in _rebuild > fontManager = FontManager() > File "/usr/lib/pymodules/python2.6/matplotlib/font_manager.py", line > 1010, in __init__ > self.afmlist = createFontList(self.afmfiles, fontext='afm') > File "/usr/lib/pymodules/python2.6/matplotlib/font_manager.py", line > 578, in createFontList > font = afm.AFM(fh) > File "/usr/lib/pymodules/python2.6/matplotlib/afm.py", line 303, in __init__ > parse_afm(fh) > File "/usr/lib/pymodules/python2.6/matplotlib/afm.py", line 291, in parse_afm > dcmetrics_ascii, dcmetrics_name = _parse_char_metrics(fh) > File "/usr/lib/pymodules/python2.6/matplotlib/afm.py", line 176, in > _parse_char_metrics > bbox = _to_list_of_floats(vals[3][2:]) > File "/usr/lib/pymodules/python2.6/matplotlib/afm.py", line 58, in > _to_list_of_floats > return [_to_float(val) for val in s.split()] > ValueError: invalid literal for float(): uni2605 > =========================================================================================================================================== > > Each time, as long as I import pylab OR pyplot, I will obtain > "ValueError: invalid literal for float(): uni2605". After googling a > long time, I can not get an idea to address this issue. Can anyone > give me some hints? > > My computer configuration is the following: > > 1. OS: debian squeeze Linux 2.6.32-5-amd64 #1 SMP Sat Oct 30 14:18:21 > UTC 2010 x86_64 GNU/Linux > 2. matplotlib version: 0.99.3 > 3. The matplotlib is installed from the debian repository. > 4. no any special customization of "matplotlibrc" > 5. import pylab will produce this error. > 6. python version: 2.6.6-3 > > > I have reinstalled these packages many times and this does not solve > this issue. > > Thanks for your help! > > Daoliang > |