Hi,

I had a quick look and it's just import statements in pytrainer.  matplotlib is 
doing something during construction (building a font cache?), so I checked the 
history on github:

https://github.com/matplotlib/matplotlib/commit/d5403fb6e5210b071810a6492114e51e9aa0d635

…where they're doing something with Python 3 or some unicode issue.  My guess 
would be the font metrics contain characters beyond ASCII (pretty much as the 
error describes!).  Can't find a bug/issue for it though.

Probably worth mentioning to them.

On 7 Aug 2013, at 19:29, Christian PERRIER <bubu...@debian.org> wrote:

> I suspect this is not a pyTrainer bug but more something in a Python
> library. Any idea?
> 
> Traceback (most recent call last):
>  File "/usr/bin/pytr", line 96, in <module>
>    from pytrainer.main import pyTrainer
>  File "/usr/lib/pymodules/python2.7/pytrainer/main.py", line 50, in <module>
>    from gui.windowmain import Main
>  File "/usr/lib/pymodules/python2.7/pytrainer/gui/windowmain.py", line 42, in 
> <module>
>    from pytrainer.recordgraph import RecordGraph
>  File "/usr/lib/pymodules/python2.7/pytrainer/recordgraph.py", line 20, in 
> <module>
>    from gui.drawArea import DrawArea
>  File "/usr/lib/pymodules/python2.7/pytrainer/gui/drawArea.py", line 21, in 
> <module>
>    from matplotlib.figure import Figure
>  File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 34, in 
> <module>
>    import matplotlib.colorbar as cbar
>  File "/usr/lib/pymodules/python2.7/matplotlib/colorbar.py", line 29, in 
> <module>
>    import matplotlib.collections as collections
>  File "/usr/lib/pymodules/python2.7/matplotlib/collections.py", line 23, in 
> <module>
>    import matplotlib.backend_bases as backend_bases
>  File "/usr/lib/pymodules/python2.7/matplotlib/backend_bases.py", line 50, in 
> <module>
>    import matplotlib.textpath as textpath
>  File "/usr/lib/pymodules/python2.7/matplotlib/textpath.py", line 11, in 
> <module>
>    import matplotlib.font_manager as font_manager
>  File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 1356, 
> in <module>
>    _rebuild()
>  File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 1341, 
> in _rebuild
>    fontManager = FontManager()
>  File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 1004, 
> in __init__
>    self.ttflist = createFontList(self.ttffiles)
>  File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 584, in 
> createFontList
>    prop = ttfFontProperty(font)
>  File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 398, in 
> ttfFontProperty
>    sfnt4 = sfnt4.decode('ascii').lower()
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc6 in position 0: 
> ordinal not in range(128)
> 
> 
> matplotlib was recently updated from 1.2.0 to 1.3.0 in Debian, so
> either there's a bug in that library....or there a bug in pyTrainer
> with that version of the library.
> 
> 
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead. 
> Download for free and get started troubleshooting in minutes. 
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Pytrainer-devel mailing list
> Pytrainer-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pytrainer-devel

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Pytrainer-devel mailing list
Pytrainer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytrainer-devel

Reply via email to