<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>When I want to use <code class="notranslate">pyplot</code> from <code class="notranslate">matplotlib</code>, it causes error.<br>
There is no problem with <code class="notranslate">import matplotlib</code> but I cannot use <code class="notranslate">pyplot</code></strong></p>

<p dir="auto"><strong>Code for reproduction</strong></p>

<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from matplotlib import pyplot"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">pyplot</span></pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------
FileNotFoundErrorTraceback (most recent call last)
/usr/lib64/python3.6/site-packages/matplotlib/font_manager.py in &lt;module&gt;()
   1428         try:
-&gt; 1429             fontManager = pickle_load(_fmcache)
   1430             if (not hasattr(fontManager, '_version') or

/usr/lib64/python3.6/site-packages/matplotlib/font_manager.py in pickle_load(filename)
    964     &quot;&quot;&quot;
--&gt; 965     with open(filename, 'rb') as fh:
    966         data = pickle.load(fh)

FileNotFoundError: [Errno 2] No such file or directory: '/home/javad/.cache/matplotlib/fontList.py3k.cache'

During handling of the above exception, another exception occurred:

UnicodeDecodeErrorTraceback (most recent call last)
&lt;ipython-input-3-a371ea114746&gt; in &lt;module&gt;()
----&gt; 1 from matplotlib import pyplot

/usr/lib64/python3.6/site-packages/matplotlib/pyplot.py in &lt;module&gt;()
     27 from cycler import cycler
     28 import matplotlib
---&gt; 29 import matplotlib.colorbar
     30 from matplotlib import style
     31 from matplotlib import _pylab_helpers, interactive

/usr/lib64/python3.6/site-packages/matplotlib/colorbar.py in &lt;module&gt;()
     34 import matplotlib.collections as collections
     35 import matplotlib.colors as colors
---&gt; 36 import matplotlib.contour as contour
     37 import matplotlib.cm as cm
     38 import matplotlib.gridspec as gridspec

/usr/lib64/python3.6/site-packages/matplotlib/contour.py in &lt;module&gt;()
     20 import matplotlib.colors as colors
     21 import matplotlib.collections as mcoll
---&gt; 22 import matplotlib.font_manager as font_manager
     23 import matplotlib.text as text
     24 import matplotlib.cbook as cbook

/usr/lib64/python3.6/site-packages/matplotlib/font_manager.py in &lt;module&gt;()
   1437             raise
   1438         except:
-&gt; 1439             _rebuild()
   1440     else:
   1441         _rebuild()

/usr/lib64/python3.6/site-packages/matplotlib/font_manager.py in _rebuild()
   1416         global fontManager
   1417 
-&gt; 1418         fontManager = FontManager()
   1419 
   1420         if _fmcache:

/usr/lib64/python3.6/site-packages/matplotlib/font_manager.py in __init__(self, size, weight)
   1070         self.afmfiles = findSystemFonts(paths, fontext='afm') + \
   1071             findSystemFonts(fontext='afm')
-&gt; 1072         self.afmlist = createFontList(self.afmfiles, fontext='afm')
   1073         if len(self.afmfiles):
   1074             self.defaultFont['afm'] = self.afmfiles[0]

/usr/lib64/python3.6/site-packages/matplotlib/font_manager.py in createFontList(fontfiles, fontext)
    581             try:
    582                 try:
--&gt; 583                     font = afm.AFM(fh)
    584                 finally:
    585                     fh.close()

/usr/lib64/python3.6/site-packages/matplotlib/afm.py in __init__(self, fh)
    347         &quot;&quot;&quot;
    348         (dhead, dcmetrics_ascii, dcmetrics_name, dkernpairs, dcomposite) = \
--&gt; 349             parse_afm(fh)
    350         self._header = dhead
    351         self._kern = dkernpairs

/usr/lib64/python3.6/site-packages/matplotlib/afm.py in parse_afm(fh)
    335     _sanity_check(fh)
    336     dhead = _parse_header(fh)
--&gt; 337     dcmetrics_ascii, dcmetrics_name = _parse_char_metrics(fh)
    338     doptional = _parse_optional(fh)
    339     return dhead, dcmetrics_ascii, dcmetrics_name, doptional[0], doptional[1]

/usr/lib64/python3.6/site-packages/matplotlib/afm.py in _parse_char_metrics(fh)
    196         if not line:
    197             break
--&gt; 198         line = line.rstrip().decode('ascii')  # Convert from byte-literal
    199         if line.startswith('EndCharMetrics'):
    200             return ascii_d, name_d

UnicodeDecodeError: 'ascii' codec can't decode byte 0x8e in position 20: ordinal not in range(128)"><pre class="notranslate"><code class="notranslate">---------------------------------------------
FileNotFoundErrorTraceback (most recent call last)
/usr/lib64/python3.6/site-packages/matplotlib/font_manager.py in &lt;module&gt;()
   1428         try:
-&gt; 1429             fontManager = pickle_load(_fmcache)
   1430             if (not hasattr(fontManager, '_version') or

/usr/lib64/python3.6/site-packages/matplotlib/font_manager.py in pickle_load(filename)
    964     """
--&gt; 965     with open(filename, 'rb') as fh:
    966         data = pickle.load(fh)

FileNotFoundError: [Errno 2] No such file or directory: '/home/javad/.cache/matplotlib/fontList.py3k.cache'

During handling of the above exception, another exception occurred:

UnicodeDecodeErrorTraceback (most recent call last)
&lt;ipython-input-3-a371ea114746&gt; in &lt;module&gt;()
----&gt; 1 from matplotlib import pyplot

/usr/lib64/python3.6/site-packages/matplotlib/pyplot.py in &lt;module&gt;()
     27 from cycler import cycler
     28 import matplotlib
---&gt; 29 import matplotlib.colorbar
     30 from matplotlib import style
     31 from matplotlib import _pylab_helpers, interactive

/usr/lib64/python3.6/site-packages/matplotlib/colorbar.py in &lt;module&gt;()
     34 import matplotlib.collections as collections
     35 import matplotlib.colors as colors
---&gt; 36 import matplotlib.contour as contour
     37 import matplotlib.cm as cm
     38 import matplotlib.gridspec as gridspec

/usr/lib64/python3.6/site-packages/matplotlib/contour.py in &lt;module&gt;()
     20 import matplotlib.colors as colors
     21 import matplotlib.collections as mcoll
---&gt; 22 import matplotlib.font_manager as font_manager
     23 import matplotlib.text as text
     24 import matplotlib.cbook as cbook

/usr/lib64/python3.6/site-packages/matplotlib/font_manager.py in &lt;module&gt;()
   1437             raise
   1438         except:
-&gt; 1439             _rebuild()
   1440     else:
   1441         _rebuild()

/usr/lib64/python3.6/site-packages/matplotlib/font_manager.py in _rebuild()
   1416         global fontManager
   1417 
-&gt; 1418         fontManager = FontManager()
   1419 
   1420         if _fmcache:

/usr/lib64/python3.6/site-packages/matplotlib/font_manager.py in __init__(self, size, weight)
   1070         self.afmfiles = findSystemFonts(paths, fontext='afm') + \
   1071             findSystemFonts(fontext='afm')
-&gt; 1072         self.afmlist = createFontList(self.afmfiles, fontext='afm')
   1073         if len(self.afmfiles):
   1074             self.defaultFont['afm'] = self.afmfiles[0]

/usr/lib64/python3.6/site-packages/matplotlib/font_manager.py in createFontList(fontfiles, fontext)
    581             try:
    582                 try:
--&gt; 583                     font = afm.AFM(fh)
    584                 finally:
    585                     fh.close()

/usr/lib64/python3.6/site-packages/matplotlib/afm.py in __init__(self, fh)
    347         """
    348         (dhead, dcmetrics_ascii, dcmetrics_name, dkernpairs, dcomposite) = \
--&gt; 349             parse_afm(fh)
    350         self._header = dhead
    351         self._kern = dkernpairs

/usr/lib64/python3.6/site-packages/matplotlib/afm.py in parse_afm(fh)
    335     _sanity_check(fh)
    336     dhead = _parse_header(fh)
--&gt; 337     dcmetrics_ascii, dcmetrics_name = _parse_char_metrics(fh)
    338     doptional = _parse_optional(fh)
    339     return dhead, dcmetrics_ascii, dcmetrics_name, doptional[0], doptional[1]

/usr/lib64/python3.6/site-packages/matplotlib/afm.py in _parse_char_metrics(fh)
    196         if not line:
    197             break
--&gt; 198         line = line.rstrip().decode('ascii')  # Convert from byte-literal
    199         if line.startswith('EndCharMetrics'):
    200             return ascii_d, name_d

UnicodeDecodeError: 'ascii' codec can't decode byte 0x8e in position 20: ordinal not in range(128)
</code></pre></div>
<p dir="auto"><strong>Expected outcome</strong></p>


<p dir="auto">using <code class="notranslate">%matplotlib</code> magic in <code class="notranslate">jupyter notebook</code> also produces the same error.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>

<ul dir="auto">
<li>Operating System: Fedora 26, 64bit</li>
<li>Matplotlib Version: 2.0.0-2</li>
<li>Python Version: 2.7 / 3.6</li>
<li>Jupyter Version (if applicable): 4.1.0</li>
<li>Other Libraries:</li>
</ul>
<p dir="auto">I posted in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="42181019" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/3487" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/3487/hovercard" href="https://github.com/matplotlib/matplotlib/pull/3487">#3487</a> and following the suggestion of <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tacaswell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tacaswell">@tacaswell</a> , I create a separate issue, for easier bug tracking:</p>
<p dir="auto">Since upgrading to 1.4.0, I get the same exception.<br>
I'm on Mac, Mavericks, latest version. anaconda bundle.</p>
<p dir="auto">I'm not even sure it's about matplotlib, but it crashes when it gets to font_manager.</p>
<p dir="auto">This is the relevant output for the exception:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="---&gt; 18 import matplotlib.pyplot as plt
     19
     20 from copy import deepcopy

/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/pyplot.py in &lt;module&gt;()
     25
     26 import matplotlib
---&gt; 27 import matplotlib.colorbar
     28 from matplotlib import style
     29 from matplotlib import _pylab_helpers, interactive

/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/colorbar.py in &lt;module&gt;()
     32 import matplotlib.artist as martist
     33 import matplotlib.cbook as cbook
---&gt; 34 import matplotlib.collections as collections
     35 import matplotlib.colors as colors
     36 import matplotlib.contour as contour

/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/collections.py in &lt;module&gt;()
     25 import matplotlib.artist as artist
     26 from matplotlib.artist import allow_rasterization
---&gt; 27 import matplotlib.backend_bases as backend_bases
     28 import matplotlib.path as mpath
     29 from matplotlib import _path

/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/backend_bases.py in &lt;module&gt;()
     54
     55 import matplotlib.tight_bbox as tight_bbox
---&gt; 56 import matplotlib.textpath as textpath
     57 from matplotlib.path import Path
     58 from matplotlib.cbook import mplDeprecation

/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/textpath.py in &lt;module&gt;()
     17 from matplotlib.path import Path
     18 from matplotlib import rcParams
---&gt; 19 import matplotlib.font_manager as font_manager
     20 from matplotlib.ft2font import FT2Font, KERNING_DEFAULT, LOAD_NO_HINTING
     21 from matplotlib.ft2font import LOAD_TARGET_LIGHT

/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/font_manager.py in &lt;module&gt;()
   1410                 verbose.report(&quot;Using fontManager instance from %s&quot; % _fmcache)
   1411         except:
-&gt; 1412             _rebuild()
   1413     else:
   1414         _rebuild()

/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/font_manager.py in _rebuild()
   1395     def _rebuild():
   1396         global fontManager
-&gt; 1397         fontManager = FontManager()
   1398         if _fmcache:
   1399             pickle_dump(fontManager, _fmcache)

/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/font_manager.py in __init__(self, size, weight)
   1035         #  Load TrueType fonts and create font dictionary.
   1036
-&gt; 1037         self.ttffiles = findSystemFonts(paths) + findSystemFonts()
   1038         self.defaultFamily = {
   1039             'ttf': 'Bitstream Vera Sans',

/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/font_manager.py in findSystemFonts(fontpaths, fontext)
    320                     fontfiles[f] = 1
    321
--&gt; 322             for f in get_fontconfig_fonts(fontext):
    323                 fontfiles[f] = 1
    324

/Users/ifmichael/anaconda/lib/python2.7/site-packages/matplotlib/font_manager.py in get_fontconfig_fonts(fontext)
    272         pipe = subprocess.Popen(['fc-list', '--format=%{file}\\n'],
    273                                 stdout=subprocess.PIPE,
--&gt; 274                                 stderr=subprocess.PIPE)
    275         output = pipe.communicate()[0]
    276     except (OSError, IOError):

/Users/ifmichael/anaconda/lib/python2.7/subprocess.pyc in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags)
    708                                 p2cread, p2cwrite,
    709                                 c2pread, c2pwrite,
--&gt; 710                                 errread, errwrite)
    711         except Exception:
    712             # Preserve original exception in case os.close raises.

/Users/ifmichael/anaconda/lib/python2.7/subprocess.pyc in _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, to_close, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite)
   1325                         raise
   1326                 child_exception = pickle.loads(data)
