<p dir="auto">Debian SID, Clean virtual environment with packages:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ipdb==0.7
ipython==1.0.0
matplotlib==1.3.0"><pre class="notranslate"><code class="notranslate">ipdb==0.7
ipython==1.0.0
matplotlib==1.3.0
</code></pre></div>
<p dir="auto">and their dependencies.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [1]: %pdb on
Automatic pdb calling has been turned ON

In [2]: import matplotlib.pyplot
---------------------------------------------------------------------------
UnicodeDecodeError                        Traceback (most recent call last)
&lt;ipython-input-2-6f467123fe04&gt; in &lt;module&gt;()
----&gt; 1 import matplotlib.pyplot

/home/liori/tmp/mpl/.ve/local/lib/python2.7/site-packages/matplotlib/pyplot.py in &lt;module&gt;()
     22 
     23 import matplotlib
---&gt; 24 import matplotlib.colorbar
     25 from matplotlib import _pylab_helpers, interactive
     26 from matplotlib.cbook import dedent, silent_list, is_string_like, is_numlike

/home/liori/tmp/mpl/.ve/local/lib/python2.7/site-packages/matplotlib/colorbar.py in &lt;module&gt;()
     27 import matplotlib.artist as martist
     28 import matplotlib.cbook as cbook
---&gt; 29 import matplotlib.collections as collections
     30 import matplotlib.colors as colors
     31 import matplotlib.contour as contour

/home/liori/tmp/mpl/.ve/local/lib/python2.7/site-packages/matplotlib/collections.py in &lt;module&gt;()
     21 import matplotlib.artist as artist
     22 from matplotlib.artist import allow_rasterization
---&gt; 23 import matplotlib.backend_bases as backend_bases
     24 import matplotlib.path as mpath
     25 from matplotlib import _path

/home/liori/tmp/mpl/.ve/local/lib/python2.7/site-packages/matplotlib/backend_bases.py in &lt;module&gt;()
     48 
     49 import matplotlib.tight_bbox as tight_bbox
---&gt; 50 import matplotlib.textpath as textpath
     51 from matplotlib.path import Path
     52 from matplotlib.cbook import mplDeprecation

/home/liori/tmp/mpl/.ve/local/lib/python2.7/site-packages/matplotlib/textpath.py in &lt;module&gt;()
      9 from matplotlib.path import Path
     10 from matplotlib import rcParams
---&gt; 11 import matplotlib.font_manager as font_manager
     12 from matplotlib.ft2font import FT2Font, KERNING_DEFAULT, LOAD_NO_HINTING
     13 from matplotlib.ft2font import LOAD_TARGET_LIGHT

/home/liori/tmp/mpl/.ve/local/lib/python2.7/site-packages/matplotlib/font_manager.py in &lt;module&gt;()
   1354                 verbose.report(&quot;Using fontManager instance from %s&quot; % _fmcache)
   1355         except:
-&gt; 1356             _rebuild()
   1357     else:
   1358         _rebuild()

/home/liori/tmp/mpl/.ve/local/lib/python2.7/site-packages/matplotlib/font_manager.py in _rebuild()
   1339     def _rebuild():
   1340         global fontManager
-&gt; 1341         fontManager = FontManager()
   1342         if _fmcache:
   1343             pickle_dump(fontManager, _fmcache)

/home/liori/tmp/mpl/.ve/local/lib/python2.7/site-packages/matplotlib/font_manager.py in __init__(self, size, weight)
   1002             self.defaultFont['ttf'] = self.ttffiles[0]
   1003 
-&gt; 1004         self.ttflist = createFontList(self.ttffiles)
   1005 
   1006         self.afmfiles = findSystemFonts(paths, fontext='afm') + \

/home/liori/tmp/mpl/.ve/local/lib/python2.7/site-packages/matplotlib/font_manager.py in createFontList(fontfiles, fontext)
    582                 continue
    583             try:
--&gt; 584                 prop = ttfFontProperty(font)
    585             except KeyError:
    586                 continue

/home/liori/tmp/mpl/.ve/local/lib/python2.7/site-packages/matplotlib/font_manager.py in ttfFontProperty(font)
    396         sfnt2 = ''
    397     if sfnt4:
--&gt; 398         sfnt4 = sfnt4.decode('ascii').lower()
    399     else:
    400         sfnt4 = ''

