title: PyInstaller ImportError: No module named 'pyfiglet.fonts'
body: <p>I'm attempting to use PyInstaller to compile one of the demo scripts for Asciimatics, in hopes to eventually be able to create a simple GUI for a text-based game I'm developing, and it returns the following error:</p>
  
  <pre><code>C:\Users\X\Documents\Python Scripts\asciimatics samples\dist\test&gt;test.exe
  
  Traceback (most recent call last):
    File "site-packages\setuptools-19.2-py3.4.egg\pkg_resources\__init__.py", line 443, in get_provider
  KeyError: 'pyfiglet.fonts'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "&lt;string&gt;", line 22, in &lt;module&gt;
    File "site-packages\asciimatics\screen.py", line 859, in wrapper
    File "&lt;string&gt;", line 12, in demo
    File "site-packages\asciimatics\renderers.py", line 276, in __init__
    File "site-packages\pyfiglet\__init__.py", line 710, in __init__
    File "site-packages\pyfiglet\__init__.py", line 717, in setFont
    File "site-packages\pyfiglet\__init__.py", line 90, in __init__
    File "site-packages\pyfiglet\__init__.py", line 100, in preloadFont
    File "site-packages\setuptools-19.2-py3.4.egg\pkg_resources\__init__.py", line 1160, in resource_exists
    File "site-packages\setuptools-19.2-py3.4.egg\pkg_resources\__init__.py", line 445, in get_provider
  ImportError: No module named 'pyfiglet.fonts'
  test returned -1
  </code></pre>
  
  <p>Googling this error returned <a href="https://github.com/adamchainz/SublimeFiglet/issues/7" rel="nofollow">this thread</a>, but it seems to me that the error is caused by a fault within SublimeFiglet itself, and was fixed two years ago. </p>
  
  <p>I'm using Python 3.4 on Windows 10. I had to downgrade setuptools to 19.2 (I believe is the version I had to downgrade to) because I was getting an error stating that the packaging package was missing when attempting to run the compiled .exe file.</p>
  
  <p>I've imported both the six (due to it being a hidden import) and pyfiglet modules in test.py, in addition to the other imports necessary to run the script. Importing pyfiglet and any variations I can think of changes nothing. I could change the spec file to add a hidden import for six, though I don't see how that would change anything.</p>
  
  <p>Here is the spec file Pyinstaller uses:</p>
  
  <pre><code>block_cipher = None
  
  
  a = Analysis(['test.py'],
               pathex=['C:\\Users\\Sirindil\\Documents\\Python Scripts\\asciimatics samples'],
               binaries=None,
               datas=None,
               hiddenimports=[],
               hookspath=[],
               runtime_hooks=[],
               excludes=[],
               win_no_prefer_redirects=False,
               win_private_assemblies=False,
               cipher=block_cipher)
  pyz = PYZ(a.pure, a.zipped_data,
               cipher=block_cipher)
  exe = EXE(pyz,
            a.scripts,
            exclude_binaries=True,
            name='test',
            debug=False,
            strip=False,
            upx=True,
            console=True )
  coll = COLLECT(exe,
                 a.binaries,
                 a.zipfiles,
                 a.datas,
                 strip=False,
                 upx=True,
                 name='test')
  </code></pre>
  
  <p>Every sample script included with Asciimatics returns this same error for me. I've tried using different options when running pyinstaller on the script, with no success. Am I missing something? I have no idea how to fix this.</p>