Golly Python configuration problem

Has something gone haywire? Let us know about it!
Post Reply
User avatar
cgoler2
Posts: 224
Joined: March 10th, 2021, 2:32 pm
Location: Living in a half-bakery

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: 959
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: 224
Joined: March 10th, 2021, 2:32 pm
Location: Living in a half-bakery

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: 10611
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: 224
Joined: March 10th, 2021, 2:32 pm
Location: Living in a half-bakery

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: 10611
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: 224
Joined: March 10th, 2021, 2:32 pm
Location: Living in a half-bakery

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: 10611
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: 224
Joined: March 10th, 2021, 2:32 pm
Location: Living in a half-bakery

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: 10611
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?

User avatar
ihatecorderships
Posts: 309
Joined: April 11th, 2021, 12:54 pm
Location: Falls Church, VA

Re: Golly Python configuration problem

Post by ihatecorderships » September 19th, 2021, 7:26 pm

When I enter the path to python39.dll in the popup which shows up when you try to run a python script, Golly just closed by itself. I have 64-bit python and golly. What might be happening?
-- Kalan Warusa
Don't drink and drive, think and derive.

User avatar
otismo
Posts: 1201
Joined: August 18th, 2010, 1:41 pm
Location: Florida
Contact:

Re: Golly Python configuration problem

Post by otismo » January 15th, 2022, 10:47 am

Thank You to @ dvgrn for re-directing my questions to this the appropriate thread !

( side question to @ dvgrn : ever heard a band from Madison, WI - now based in Chicago - called Slow Pulp ? find myself listening a lot lately... )

what version python does Goldtiger997's greyship synth script need ?

I may have two, a 2- and a 3-, on my system...

back later with a full issue report -

Thanks !
"One picture is worth 1000 words; but one thousand words, carefully crafted, can paint an infinite number of pictures."
- autonomic writing
forFUN : http://viropet.com
Art Gallery : http://cgolart.com
Video WebSite : http://conway.life

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

Re: Golly Python configuration problem

Post by dvgrn » January 15th, 2022, 5:18 pm

otismo wrote:
January 15th, 2022, 10:47 am
what version python does Goldtiger997's greyship synth script need ?

I may have two, a 2- and a 3-, on my system...
Python 2 is pretty much no longer used to run Golly scripts, since Golly 4.0 and later requires Python 3. Any recently published script, such as the Goldtiger997 Greyship Generator script, is pretty much guaranteed to be Python 3 compatible.

However, we're still in the process of cleaning up and repairing leftover Python 2 scripts, as they get discovered and pointed out (and if they still seem to be useful).

Post Reply