UnicodeDecodeError: 'ascii' codec can't decode byte 0x8a in position 6: ordinal not in range(128)
&gt; /home/liori/tmp/mpl/.ve/local/lib/python2.7/site-packages/matplotlib/font_manager.py(398)ttfFontProperty()
    397     if sfnt4:
--&gt; 398         sfnt4 = sfnt4.decode('ascii').lower()
    399     else:

ipdb&gt; p sfnt4
'EPSON \x8a\xdb\x83S\x83V\x83b\x83N\x91\xcc\x82l'
ipdb&gt; "><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-c1">%</span><span class="pl-s1">pdb</span> <span class="pl-s1">on</span>
<span class="pl-v">Automatic</span> <span class="pl-s1">pdb</span> <span class="pl-s1">calling</span> <span class="pl-s1">has</span> <span class="pl-s1">been</span> <span class="pl-s1">turned</span> <span class="pl-v">ON</span>

<span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span>
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span>
<span class="pl-v">UnicodeDecodeError</span>                        <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>)
<span class="pl-c1">&lt;</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">2</span><span class="pl-c1">-</span><span class="pl-c1">6</span><span class="pl-s1">f467123fe04</span><span class="pl-c1">&gt;</span> <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>()
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1</span> <span class="pl-s1">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span>

<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">liori</span><span class="pl-c1">/</span><span class="pl-s1">tmp</span><span class="pl-c1">/</span><span class="pl-s1">mpl</span><span class="pl-c1">/</span>.<span class="pl-s1">ve</span><span class="pl-c1">/</span><span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span><span class="pl-c1">/</span><span class="pl-s1">pyplot</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>()
     <span class="pl-c1">22</span> 
     <span class="pl-c1">23</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">24</span> <span class="pl-s1">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">colorbar</span>
     <span class="pl-c1">25</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">_pylab_helpers</span>, <span class="pl-s1">interactive</span>
     <span class="pl-c1">26</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">cbook</span> <span class="pl-k">import</span> <span class="pl-s1">dedent</span>, <span class="pl-s1">silent_list</span>, <span class="pl-s1">is_string_like</span>, <span class="pl-s1">is_numlike</span>

<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">liori</span><span class="pl-c1">/</span><span class="pl-s1">tmp</span><span class="pl-c1">/</span><span class="pl-s1">mpl</span><span class="pl-c1">/</span>.<span class="pl-s1">ve</span><span class="pl-c1">/</span><span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span><span class="pl-c1">/</span><span class="pl-s1">colorbar</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>()
     <span class="pl-c1">27</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">artist</span> <span class="pl-k">as</span> <span class="pl-s1">martist</span>
     <span class="pl-c1">28</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">cbook</span> <span class="pl-k">as</span> <span class="pl-s1">cbook</span>
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">29</span> <span class="pl-s1">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">collections</span> <span class="pl-k">as</span> <span class="pl-s1">collections</span>
     <span class="pl-c1">30</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">colors</span> <span class="pl-k">as</span> <span class="pl-s1">colors</span>
     <span class="pl-c1">31</span> <span class="pl-s1">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">contour</span> <span class="pl-k">as</span> <span class="pl-s1">contour</span>

<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">liori</span><span class="pl-c1">/</span><span class="pl-s1">tmp</span><span class="pl-c1">/</span><span class="pl-s1">mpl</span><span class="pl-c1">/</span>.<span class="pl-s1">ve</span><span class="pl-c1">/</span><span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span><span class="pl-c1">/</span><span class="pl-s1">collections</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>()
     <span class="pl-c1">21</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">artist</span> <span class="pl-k">as</span> <span class="pl-s1">artist</span>
     <span class="pl-c1">22</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">artist</span> <span class="pl-k">import</span> <span class="pl-s1">allow_rasterization</span>
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">23</span> <span class="pl-s1">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">backend_bases</span> <span class="pl-k">as</span> <span class="pl-s1">backend_bases</span>
     <span class="pl-c1">24</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">path</span> <span class="pl-k">as</span> <span class="pl-s1">mpath</span>
     <span class="pl-c1">25</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">_path</span>

<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">liori</span><span class="pl-c1">/</span><span class="pl-s1">tmp</span><span class="pl-c1">/</span><span class="pl-s1">mpl</span><span class="pl-c1">/</span>.<span class="pl-s1">ve</span><span class="pl-c1">/</span><span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span><span class="pl-c1">/</span><span class="pl-s1">backend_bases</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>()
     <span class="pl-c1">48</span> 
     <span class="pl-c1">49</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">tight_bbox</span> <span class="pl-k">as</span> <span class="pl-s1">tight_bbox</span>
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">50</span> <span class="pl-s1">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">textpath</span> <span class="pl-k">as</span> <span class="pl-s1">textpath</span>
     <span class="pl-c1">51</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">path</span> <span class="pl-k">import</span> <span class="pl-v">Path</span>
     <span class="pl-c1">52</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">cbook</span> <span class="pl-k">import</span> <span class="pl-s1">mplDeprecation</span>

