Golly Python configuration problem

Has something gone haywire? Let us know about it!
Post Reply
User avatar
cgoler2
Posts: 213
Joined: March 10th, 2021, 2:32 pm
Location: A house

Golly Python configuration problem

Post by cgoler2 » May 13th, 2021, 12:54 pm

Then where is python38.dll?

EDIT by dvgrn: Moved a discussion of a Python related crash in Golly out of the Speed Demonoid thread, since it's not really related to the specific Speed Demonoid script. Has anyone else had similar trouble with Golly freezing when running Python scripts?

User avatar
bubblegum
Posts: 921
Joined: August 25th, 2019, 11:59 pm
Location: click here to do nothing

Re: Speed Demonoid

Post by bubblegum » May 13th, 2021, 1:02 pm

cgoler2 wrote:
May 13th, 2021, 12:54 pm
Then where is python38.dll?
Just get it from https://python.org/downloads/.
Each day is a hidden opportunity, a frozen waterfall that's waiting to be realised, and one that I'll probably be ignoring
sonata wrote:
July 2nd, 2020, 8:33 pm
conwaylife signatures are amazing[citation needed]
anything

User avatar
cgoler2
Posts: 213
Joined: March 10th, 2021, 2:32 pm
Location: A house

Re: Speed Demonoid

Post by cgoler2 » May 13th, 2021, 1:16 pm

I downloaded Python 3.9 with Golly 4.0, and the error is still showing up. What path should I enter?

User avatar
dvgrn
Moderator
Posts: 7988
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Speed Demonoid

Post by dvgrn » May 13th, 2021, 2:07 pm

cgoler2 wrote:
May 13th, 2021, 1:16 pm
I downloaded Python 3.9 with Golly 4.0, and the error is still showing up. What path should I enter?
First make sure that the Python 3.9 that you've downloaded is 64-bit Python -- the installer executable should end with "-amd64", I believe. It looks like python.org is finally linking to a 64-bit installer as the default, but it's worth double-checking anyway.

After that, the path depends on where exactly you've installed Python. My copy of GollyPrefs in an annoyingly secret hidden folder, kind of hard to find,

Code: Select all

C:\Users\{username}\AppData\Roaming\Golly\GollyPrefs
There's a line in my copy of GollyPrefs that says

Code: Select all

python3_lib=C:\Python39\python39.dll
So you'll want a path that looks something like that -- ends with "python39.dll".

HOWEVER, if you chose the default installation location for one of these modern Windows Python installs, then you'll probably have ended up with a horribly long awkward path instead, something like

Code: Select all

C:\Users\{username}\AppData\Local\Programs\Python\Python39\python39.dll
Substitute your own username for "{username}", and actually go and look in that location before you do anything -- see if there's really a "python39.dll" in a "Python39" folder there.

Don't just try typing in random paths into Golly, and definitely definitely don't start copying files called python39.dll from one location to the other. The DLL will work where the Python installer put it; there's no point in making copies anywhere else.

User avatar
cgoler2
Posts: 213
Joined: March 10th, 2021, 2:32 pm
Location: A house

Re: Speed Demonoid

Post by cgoler2 » May 13th, 2021, 4:34 pm

That works. Unfortunately it also results in Golly freezing after a Python script is run.

User avatar
dvgrn
Moderator
Posts: 7988
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Speed Demonoid

Post by dvgrn » May 13th, 2021, 4:47 pm

cgoler2 wrote:
May 13th, 2021, 4:34 pm
That works. Unfortunately it also results in Golly freezing after a Python script is run.
Just to double-check, what is the name of the Python installer executable that you used to install Python 3.9?

User avatar
cgoler2
Posts: 213
Joined: March 10th, 2021, 2:32 pm
Location: A house

Re: Golly Python configuration problem

Post by cgoler2 » May 13th, 2021, 4:48 pm

python-3.9.5-amd64.exe.

User avatar
dvgrn
Moderator
Posts: 7988
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Golly Python configuration problem

Post by dvgrn » May 15th, 2021, 10:17 am

cgoler2 wrote:
May 13th, 2021, 4:48 pm
python-3.9.5-amd64.exe.
Thanks! I'm temporarily out of ideas for what might be causing Golly to freeze. Can you be a little more specific? Does Golly freeze permanently, no matter which Python script you run? Do you see any error messages, or do you just have to close and restart Golly?

Has anyone else had similar trouble with Golly 4.0 freezing when running Python scripts, with 64-bit Python 3.9.5 installed?

User avatar
cgoler2
Posts: 213
Joined: March 10th, 2021, 2:32 pm
Location: A house

Re: Golly Python configuration problem

Post by cgoler2 » May 15th, 2021, 10:19 am

Close and restart.
Edit: It only freezes after running biggiemac.py. I tested it by running oscar.py on a pre-pre-beehive.
Last edited by cgoler2 on May 15th, 2021, 10:23 am, edited 1 time in total.

User avatar
dvgrn
Moderator
Posts: 7988
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Golly Python configuration problem

Post by dvgrn » May 15th, 2021, 10:21 am

dvgrn wrote:
May 15th, 2021, 10:17 am
Can you be a little more specific? Does Golly freeze permanently, no matter which Python script you run?

Post Reply