Pyinstaller created the exe with some warning. Now I mentioned that this was my work machine. The program worked fine so i created a exe by using pyinstaller. Advanced Topics, It sets up the Python import mechanism to load modules only from archives PyInstaller embeds compiled python code ( .pyc files) within the executable. This question might have gotten lost in the other thread so here it is again. I don't really know what this means as I still have no idea when and from where these functions should have been called. I was able to get PyInstaller to work from the command line (thanks for the replies! If read the file as usual (Builder.load_file('TEST.kv')) - encoding problems. Both codec_register and PyCodec_Register are as they should be. reinstalling pyinstaller (twice) Fatal Python error: Py_Initialize: unable to load the file system codec LookupError: unknown encoding: utf-8 Current thread 0x00002c38 (most recent call first): Here are some of the things I've tried to do to fix it: Googling and scouring the internet. "Fatal Python Error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings' Current thread 0x000006e4" The current thread number changes each time I run it. PyInstaller performs this amazing feat by introspecting your Python code, detecting your dependencies, and then packaging them into a suitable format depending on your Operating System. The string is LONG indeed :( but working. However, when i am trying to run the exe( from dist folder), i am getting below error: Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings' ), but that's only for Python 2.7. So then I downgraded to 3.6, installed Kivy there and PyInstaller, tried again. I've had Python on it before--even before the Visual Studio 2017 installation. Fatal Python error: initfsencoding: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' On a different Windows10 machine (or the same one that it was built on) it is working as expected. This time getting: Fatal Python error: initfsencoding: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' By the way, kivy may be added to venv by GUI only. Fatal Python error: Py_Initialize: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' So Python made it on there somehow, but wasn't complete, or was blowing up. Update broke anaconda python - unable to load file system codec Showing 1-4 of 4 messages. Created a venv with the latest pycharm build. There are lots of interesting details about PyInstaller, but for now you’ll learn the basics of how it works and how to use it. Fatal Python error: Py_Initialize: unable to load the file system codec ImportError: No module named 'encodings' Current thread 0x00001db4 (most recent call first): Fixing this is really simple: When you download Python3.x version, and run the .exe file, it gives you an option to customize where in your system you want to install Python. Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings' Current … Pyinstaller added to venv too, and all exe creating business was done in … It's just that nowhere in the code are any of these functions called. Update broke anaconda python - unable to load file system codec: Clare: 12/2/17 7:47 AM: Hi all, I'm using python 3.6 via anaconda on OSX 10.12.1 (Sierra). CRITICAL] [App ] Unable to get a window, abort.