<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">liori</span><span class="pl-c1">/</span><span class="pl-s1">tmp</span><span class="pl-c1">/</span><span class="pl-s1">mpl</span><span class="pl-c1">/</span>.<span class="pl-s1">ve</span><span class="pl-c1">/</span><span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span><span class="pl-c1">/</span><span class="pl-s1">textpath</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>()
      <span class="pl-c1">9</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">path</span> <span class="pl-k">import</span> <span class="pl-v">Path</span>
     <span class="pl-c1">10</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">rcParams</span>
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">11</span> <span class="pl-s1">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">font_manager</span> <span class="pl-k">as</span> <span class="pl-s1">font_manager</span>
     <span class="pl-c1">12</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">ft2font</span> <span class="pl-k">import</span> <span class="pl-v">FT2Font</span>, <span class="pl-v">KERNING_DEFAULT</span>, <span class="pl-v">LOAD_NO_HINTING</span>
     <span class="pl-c1">13</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">ft2font</span> <span class="pl-k">import</span> <span class="pl-v">LOAD_TARGET_LIGHT</span>

<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">liori</span><span class="pl-c1">/</span><span class="pl-s1">tmp</span><span class="pl-c1">/</span><span class="pl-s1">mpl</span><span class="pl-c1">/</span>.<span class="pl-s1">ve</span><span class="pl-c1">/</span><span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span><span class="pl-c1">/</span><span class="pl-s1">font_manager</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>()
   <span class="pl-c1">1354</span>                 <span class="pl-s1">verbose</span>.<span class="pl-en">report</span>(<span class="pl-s">"Using fontManager instance from %s"</span> <span class="pl-c1">%</span> <span class="pl-s1">_fmcache</span>)
   <span class="pl-c1">1355</span>         <span class="pl-s1">except</span>:
<span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1356</span>             <span class="pl-en">_rebuild</span>()
   <span class="pl-c1">1357</span>     <span class="pl-s1">else</span>:
   <span class="pl-c1">1358</span>         <span class="pl-s1">_rebuild</span>()

<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">liori</span><span class="pl-c1">/</span><span class="pl-s1">tmp</span><span class="pl-c1">/</span><span class="pl-s1">mpl</span><span class="pl-c1">/</span>.<span class="pl-s1">ve</span><span class="pl-c1">/</span><span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span><span class="pl-c1">/</span><span class="pl-s1">font_manager</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">_rebuild</span>()
   <span class="pl-c1">1339</span>     <span class="pl-k">def</span> <span class="pl-en">_rebuild</span>():
   <span class="pl-c1">1340</span>         <span class="pl-k">global</span> <span class="pl-s1">fontManager</span>
<span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1341</span>         <span class="pl-s1">fontManager</span> <span class="pl-c1">=</span> <span class="pl-v">FontManager</span>()
   <span class="pl-c1">1342</span>         <span class="pl-k">if</span> <span class="pl-s1">_fmcache</span>:
   <span class="pl-c1">1343</span>             <span class="pl-en">pickle_dump</span>(<span class="pl-s1">fontManager</span>, <span class="pl-s1">_fmcache</span>)

<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">liori</span><span class="pl-c1">/</span><span class="pl-s1">tmp</span><span class="pl-c1">/</span><span class="pl-s1">mpl</span><span class="pl-c1">/</span>.<span class="pl-s1">ve</span><span class="pl-c1">/</span><span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span><span class="pl-c1">/</span><span class="pl-s1">font_manager</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">size</span>, <span class="pl-s1">weight</span>)
   <span class="pl-c1">1002</span>             <span class="pl-s1">self</span>.<span class="pl-s1">defaultFont</span>[<span class="pl-s">'ttf'</span>] <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">ttffiles</span>[<span class="pl-c1">0</span>]
   <span class="pl-c1">1003</span> 