-&gt; 1327                 raise child_exception
   1328
   1329

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)"><pre class="notranslate"><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">18</span> <span class="pl-s1">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
     <span class="pl-c1">19</span>
     <span class="pl-c1">20</span> <span class="pl-k">from</span> <span class="pl-s1">copy</span> <span class="pl-k">import</span> <span class="pl-s1">deepcopy</span>

<span class="pl-c1">/</span><span class="pl-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">ifmichael</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</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">25</span>
     <span class="pl-c1">26</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">27</span> <span class="pl-s1">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">colorbar</span>
     <span class="pl-c1">28</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">style</span>
     <span class="pl-c1">29</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">/</span><span class="pl-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">ifmichael</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</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">32</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">33</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">34</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">35</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">36</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-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">ifmichael</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</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">25</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">26</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">27</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">28</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">29</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-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">ifmichael</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</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">54</span>
     <span class="pl-c1">55</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">56</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">57</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">58</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-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">ifmichael</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</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">17</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">18</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">19</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">20</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">21</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-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">ifmichael</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</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">1410</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">1411</span>         <span class="pl-s1">except</span>:
<span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1412</span>             <span class="pl-en">_rebuild</span>()
   <span class="pl-c1">1413</span>     <span class="pl-s1">else</span>:
   <span class="pl-c1">1414</span>         <span class="pl-s1">_rebuild</span>()

