Python broke in v2.5.0
See original GitHub issueThe release v2.5.0 broke running Python in GH Actions with under msys, it worked in 2.4.2.
Python aborts execution right after start with the following message:
Python path configuration:
PYTHONHOME = 'D:/a/_temp/msys/msys64/mingw64'
PYTHONPATH = (not set)
program name = 'D:/a/_temp/msys64/mingw64/bin/python.exe'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = 'D:/a/_temp/msys64/mingw64/bin/python.exe'
sys.base_prefix = 'D:/a/_temp/msys/msys64/mingw64'
sys.base_exec_prefix = 'D:/a/_temp/msys/msys64/mingw64'
sys.platlibdir = 'lib'
sys.executable = 'D:/a/_temp/msys64/mingw64/bin/python.exe'
sys.prefix = 'D:/a/_temp/msys/msys64/mingw64'
sys.exec_prefix = 'D:/a/_temp/msys/msys64/mingw64'
sys.path = [
'D:/a/_temp/msys/msys64/mingw64/lib/python39.zip',
'D:/a/_temp/msys/msys64/mingw64/lib/python3.9',
'D:/a/_temp/msys/msys64/mingw64/lib/python3.9/lib-dynload',
'',
]
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'
There’s much more information available at https://github.com/cocotb/cocotb/issues/2739
The most likely reason for this change in behavior seems to be like https://github.com/msys2/setup-msys2/pull/163. Do you have any idea what’s going on?
Note PYTHONHOME is referring to (as far as I read the PR) the “old” installation path, ‘D:/a/_temp/msys/msys64/mingw64’, while the Python binary is in the new installation path.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Changelog — Python 3.11.1 documentation
gh-96268: Loading a file with invalid UTF-8 will now report the broken character at the ... source , track and wbr as empty...
Read more >Python break during install - CryoSPARC Discuss
I'm trying to install cryoSparc on a new box for us. However, I'm getting a new error during install that I don't know...
Read more >How can I do a line break (line continuation) in Python?
The same effect can be obtained using explicit line break: a = '1' + '2' + '3' + \ '4' + '5'. Note...
Read more >Release notes — pikepdf 2.15.1 documentation - Read the Docs
This description includes changes in v2.0 beta releases. Breaking changes. We now require at least these versions or newer: - Python 3.6 -...
Read more >Python program to split and join a string - GeeksforGeeks
Python program to Split a string based on a delimiter and join the string ... 5. Python String Methods | Set 2 (len,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah, I see. Or we could use a different path in autobuild.
@lazka Read this: https://docs.python.org/3/using/cmdline.html#envvar-PYTHONHOME.
prefix
andPYTHONHOME
should be one in the same. We put that line in place based on the following recommendation. PYTHONHOME and the path to the Python standard library can be deduced from the Python executable, but apparently not necessarily from libpython, so you are expected to help it out. The only way we can do that is by invoking Python and asking it what it thinks PYTHONHOME should be.