<span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1004</span>         <span class="pl-s1">self</span>.<span class="pl-s1">ttflist</span> <span class="pl-c1">=</span> <span class="pl-en">createFontList</span>(<span class="pl-s1">self</span>.<span class="pl-s1">ttffiles</span>)
   <span class="pl-c1">1005</span> 
   <span class="pl-c1">1006</span>         <span class="pl-s1">self</span>.<span class="pl-s1">afmfiles</span> <span class="pl-c1">=</span> <span class="pl-en">findSystemFonts</span>(<span class="pl-s1">paths</span>, <span class="pl-s1">fontext</span><span class="pl-c1">=</span><span class="pl-s">'afm'</span>) <span class="pl-c1">+</span> \

<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">liori</span><span class="pl-c1">/</span><span class="pl-s1">tmp</span><span class="pl-c1">/</span><span class="pl-s1">mpl</span><span class="pl-c1">/</span>.<span class="pl-s1">ve</span><span class="pl-c1">/</span><span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span><span class="pl-c1">/</span><span class="pl-s1">font_manager</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">createFontList</span>(<span class="pl-s1">fontfiles</span>, <span class="pl-s1">fontext</span>)
    <span class="pl-c1">582</span>                 <span class="pl-s1">continue</span>
    <span class="pl-c1">583</span>             <span class="pl-s1">try</span>:
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">584</span>                 <span class="pl-s1">prop</span> <span class="pl-c1">=</span> <span class="pl-en">ttfFontProperty</span>(<span class="pl-s1">font</span>)
    <span class="pl-c1">585</span>             <span class="pl-s1">except</span> <span class="pl-v">KeyError</span>:
    <span class="pl-c1">586</span>                 <span class="pl-s1">continue</span>

<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">liori</span><span class="pl-c1">/</span><span class="pl-s1">tmp</span><span class="pl-c1">/</span><span class="pl-s1">mpl</span><span class="pl-c1">/</span>.<span class="pl-s1">ve</span><span class="pl-c1">/</span><span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span><span class="pl-c1">/</span><span class="pl-s1">font_manager</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">ttfFontProperty</span>(<span class="pl-s1">font</span>)
    <span class="pl-c1">396</span>         <span class="pl-s1">sfnt2</span> <span class="pl-c1">=</span> <span class="pl-s">''</span>
    <span class="pl-c1">397</span>     <span class="pl-k">if</span> <span class="pl-s1">sfnt4</span>:
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">398</span>         <span class="pl-s1">sfnt4</span> <span class="pl-c1">=</span> <span class="pl-s1">sfnt4</span>.<span class="pl-en">decode</span>(<span class="pl-s">'ascii'</span>).<span class="pl-en">lower</span>()
    <span class="pl-c1">399</span>     <span class="pl-k">else</span>:
    <span class="pl-c1">400</span>         <span class="pl-s1">sfnt4</span> <span class="pl-c1">=</span> <span class="pl-s">''</span>

<span class="pl-v">UnicodeDecodeError</span>: <span class="pl-s">'ascii'</span> <span class="pl-s1">codec</span> <span class="pl-s1">can</span>'<span class="pl-s1">t</span> <span class="pl-s1">decode</span> <span class="pl-s1">byte</span> <span class="pl-c1">0x8a</span> <span class="pl-c1">in</span> <span class="pl-s1">position</span> <span class="pl-c1">6</span>: <span class="pl-s1">ordinal</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">128</span>)
<span class="pl-c1">&gt;</span> <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">liori</span><span class="pl-c1">/</span><span class="pl-s1">tmp</span><span class="pl-c1">/</span><span class="pl-s1">mpl</span><span class="pl-c1">/</span>.<span class="pl-s1">ve</span><span class="pl-c1">/</span><span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span><span class="pl-c1">/</span><span class="pl-s1">font_manager</span>.<span class="pl-en">py</span>(<span class="pl-c1">398</span>)<span class="pl-s1">ttfFontProperty</span>()
    <span class="pl-c1">397</span>     <span class="pl-k">if</span> <span class="pl-s1">sfnt4</span>:
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">398</span>         <span class="pl-s1">sfnt4</span> <span class="pl-c1">=</span> <span class="pl-s1">sfnt4</span>.<span class="pl-en">decode</span>(<span class="pl-s">'ascii'</span>).<span class="pl-en">lower</span>()
    <span class="pl-c1">399</span>     <span class="pl-k">else</span>:

