On 8/4/06, R. Padraic Springuel <[EMAIL PROTECTED]> wrote: > After installing matplotlib from the Window's binaries (a process which > goes off without a hitch), I get the following error when trying to use it: > > Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on > win32 > Type "help", "copyright", "credits" or "license" for more information. > >>> from pylab import * > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "C:\Python24\lib\site-packages\pylab.py", line 1, in ? > from matplotlib.pylab import * > File "C:\Python24\lib\site-packages\matplotlib\pylab.py", line 200, in ? > from axes import Axes, PolarAxes > File "C:\Python24\lib\site-packages\matplotlib\axes.py", line 15, in ? > from axis import XAxis, YAxis > File "C:\Python24\lib\site-packages\matplotlib\axis.py", line 25, in ? > from font_manager import FontProperties > File "C:\Python24\lib\site-packages\matplotlib\font_manager.py", line > 990, in > ? > fontManager = FontManager() > File "C:\Python24\lib\site-packages\matplotlib\font_manager.py", line > 835, in > __init__ > rebuild() > File "C:\Python24\lib\site-packages\matplotlib\font_manager.py", line > 828, in > rebuild > self.ttfdict = createFontDict(self.ttffiles) > File "C:\Python24\lib\site-packages\matplotlib\font_manager.py", line > 456, in > createFontDict > warnings.warn("Cannot handle unicode filenames %s"%fpath) > File "C:\Python24\lib\warnings.py", line 61, in warn > warn_explicit(message, category, filename, lineno, module, registry) > File "C:\Python24\lib\warnings.py", line 120, in warn_explicit > showwarning(message, category, filename, lineno) > File "C:\Python24\lib\warnings.py", line 127, in showwarning > file.write(formatwarning(message, category, filename, lineno)) > File "C:\Python24\lib\warnings.py", line 133, in formatwarning > s = "%s:%s: %s: %s\n" % (filename, lineno, category.__name__, message) > UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in > position 55: > ordinal not in range(128) > > Now, while I consider myself reasonably competant at sorting out errors > in python, I haven't a clue what this one means, let alone how to fix > it. Does anyone know what this means or how to fix it?
A unicode character in your font path? Weird. Try deleting your font cache in your ~/.matplotlib folder. On windows it is somewhere in your home folder. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users