<span class="pl-c1">/</span><span class="pl-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">ifmichael</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</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">1395</span>     <span class="pl-k">def</span> <span class="pl-en">_rebuild</span>():
   <span class="pl-c1">1396</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">1397</span>         <span class="pl-s1">fontManager</span> <span class="pl-c1">=</span> <span class="pl-v">FontManager</span>()
   <span class="pl-c1">1398</span>         <span class="pl-k">if</span> <span class="pl-s1">_fmcache</span>:
   <span class="pl-c1">1399</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-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">ifmichael</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</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">1035</span>         <span class="pl-c">#  Load TrueType fonts and create font dictionary.</span>
   <span class="pl-c1">1036</span>
<span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1037</span>         <span class="pl-s1">self</span>.<span class="pl-s1">ttffiles</span> <span class="pl-c1">=</span> <span class="pl-en">findSystemFonts</span>(<span class="pl-s1">paths</span>) <span class="pl-c1">+</span> <span class="pl-en">findSystemFonts</span>()
   <span class="pl-c1">1038</span>         <span class="pl-s1">self</span>.<span class="pl-s1">defaultFamily</span> <span class="pl-c1">=</span> {
   <span class="pl-c1">1039</span>             <span class="pl-s">'ttf'</span>: <span class="pl-s">'Bitstream Vera Sans'</span>,

<span class="pl-c1">/</span><span class="pl-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">ifmichael</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</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">findSystemFonts</span>(<span class="pl-s1">fontpaths</span>, <span class="pl-s1">fontext</span>)
    <span class="pl-c1">320</span>                     <span class="pl-s1">fontfiles</span>[<span class="pl-s1">f</span>] <span class="pl-c1">=</span> <span class="pl-c1">1</span>
    <span class="pl-c1">321</span>
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">322</span>             <span class="pl-s1">for</span> <span class="pl-s1">f</span> <span class="pl-c1">in</span> <span class="pl-en">get_fontconfig_fonts</span>(<span class="pl-s1">fontext</span>):
    <span class="pl-c1">323</span>                 <span class="pl-s1">fontfiles</span>[<span class="pl-s1">f</span>] <span class="pl-c1">=</span> <span class="pl-c1">1</span>
    <span class="pl-c1">324</span>

<span class="pl-c1">/</span><span class="pl-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">ifmichael</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</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">get_fontconfig_fonts</span>(<span class="pl-s1">fontext</span>)
    <span class="pl-c1">272</span>         <span class="pl-s1">pipe</span> <span class="pl-c1">=</span> <span class="pl-s1">subprocess</span>.<span class="pl-v">Popen</span>([<span class="pl-s">'fc-list'</span>, <span class="pl-s">'--format=%{file}<span class="pl-cce">\\</span>n'</span>],
    <span class="pl-c1">273</span>                                 <span class="pl-s1">stdout</span><span class="pl-c1">=</span><span class="pl-s1">subprocess</span>.<span class="pl-v">PIPE</span>,
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">274</span>                                 <span class="pl-s1">stderr</span><span class="pl-c1">=</span><span class="pl-s1">subprocess</span>.<span class="pl-v">PIPE</span>)
    <span class="pl-c1">275</span>         <span class="pl-s1">output</span> <span class="pl-c1">=</span> <span class="pl-s1">pipe</span>.<span class="pl-en">communicate</span>()[<span class="pl-c1">0</span>]
    <span class="pl-c1">276</span>     <span class="pl-k">except</span> (<span class="pl-v">OSError</span>, <span class="pl-v">IOError</span>):

<span class="pl-c1">/</span><span class="pl-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">ifmichael</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</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">subprocess</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">args</span>, <span class="pl-s1">bufsize</span>, <span class="pl-s1">executable</span>, <span class="pl-s1">stdin</span>, <span class="pl-s1">stdout</span>, <span class="pl-s1">stderr</span>, <span class="pl-s1">preexec_fn</span>, <span class="pl-s1">close_fds</span>, <span class="pl-s1">shell</span>, <span class="pl-s1">cwd</span>, <span class="pl-s1">env</span>, <span class="pl-s1">universal_newlines</span>, <span class="pl-s1">startupinfo</span>, <span class="pl-s1">creationflags</span>)
    <span class="pl-c1">708</span>                                 <span class="pl-s1">p2cread</span>, <span class="pl-s1">p2cwrite</span>,
    <span class="pl-c1">709</span>                                 <span class="pl-s1">c2pread</span>, <span class="pl-s1">c2pwrite</span>,
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">710</span>                                 <span class="pl-s1">errread</span>, <span class="pl-s1">errwrite</span>)
    <span class="pl-c1">711</span>         <span class="pl-k">except</span> <span class="pl-v">Exception</span>:
    <span class="pl-c1">712</span>             <span class="pl-c"># Preserve original exception in case os.close raises.</span>

<span class="pl-c1">/</span><span class="pl-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">ifmichael</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</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">subprocess</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">_execute_child</span>(<span class="pl-s1">self</span>, <span class="pl-s1">args</span>, <span class="pl-s1">executable</span>, <span class="pl-s1">preexec_fn</span>, <span class="pl-s1">close_fds</span>, <span class="pl-s1">cwd</span>, <span class="pl-s1">env</span>, <span class="pl-s1">universal_newlines</span>, <span class="pl-s1">startupinfo</span>, <span class="pl-s1">creationflags</span>, <span class="pl-s1">shell</span>, <span class="pl-s1">to_close</span>, <span class="pl-s1">p2cread</span>, <span class="pl-s1">p2cwrite</span>, <span class="pl-s1">c2pread</span>, <span class="pl-s1">c2pwrite</span>, <span class="pl-s1">errread</span>, <span class="pl-s1">errwrite</span>)
   <span class="pl-c1">1325</span>                         <span class="pl-k">raise</span>
   <span class="pl-c1">1326</span>                 <span class="pl-s1">child_exception</span> <span class="pl-c1">=</span> <span class="pl-s1">pickle</span>.<span class="pl-en">loads</span>(<span class="pl-s1">data</span>)
<span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1327</span>                 <span class="pl-s1">raise</span> <span class="pl-s1">child_exception</span>
   <span class="pl-c1">1328</span>
   <span class="pl-c1">1329</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">0xe2</span> <span class="pl-c1">in</span> <span class="pl-s1">position</span> <span class="pl-c1">0</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>)</pre></div>
<p dir="auto">Right now I downgraded to 1.3.1, and everything got back to normal.</p>