<span class="pl-s1">ipdb</span><span class="pl-c1">&gt;</span> <span class="pl-s1">p</span> <span class="pl-s1">sfnt4</span>
'<span class="pl-v">EPSON</span> \x<span class="pl-c1">8</span><span class="pl-s1">a</span>\x<span class="pl-s1">db</span>\x<span class="pl-c1">83</span><span class="pl-v">S</span>\x<span class="pl-c1">83</span><span class="pl-v">V</span>\x<span class="pl-c1">83</span><span class="pl-s1">b</span>\x<span class="pl-c1">83</span><span class="pl-v">N</span>\x<span class="pl-c1">91</span>\x<span class="pl-s1">cc</span>\x<span class="pl-c1">82l</span>'
<span class="pl-s1">ipdb</span><span class="pl-c1">&gt;</span> </pre></div>
<p dir="auto">For a workaround I changed the above to <code class="notranslate">sfnt4.decode('ascii', 'ignore').lower()</code></p>
<p dir="auto">I have found the following problem:</p>
<p dir="auto">I tried a new Installation of Python 3.3.2 64-bit with WinPython-64bit-3.3.2.2 on a Windows 7 64 bit machine.</p>
<p dir="auto">Ever when I try to import matplotlib.pyplot (with some of my user accounts i use on this Windows-7 machine) I get tthe following error message:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "D:\WinPython_3.3.2.2\python-3.3.2.amd64\lib\site-packages\matplotlib\font_manager.py", line 1348, in <br>
fontManager = pickle_load(_fmcache)<br>
File "D:\WinPython_3.3.2.2\python-3.3.2.amd64\lib\site-packages\matplotlib\font_manager.py", line 947, in pickle_load<br>
with open(filename, 'rb') as fh:<br>
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Jobst3.matplotlib\fontList.py3k.cache'</p>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "", line 1, in <br>
File "D:\WinPython_3.3.2.2\python-3.3.2.amd64\lib\site-packages\matplotlib\pyplot.py", line 24, in <br>
import matplotlib.colorbar<br>
File "D:\WinPython_3.3.2.2\python-3.3.2.amd64\lib\site-packages\matplotlib\colorbar.py", line 29, in <br>
import matplotlib.collections as collections<br>
File "D:\WinPython_3.3.2.2\python-3.3.2.amd64\lib\site-packages\matplotlib\collections.py", line 23, in <br>
import matplotlib.backend_bases as backend_bases<br>
File "D:\WinPython_3.3.2.2\python-3.3.2.amd64\lib\site-packages\matplotlib\backend_bases.py", line 50, in <br>
import matplotlib.textpath as textpath<br>
File "D:\WinPython_3.3.2.2\python-3.3.2.amd64\lib\site-packages\matplotlib\textpath.py", line 11, in <br>
import matplotlib.font_manager as font_manager<br>
File "D:\WinPython_3.3.2.2\python-3.3.2.amd64\lib\site-packages\matplotlib\font_manager.py", line 1356, in <br>
_rebuild()<br>
File "D:\WinPython_3.3.2.2\python-3.3.2.amd64\lib\site-packages\matplotlib\font_manager.py", line 1341, in _rebuild<br>
fontManager = FontManager()<br>
File "D:\WinPython_3.3.2.2\python-3.3.2.amd64\lib\site-packages\matplotlib\font_manager.py", line 1004, in <strong>init</strong><br>
self.ttflist = createFontList(self.ttffiles)<br>
File "D:\WinPython_3.3.2.2\python-3.3.2.amd64\lib\site-packages\matplotlib\font_manager.py", line 584, in createFontList<br>
prop = ttfFontProperty(font)<br>
File "D:\WinPython_3.3.2.2\python-3.3.2.amd64\lib\site-packages\matplotlib\font_manager.py", line 398, in ttfFontProperty<br>
sfnt4 = sfnt4.decode('ascii').lower()<br>
UnicodeDecodeError: 'ascii' codec can't decode byte 0x82 in position 0: ordinal not in range(128)</p>
<p dir="auto">The same issue happens with other python version (3.2.3 64 bit, as I installed matplotlib 1.3. with easy install).</p>
<p dir="auto">I found out that this happens only with newly created user accounts, but not with older accounts. As I found out, python is looking for a file located in the user folder: C:\Users\Jobst3.matplotlib\fontList.py3k.cache' which is not there in the newly created user account.</p>
<p dir="auto">But the file is available in older user accounts. The file was created by an older version of matplotlib (matplotlib-1.2.0rc2.win-amd64-py3.2), and everything goes fine, if i use these accounts.</p>
<p dir="auto">I am not able to test the issue on a complete new and clean Windows-7 machine at the moment</p>
<p dir="auto">Matthias</p>