Windows Python 3.x / Golly 4.x Troubleshooting Guide
Posted: April 30th, 2023, 5:32 pm
There's a Mac version of this thread from a couple of years ago, and there's been a little troubleshooting done on Discord recently for vaguely equivalent problems with getting Golly to find Python in Windows. Seems reasonable to document the current state of things in a separate thread.
The short summary is: things are still pretty much as bad as Randall Munroe said (as well as still being pretty much just as good as Randall Munroe said).
If You Don't Read Anything Else, Read This
The version of Python available from the Microsoft Store is, as far as I can tell so far, just plain not compatible with Golly.
It installs Python executables, but doesn't seem to install the Python DLLs that Golly expects to find, anywhere on the system.
Furthermore, when you install it and then uninstall it, it seems to leave annoying litter around -- zero-length files in a hidden directory, which keep getting pointed to by the "where python" command even when they should definitely have been cleaned up by the uninstaller.
The Rest of the News is Better
I have been able to get Python 3.10, Python 3.11, and Python 3.12 to work with Golly, with either of two different types of installs: the default install, which goes to the usual absolutely painfully ridiculous path -- e.g.,
C:\Users\{yourusername}\AppData\Local\Programs\Python\Python{version}\ (see screenshot below) The custom install, where you choose to "install for all users" and then pick a specific path, can also be made to work:
As long as you haven't touched the Microsoft Store installation of Python, even with a ten-foot pole, you should be able to find the location of your Python install at any time by typing in "cmd" in the Start bar, opening a standard Windows command-line prompt, and typing where python.
Beware of Stupid Hidden Folders in Windows
If you choose the default options and end up with a per-user install of Python with the ridiculously long filename, you should be aware that Microsoft made a wonderfully silly design decision a long time ago, where they chose to put various important files in a folder that users can't see by default. The folder in question is
C:\Users\{your_user_name}\AppData
The folder is absolutely present and perfectly accessible by anyone... but you have to type the file path in to the path bar in File Explorer -- you can't click to navigate to it. This has always seemed utterly weird to me, and more than a little bit evil. Totally unnecessary confusion for users?
Way to go, Microsoft.
The short summary is: things are still pretty much as bad as Randall Munroe said (as well as still being pretty much just as good as Randall Munroe said).
If You Don't Read Anything Else, Read This
The version of Python available from the Microsoft Store is, as far as I can tell so far, just plain not compatible with Golly.
It installs Python executables, but doesn't seem to install the Python DLLs that Golly expects to find, anywhere on the system.
Furthermore, when you install it and then uninstall it, it seems to leave annoying litter around -- zero-length files in a hidden directory, which keep getting pointed to by the "where python" command even when they should definitely have been cleaned up by the uninstaller.
The Rest of the News is Better
I have been able to get Python 3.10, Python 3.11, and Python 3.12 to work with Golly, with either of two different types of installs: the default install, which goes to the usual absolutely painfully ridiculous path -- e.g.,
C:\Users\{yourusername}\AppData\Local\Programs\Python\Python{version}\ (see screenshot below) The custom install, where you choose to "install for all users" and then pick a specific path, can also be made to work:
As long as you haven't touched the Microsoft Store installation of Python, even with a ten-foot pole, you should be able to find the location of your Python install at any time by typing in "cmd" in the Start bar, opening a standard Windows command-line prompt, and typing where python.
Beware of Stupid Hidden Folders in Windows
If you choose the default options and end up with a per-user install of Python with the ridiculously long filename, you should be aware that Microsoft made a wonderfully silly design decision a long time ago, where they chose to put various important files in a folder that users can't see by default. The folder in question is
C:\Users\{your_user_name}\AppData
The folder is absolutely present and perfectly accessible by anyone... but you have to type the file path in to the path bar in File Explorer -- you can't click to navigate to it. This has always seemed utterly weird to me, and more than a little bit evil. Totally unnecessary confusion for users?
Way to go, Microsoft.