title: building matplotlib with pyinstaller 2.0
body: <p>I am trying to use pyinstaller 2.0 to build an .exe file from a python script which uses matplotlib and numpy, but I keep failing. I tried this code from 
  <a href="https://stackoverflow.com/questions/17095180/building-python-pylab-matplotlib-exe-using-pyinstaller">Building python pylab/matplotlib exe using pyinstaller</a> 
  as a simple reference, I get the build done for me, but when I run the exe I get the error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;string&gt;", line 12, in &lt;module&gt;
    File "C:\Compilations\pyinstaller-2.0\PyInstaller\loader\iu.py", line 386, in
  importHook
      mod = _self_doimport(nm, ctx, fqname)
    File "C:\Compilations\pyinstaller-2.0\PyInstaller\loader\iu.py", line 480, in
  doimport
      exec co in mod.__dict__
    File "C:\Compilations\pyinstaller-2.0\ptest\build\pyi.win32\ptest\out00-PYZ.py
  z\PIL.PpmImagePlugin", line 27, in &lt;module&gt;
  LookupError: no codec search functions registered: can't find encoding
  </code></pre>
  
  <p>Is this a bug or do I need to tinker with the <code>.spec</code> file and link the matplotlib libraries to pyinstaller somehow? If so - can anyone show me a simple example, please?
  I tried <code>cx_Freeze</code> before and also seem to have a problem as soon as I use a code with matplotlib.</p>
  
  <p>Thanks in advance!</p>