This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pablogsal
Recipients lukasz.langa, pablogsal, vstinner
Date 2019-09-20.15:24:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
A very simple way to reproduce the bug:

Using pyInstaller, after applying these patches (to fix other Python3.8 issues)

you will get

Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

This is because Python will use the default value for sys.path, including the "lib" subdirectory:

            ^----------------> This should not be here

Instead, that value should be the one that pyinstaller passes when calling Py_SetPath() here:

So it should be:

Date User Action Args
2019-09-20 15:24:50pablogsalsetrecipients: + pablogsal, vstinner, lukasz.langa
2019-09-20 15:24:50pablogsalsetmessageid: <>
2019-09-20 15:24:50pablogsallinkissue38234 messages
2019-09-20 15:24:50pablogsalcreate