Mac Python 3.x / Golly 4.x Troubleshooting Guide

Has something gone haywire? Let us know about it!
Post Reply
User avatar
dvgrn
Moderator
Posts: 10610
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Mac Python 3.x / Golly 4.x Troubleshooting Guide

Post by dvgrn » June 1st, 2021, 7:06 pm

EDIT: Windows version of this troubleshooting guide is here. More troubleshooting is still needed in both categories.
MathAndCode wrote:
June 1st, 2021, 4:51 pm
dvgrn wrote:
June 1st, 2021, 1:36 pm
I forget, have you gotten Python working on your computer yet?
I've always been able to run Python on other applications, but I still can't run Python scripts in Golly. This is why I've asked about the existence of lifelib versions of various programs, such as synthesise-patt.
It's really unlikely that very many Python scripts are ever going to get rewritten to work via lifelib instead of Golly, when they work so well (for almost everyone) in Golly. It definitely seems worth finding and fixing whatever the problem is on your system, so that you'll be in the Python Just Works category also.

Again, I don't remember -- did you ever start a thread and provide OS, Golly version, and Python executable name, and the exact symptoms that you get when you try to run a Python script? I just tried searching for a detailed description of your problem along those lines, but didn't come up with anything. Usually if we can just get people to answer questions specifically enough, the conversation ends up going something like this -- i.e., ending with "It worked".

(But I seem to recall you may have been the exception that proves the rule. Mac OS, was it? Maybe Andrew Trevorrow would have some ideas.)

MathAndCode
Posts: 5141
Joined: August 31st, 2020, 5:58 pm

Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by MathAndCode » June 1st, 2021, 7:39 pm

dvgrn wrote:
June 1st, 2021, 7:06 pm
Again, I don't remember -- did you ever start a thread and provide OS, Golly version, and Python executable name, and the exact symptoms that you get when you try to run a Python script?
I know that I posted about it in the tools channel, and I think that I included a screenshot.
I am tentatively considering myself back.

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

Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by dvgrn » June 1st, 2021, 8:00 pm

MathAndCode wrote:
June 1st, 2021, 7:39 pm
dvgrn wrote:
June 1st, 2021, 7:06 pm
Again, I don't remember -- did you ever start a thread and provide OS, Golly version, and Python executable name, and the exact symptoms that you get when you try to run a Python script?
I know that I posted about it in the tools channel, and I think that I included a screenshot.
I was able to find

"I'm going to try to figure out how to make Golly run Python scripts when I have more time over the summer."

from back in April. Is it summertime yet? I also found some path references like "Library/Frameworks/SAVI-pyexec.framework/Versions/Current", but no screenshots offhand. I don't have a Mac, so a screenshot probably wouldn't help me anyway -- but I'll check with Andrew for general troubleshooting advice. I don't even know what the Python dynamic link libraries are called on a Mac... {something}.so or {something}.dylib?

(And then I'll move this discussion out of here to a Mac Python Golly troubleshooting guide thread. Apologies everyone for the wild tangent.)

MathAndCode
Posts: 5141
Joined: August 31st, 2020, 5:58 pm

Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by MathAndCode » June 1st, 2021, 8:02 pm

dvgrn wrote:
June 1st, 2021, 8:00 pm
I also found some path references like "Library/Frameworks/SAVI-pyexec.framework/Versions/Current", but no screenshots offhand.
This is the post that I was referring to.
Python-library-error-on-Mac.png
Python-library-error-on-Mac.png (32.43 KiB) Viewed 4632 times
I am tentatively considering myself back.

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

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by dvgrn » June 1st, 2021, 8:24 pm

Okay. What specific flavor of Mac are you running on, what OS version?

And what version of Golly -- 4.0?

MathAndCode
Posts: 5141
Joined: August 31st, 2020, 5:58 pm

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by MathAndCode » June 1st, 2021, 9:22 pm

dvgrn wrote:
June 1st, 2021, 8:24 pm
Okay. What specific flavor of Mac are you running on, what OS version?

And what version of Golly -- 4.0?
My operating system is currently macOS BIg Sur 11.3.1, but I'm pretty sure that I've updated it at least twice since the problem started.
I got the following image when I clicked About Golly.
Attachments
Screen Shot 2021-06-01 at 8.23.23. 98600PM.png
Screen Shot 2021-06-01 at 8.23.23. 98600PM.png (65.61 KiB) Viewed 4625 times
I am tentatively considering myself back.

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

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by dvgrn » June 1st, 2021, 10:14 pm

That seems to me like an odd and ugly place to be looking for About.htm. It belongs in the Help folder directly under Golly's root directory.

I know absolutely zero about this except for what I just Googled, but if you have "AppTranslocation" in the path you might be running into some of the problems described here (?) I could certainly imagine that running Golly from a different randomly chosen path on every run could cause some confusion.

But I'll wait and hope other Mac users can chime in with actual relevant advice.

Also, just to be clear: were you able to check the Library/Frameworks/Python.framework/Versions/3.9/lib/ folder and confirm that there actually is a file called libpython3.9.dylib residing there? The goal is to figure out where on your computer Python 3.9 is installed (and not to try to move or copy any .dylib files from point A to point B at random, to try to make things work) (... I mention this just because on Windows, for some reason, people seem to really enjoy making a thorough mess of their systems by trying this kind of thing.)

MathAndCode
Posts: 5141
Joined: August 31st, 2020, 5:58 pm

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by MathAndCode » June 1st, 2021, 10:21 pm

dvgrn wrote:
June 1st, 2021, 10:14 pm
Also, just to be clear: were you able to check the Library/Frameworks/Python.framework/Versions/3.9/lib/ folder and confirm that there actually is a file called libpython3.9.dylib residing there? The goal is to figure out where on your computer Python 3.9 is installed (and not to try to move or copy any .dylib files from point A to point B at random, to try to make things work) (... I mention this just because on Windows, for some reason, people seem to really enjoy making a thorough mess of their systems by trying this kind of thing.)
Yes. I even had a friend confirm it.
I am tentatively considering myself back.

User avatar
Andrew
Moderator
Posts: 919
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by Andrew » June 2nd, 2021, 7:52 pm

The Library path needs to start with "/", so try entering this :

Code: Select all

/Library/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib
If that fails try this:

Code: Select all

/Library/Frameworks/Python.framework/Versions/3.9/Python
If both fail then please let me know the output from these Terminal commands:

Code: Select all

file /Library/Frameworks/Python.framework/Versions/3.9/Python
file /Library/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib
The error from About Golly clearly indicates that Golly.app is being translocated. I'm not sure why that is happening -- maybe Apple have (yet again) changed the security protocols in Big Sur. When you downloaded Golly's .dmg file you should have got a folder called golly-4.0-mac. Where is that folder on your system? In /Applications or ~/Downloads or where?

Quit Golly if it's running, then cd to the golly-4.0-mac directory and run this command:

Code: Select all

xattr -d com.apple.quarantine Golly.app
Now start up Golly and see if About Golly works.
Use Glu to explore CA rules on non-periodic tilings: DominoLife and HatLife

MathAndCode
Posts: 5141
Joined: August 31st, 2020, 5:58 pm

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by MathAndCode » June 3rd, 2021, 2:18 pm

Andrew wrote:
June 2nd, 2021, 7:52 pm
The Library path needs to start with "/", so try entering this :

Code: Select all

/Library/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib
I didn't get a window telling me that Golly couldn't load the Python directory, which I think is progress, but it seems that there is a problem with the Python script. Maybe the copy of the script that I have is meant for the wrong version of Python?
Screen Shot 2021-06-03 at 12.34.46. 14200PM.png
Screen Shot 2021-06-03 at 12.34.46. 14200PM.png (79.16 KiB) Viewed 4541 times
Andrew wrote:
June 2nd, 2021, 7:52 pm
The error from About Golly clearly indicates that Golly.app is being translocated. I'm not sure why that is happening -- maybe Apple have (yet again) changed the security protocols in Big Sur. When you downloaded Golly's .dmg file you should have got a folder called golly-4.0-mac. Where is that folder on your system? In /Applications or ~/Downloads or where?
I had some issues with filepaths in Golly before, so I deleted then redownloaded Golly, and just to be safe, I kept Golly in the golly-4.0.1-mac folder (which is in my Downloads folder), instead putting an alias of Golly in my applications folder.
Andrew wrote:
June 2nd, 2021, 7:52 pm
Quit Golly if it's running, then cd to the golly-4.0-mac directory and run this command:

Code: Select all

xattr -d com.apple.quarantine Golly.app
Now start up Golly and see if About Golly works.
Yes, that seems to have worked.
Screen Shot 2021-06-03 at 1.05.34. 66400PM.png
Screen Shot 2021-06-03 at 1.05.34. 66400PM.png (232.44 KiB) Viewed 4541 times
I am tentatively considering myself back.

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

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by bubblegum » June 3rd, 2021, 3:11 pm

MathAndCode wrote:
June 3rd, 2021, 2:18 pm
I didn't get a window telling me that Golly couldn't load the Python directory, which I think is progress, but it seems that there is a problem with the Python script. Maybe the copy of the script that I have is meant for the wrong version of Python?
My guess is that the "w" in the `open` command should be a "wb" to accept `bytes`-like sequences.
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

MathAndCode
Posts: 5141
Joined: August 31st, 2020, 5:58 pm

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by MathAndCode » June 3rd, 2021, 4:37 pm

bubblegum wrote:
June 3rd, 2021, 3:11 pm
My guess is that the "w" in the `open` command should be a "wb" to accept `bytes`-like sequences.
I changed that (and made similar changes to lines 30, 32, and 33), and now Golly is doing weird things, like telling me that saving now will not save the changes that I made to earlier generations even though I'm at generation zero.
I am tentatively considering myself back.

Null

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by Null » June 3rd, 2021, 6:19 pm

MathAndCode wrote:
June 3rd, 2021, 4:37 pm
bubblegum wrote:
June 3rd, 2021, 3:11 pm
My guess is that the "w" in the `open` command should be a "wb" to accept `bytes`-like sequences.
I changed that (and made similar changes to lines 30, 32, and 33), and now Golly is doing weird things, like telling me that saving now will not save the changes that I made to earlier generations even though I'm at generation zero.
I think this thread has diverged into a different topic, but did you use `g.new()` or `g.reset()` by any chance?

MathAndCode
Posts: 5141
Joined: August 31st, 2020, 5:58 pm

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by MathAndCode » June 3rd, 2021, 6:22 pm

Null wrote:
June 3rd, 2021, 6:19 pm
I think this thread has diverged into a different topic, but did you use `g.new()` or `g.reset()` by any chance?
The script uses g.new().
I am tentatively considering myself back.

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

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by dvgrn » June 4th, 2021, 10:09 am

MathAndCode wrote:
June 3rd, 2021, 2:18 pm
Maybe the copy of the script that I have is meant for the wrong version of Python?
MathAndCode wrote:
June 3rd, 2021, 6:22 pm
Null wrote:
June 3rd, 2021, 6:19 pm
I think this thread has diverged into a different topic, but did you use `g.new()` or `g.reset()` by any chance?
The script uses g.new().
Definitely stop trying to fix that version of the script. The "bytes" vs. "str" is indeed a marker for Python 2 vs. Python 3 incompatibility.

So instead, post a link to the specific script that you're using, and then we can tell you where the Python 3 version of that script can be found.

Meanwhile, can you confirm that you can now run all the Python scripts that come with Golly 4.0 without any problems?

MathAndCode
Posts: 5141
Joined: August 31st, 2020, 5:58 pm

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by MathAndCode » June 4th, 2021, 11:29 pm

dvgrn wrote:
June 4th, 2021, 10:09 am
Definitely stop trying to fix that version of the script. The "bytes" vs. "str" is indeed a marker for Python 2 vs. Python 3 incompatibility.

So instead, post a link to the specific script that you're using, and then we can tell you where the Python 3 version of that script can be found.
I can't remember what link I used. Can you just give me a link to the Python 3 version?
dvgrn wrote:
June 4th, 2021, 10:09 am
Meanwhile, can you confirm that you can now run all the Python scripts that come with Golly 4.0 without any problems?
I tried three, and all three worked. I don't feel like being exhaustive.
I am tentatively considering myself back.

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

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by dvgrn » June 5th, 2021, 7:14 am

MathAndCode wrote:
June 4th, 2021, 11:29 pm
dvgrn wrote:
June 4th, 2021, 10:09 am
Definitely stop trying to fix that version of the script. The "bytes" vs. "str" is indeed a marker for Python 2 vs. Python 3 incompatibility.

So instead, post a link to the specific script that you're using, and then we can tell you where the Python 3 version of that script can be found.
I can't remember what link I used. Can you just give me a link to the Python 3 version?
dvgrn wrote:
June 4th, 2021, 10:09 am
Meanwhile, can you confirm that you can now run all the Python scripts that come with Golly 4.0 without any problems?
I tried three, and all three worked. I don't feel like being exhaustive.
Ah, sorry, I hadn't noticed that the error message gave a clue about what script you were running. Here's the Python3 version of synthesise-patt.py.

MathAndCode
Posts: 5141
Joined: August 31st, 2020, 5:58 pm

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by MathAndCode » June 5th, 2021, 11:30 am

dvgrn wrote:
June 5th, 2021, 7:14 am
MathAndCode wrote:
June 4th, 2021, 11:29 pm
dvgrn wrote:
June 4th, 2021, 10:09 am
Definitely stop trying to fix that version of the script. The "bytes" vs. "str" is indeed a marker for Python 2 vs. Python 3 incompatibility.

So instead, post a link to the specific script that you're using, and then we can tell you where the Python 3 version of that script can be found.
I can't remember what link I used. Can you just give me a link to the Python 3 version?
dvgrn wrote:
June 4th, 2021, 10:09 am
Meanwhile, can you confirm that you can now run all the Python scripts that come with Golly 4.0 without any problems?
I tried three, and all three worked. I don't feel like being exhaustive.
Ah, sorry, I hadn't noticed that the error message gave a clue about what script you were running. Here's the Python3 version of synthesise-patt.py.
I seems to partially work. I tested it on the region in these syntheses (3bo$2bobo2$o5bo$2obob2o), and I got this:

Code: Select all

x = 10432, y = 30, rule = B3/S23
3bo78bo68bo76bo77bo68bo77bo72bo85bo74bo80bo58bo90bo84bo52bo77bo75bo71b
o69bo80bo67bo79bo74bo69bo86bo62bo81bo67bo77bo3b2o69bo82bo62bobo78bo78b
o70bo74bobo70bo75bo76bo71bo71bo3b2o71bo74bo74bo77bo71bo76bo74bo74bo75b
o74bo74bo70bo74bo73bo74bo73bo79bobo74bo81bobo58bo75bobo82bo75bo75bo62b
o80bo68bo78bo69bo75bo76bo74bo72bo74bo74bo84bo64bo75bo77bo70bo80bo67bo
79bo69b3o81bo74b3o65bo73bo83b2o64bo74bo79bo69b2o79bo68bo74bo74bo77bobo
75bo68bo80bo72bo69bobo76bobo68b2o80bo76b2o65bo76bo72bo81bo67bo76bo72bo
83bo69bo70bo7bobo73bo66bo75bo72bo78bo69bo75bo75bo73bo74b2o74bo73bo74b
2o85bo61bo15bo65bo69bo91bo67bo77bobo69bobo66bo$4bo77bobo67bo75bobo74bo
70b2o76bo72bo85bo73bobo77bo57bobo91bo84bo52bo68bo8bo75bo71bo69bo78bo
69bo79bo68bo5bo69bo85bobo61bo74bo3b2o69bo77bob2o71bo3bo78bo62b2o73bo5b
o78bo70bo73b2o72bo75bo70bo5bo71bo71bob2o73bo74bo74bo70bobo4bo71bo76bo
74bo74bo75bo74bo74bo70bo74bo73bo74bo73b2o8bo69b2o75b2o79b2o60b2o12bo
61b2o83bo75bo75bo62bo80bo68bo76bo71b2o74bo76bo74bo72bo74bo74bo73bo8b2o
65bo72b2o79b2o68b2o4bo75bo66bobo75bobo71bo82bo73bo68bo73bo73bo8bobo64b
o72bo81bo67bobo4bo75bo68bo74bo74bo77b2o76bo68bo80bo72bo68b2o78b2o69b2o
4bo75bo67bo6b2o67bo76bo72bo7bo71bo69bo76b2o71bo83bo66b2o72bo6b2o75b2o
65b2o74b2o71bo78bo69b2o74bo73bo75b2o71bobo73bo75b2o71bobo86bo61b2o14bo
65bo69bo91bo60bo4bo69bo8b2o70b2o65b2o$2b3o77b2o66b3o2bo72b2o75b3o67b2o
75b3o70b3o83b3o73b2o78b3o56b2o89b3o82b3o50b3o69bo5b3o73b3o69b3o67b3o
78b3o65b3o77b3o69bo2b3o67b3o85b2o60b3o75bo3b2o66b3o75b3o3bo68b3ob2o77b
3o62bo75bo2b3o76b3o68b3o74bo70b3o73b3o68bobo3b3o69b3o69b3o3bo70b3o6bo
65b3o72b3o71b2o2b3o69b3o74b3o72b3o72b3o68bo4b3o72b3o72b3o68b3o72b3o71b
3o4b2o66b3o72b2o3bo5bobo67bo75b2o66bo14bo59b2o12b2o61bo82b3o73b3o73b3o
60b3o78b3o66b3o72bo3b3o68b2o73b3o74b3o72b3o70b3o72b3o72b3o74bo7bobo62b
3o73b2o77b2o68bobo5bo72b3o66b2o77b2o70bo7bo66bo6b3o66bo7bo65b3o6bo64b
3o74bo7bo64b3o72b3o77b3o69bo5bo72b3o66b3o72b3o72b3o77bo75b3o66b3o78b3o
70b3o69bo78bo69bo7bo72b3o68bo7bo64b3o74b3o70b3o7bobo69b3o65b3o75b2o70b
3o81b3o67b2o69b3o7bo74b2o65b2o74b2o70b3o76b3o68b2o73b3o73b3o72b2o74bo
73b3o72b2o74bo74bo9b3o60b2o13b3o63b3o67b3o3bo85b3o58b2o5b3o65b2o10bo
71bo66b2o$76bo78bobo67bo374b3o522b3o148bo79bobo67bo223b3o298b3o229b2o
215b3o448b2o232b2o214bo81bobo64bo225b2o378b2o147b2o4b2o213b2o77bo8bobo
435bo148b2o82bo298b2o214b3o303b3o301bo66bo75bo80bo140b3o303b3o367bo73b
2o84b2o137b3o228b3o141b3o232b2o299bo303bo66bo75bo526bo224bo64bobo228b
2o147b2o73b2o74bo69bo$77bo77b2o69b2o151bo222bo673b2o78b2o69bo147b3o
1507bobo295b2o66b2o222b2o75bo305bo74bo70bobo218b2o78b2o443bobo147b2o
84bo71bo220b3ob2o69b3o3bo747b3o64b3o73b3o80b3o815bo73b2o82b2o140bo602b
o70bo78bo4b2o71bo77bobo62b2o236b2o65b2o74b2o142bo384bo224bo64b2o228bob
o142bo74bo77b2o71bo$bo4b2o67b3o2bo144b2o152b2o145b2o73bo10b2o303b2o83b
2o51b2o76b2o74b2o64bobo79bo67b3o74b2o73bo3b2o73b2o70b2o148b2o148b3o2bo
67b2o73b2o86bobo70bo70bobo76bobo65b2o69bo78b2o70bo3b2o75b2o65bobo3b2o
70b2o70b2o73b2o73b2o76b2o70b2o7bo65b2o3bo70bo3bo74bo75bo68bobo3bo74bo
69bo74bo154b2o142bo74bo79bo73bobo68bo86b3o73b3o73b3o60b3o71b2o5b3o66b
3o154b3o72bo65b3o72b3o78bo3bo70bob2o67bo149bo7bobo287bobo5bo299b2o141b
2o74b2o148b2o6bo291bo5b2o69b2o73b2o73b2o69b3o72bo9b2o67b2o6bo72b2o64bo
5bo70bo72bo148bo8bo143bo6bo69bo72b2o72bo75b2o5bobo68b2o70bo7b2o62bobo
9bo139b2o85bobo64bobo73bobo66b3o73bo2b3o88bo54b3o230b3o222b3o74b2o76b
2o64b2o68b2o90b2o58bo74bo77b2o68b3o$b2o2bobo72bobo217bo77bobo69bo76b2o
84b2o303b2o83b2o51b2o76b2o74b2o68b3o67b3o149bobo71bo3bobo72bobo69bobo
147bobo71b2o77bo2bobo64bobo72bobo86b2o72bo69b2o77b2o66bobo69bo76b2o69b
obo2b2o75b2o67b2o3bobo69bobo70b2o73b2o3bo69b2o76b2o70b2o76b2o70b2ob2o
73b2o74b2o69b2o2b2o73b2o69b2o73b2o72b3o72b3o4b2o142b2o73b2o77b2o144b2o
86bo75bo75bo62bo80bo68bo74bobo150b3o65bo74bo79bo74bo3b2o66b2o73bo74b2o
6b2o65bo73bo81bo67b2o5b2o297bobo140bobo73bobo73b2o72bobo6bobo64bo73bo
81b2o65bobo4bobo68b2o73b2o73b2o154b2o67b2o79b2o70b2o71bo72bo81bo66b2o
5b2o68bo73b2o4b2o69b2o73b2o69b3o76b2o4bo71b2o69b2o72bo9b2o62bo76b2o
220bobo75bo71b3o4bo89bo55bo532bobo75bobo63bobo67bobo73b2o14bobo55b3o
72b3o73bo$obo4bo72b2o147bo71b2o148b2o73bo85bo304bo84bo52bo77bo75bo70bo
69bo151bo4b3o72bo74bo71bo71bo77bo70b2o77bo3b2o67bo74bo87bo70b3o70bo78b
o66bo69b3o72bobo3bo69b2o4bo76bo66bo4bo71bo71bo74bo3b2o69bo77bo71bo78bo
bo68bobobobo72bobo73bobo72bobo72bobo67bobo72bobo74bo74bo147b2o3bo69b2o
3bo73bobo143b2o86bo75bo75bo62bo80bo68bo75b2o220bo74bo224bobo73b2o72bob
o7bo66bo73bo80b2o66bo5bobo223b2o74bo66b2o74bo75bo72bobo74bo6b2o66bo73b
o79bobo66b2o6bo70bo6bo67bo74bo155bo68bo69bo10bo69bobo68b3o70b3o80b2o
65b2o6bobo66b2o73bobo4b2o68bobo370bobo81bobo63bo74bo223b2o74bo78bo88b
3o54bo73bo224bo234bo77bo65bo69bo74bobo14bo209bo$229b2o69b2o148b2o829bo
69bo75b2o78bo294bo149bo598b2o77bo70b2o452b2o668b2o154b2o68bo74bo153b2o
73b2o223bo220bo303bo76b3o225b2o289bobo147b3o71b3o79bobo143bo73bo79bobo
140bobo225bo147b3o71b3o81bo150b2o217b2o220b2o305bobo141bobo300bo144b3o
222b3o298bo375bo157bo66bo158bo365bo222b3o$151b2o75bobo149b2o1045bobo
78bo291b3o85b2o660bobo77b2o69bo899bo224b2o77bo74b2o297bobo72bobo223b2o
220bo379bo72b3o74b3o74b2o743bo73bo80bo142bo683b2o215b2o220b2o599bo151b
2o147bo448bo448b3o73bo83b2o63b3o73bo83b2o667b2o$150bobo151bo75bobo71bo
72b2o898bo303bo156bobo448bobo210bo76bobo598b2o369b2o222bo78b2o76bo596b
obo218b3o380bo71bo76bo78bo218b2o520b3o71b3o376b3o747bo374bo72bo371b2o
152b2o145bo449b2o318b3o203bo81bobo140bo82bobo665bobo$152bo151b2o74bo
73b2o71bobo1200b2o156bo450b2o889bobo367bobo301bobo1349bo76bo297b2o220b
o73bo679bo220b2o72b2o825b2o71b2o371bobo524b2o221bobo320bo201b3o222b3o
752bo$303bobo147bobo71bo523bo678bobo70b2o535bo889bo2399bo222b2o72b2o
677bo220bobo71bobo825bobo70bobo898b2o542bo128bo225bo$1051b2o749bobo
4047bobo71bobo223b2o72b2o601bo73bo297bo78bo1421bo148bo524b2o223b2o$
1050bobo751bo670b3o3673bobo71bobo972b2o78b2o1569b2o522bobo73bo149bobo
73bo$751bo1498b2o225bo3675bo73bo972bobo76bobo1568bobo598b2o223b2o298bo
$676bo75bo103bo343b3o1048b2o223bo6973bobo223bobo296b2o$677bo72b3o104bo
344bo1047bo7724bobo$675b3o177b3o343bo$9075b3o$750b2o8323bo$675b2o74b2o
102b2o44b2o8173bo229b2o$676b2o72bo105b2o42bobo3747b2o227b2o4425bobo$
675bo179bo46bo3748b2o72b2o151b2o4426bo$4650bo75b2o152bo$975b2o3748bo$
976b2o$975bo4057b2o$5033bobo$5033bo!
Some but not all of the collisions make that region. Do you know why?
I am tentatively considering myself back.

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

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by dvgrn » June 5th, 2021, 11:42 am

MathAndCode wrote:
June 5th, 2021, 11:30 am
Some but not all of the collisions make that region. Do you know why?
Yup, this is a known shortcoming of synthesise-patt.py. It uses a population sequence as the hash values for recognizing active reactions. When there are only a few ticks before an active reaction stabilizes, and when the population just stays steady at 8 ticks or whatever, you can very often get false positives like the ones you're seeing here.

The fix for this is to re-run all the hash sequences to use something more reliable, like octohashes. It's on my to-do list, but it takes several days of processing time so I'm really hoping someone else will get around to it first.

MathAndCode
Posts: 5141
Joined: August 31st, 2020, 5:58 pm

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by MathAndCode » June 5th, 2021, 11:50 am

dvgrn wrote:
June 5th, 2021, 11:42 am
Yup, this is a known shortcoming of synthesise-patt.py. It uses a population sequence as the hash values for recognizing active reactions. When there are only a few ticks before an active reaction stabilizes, and when the population just stays steady at 8 ticks or whatever, you can very often get false positives like the ones you're seeing here.
Yes, I put the parent in, and the results are more relevant.

Code: Select all

x = 1590, y = 19, rule = B3/S23
o75bo83bo72bo67bo86bo62bo79bobo70bo73bo71bo88bobo58bo75bo76bo74bo73bo
74bo72bo15bo60bo84bo74bobo$b2o74bo83bo70bo69bo85bobo61bo78b2o72bo73bo
71b2o8bo77b2o60b2o74bo76bo74bo71bo74bo74b2o14bo60bo77bo4bo75b2o$2o73b
3o81b3o70b3o65b3o85b2o60b3o79bo70b3o71b3o70b2o3bo5bobo61bo14bo59b2o73b
3o74b3o72b3o71b3o72b3o71b2o13b3o58b3o3bo71b2o5b3o74bo$226bo528b2o4b2o
63b2o82bo520b2o72b2o74bo$4bo222bo526bobo68b2o84bo71bo447bobo67bo77b2o$
4b2o70b2o81b2o64b3o74b2o149b2o71bo78b2o68b2o153bo78b3o72bo65b3o72b3o
236b2o59b2o75bo77b2o$3bobo71b2o81b2o140bobo147bobo72bo76b2o70b2o152b2o
150b3o65bo74bo238bobo58bobo72b3o73bo$76bo82bo142bo4b3o66bo77bo70b3o72b
obo3bo68bo153bobo219bo74bo74bo74bo87bo60bo151bo$227b2o78bo69bo152bo70b
2o304b3o225b2o65bo74bo297b3o$5b2o220bobo78bo66b3o85b2o65b2o69bo305bo
72b3o74b3o74b2o64b3o72b3o$5bobo69b2o148bo235bobo63bobo148b2o226bo71bo
76bo78bo$5bo71bobo383bo216bobo298bo76bo$77bo300b2o300bo520bo75bo$377bo
bo821b2o73b2o$379bo820bobo73bobo2$150b3o$152bo$151bo!
Thank you for explaining it.



Edit: Now I'm having difficulty with synthesize-constellation.py. (The constellation that i inputted was 6bo$5bobo5b2o$5bobo5b2o$6bo2$b2o7b2o$o2bo5bo2bo$b2o7b2o2$6bo$5bobo$5bobo$6bo (a block and honey farm).)
Attachments
Screen Shot 2021-06-05 at 12.12.57. 25400PM.png
Screen Shot 2021-06-05 at 12.12.57. 25400PM.png (98.85 KiB) Viewed 4442 times
Screen Shot 2021-06-05 at 12.13.31. 86000PM.png
Screen Shot 2021-06-05 at 12.13.31. 86000PM.png (98.74 KiB) Viewed 4442 times
I am tentatively considering myself back.

Null

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by Null » June 6th, 2021, 11:23 pm

Could you use future discussion to the Scripts subforum, as it seems to be a better place for finding the topic of the discussion?

As for your question, that seems to be a Python 2/3 incompatibility.
For a quick fix, run `2to3 -w .` (or `/Your/Path/To/Python/Tools/Scripts/2to3.py -w .` if that fails)

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

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by dvgrn » June 7th, 2021, 9:31 am

Null wrote:
June 6th, 2021, 11:23 pm
Could you use future discussion to the Scripts subforum, as it seems to be a better place for finding the topic of the discussion?

As for your question, that seems to be a Python 2/3 incompatibility.
For a quick fix, run `2to3 -w .` (or `/Your/Path/To/Python/Tools/Scripts/2to3.py -w .` if that fails)
The quick fix is not terribly reliable for most of these Golly Python scripts, though it does work sometimes. In particular, it works to convert the Python 2 'xrange' syntax that the above error message is complaining about, to Python 3 'range' syntax. Whenever you see a "byte not str" or an 'xrange' error message, you know you've gotten hold of the Python 2 version of something.

Here's the Python 3 version of synthesise-constellation.py.

"byte not str" type issues are usually just a matter of adding a ".decode()" suffix to various ".read()" lines (for example when decoding compressed archives). This kind of thing, for various horrible technical reasons having to do with default ASCII code pages vs. Unicode, can't be handled automatically by the 2to3 script.

MathAndCode
Posts: 5141
Joined: August 31st, 2020, 5:58 pm

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by MathAndCode » June 7th, 2021, 2:50 pm

dvgrn wrote:
June 7th, 2021, 9:31 am
The quick fix is not terribly reliable for most of these Golly Python scripts, though it does work sometimes. In particular, it works to convert the Python 2 'xrange' syntax that the above error message is complaining about, to Python 3 'range' syntax. Whenever you see a "byte not str" or an 'xrange' error message, you know you've gotten hold of the Python 2 version of something.

Here's the Python 3 version of synthesise-constellation.py.

"byte not str" type issues are usually just a matter of adding a ".decode()" suffix to various ".read()" lines (for example when decoding compressed archives). This kind of thing, for various horrible technical reasons having to do with default ASCII code pages vs. Unicode, can't be handled automatically by the 2to3 script.
Yes, I'm able to get that to work now; thank you for helping me. For example, here is the result of inputting butterfly ash:

Code: Select all

x = 1225, y = 1020, rule = B3/S23
423bo$423bobo98bobo$423b2o99b2o$525bo4$719bo391bo$9bo102bo194bo409b2o
298bo93bobo101bo$7bobo102bobo92bobo98bo308bo89bobo8b2o96bo90bo97bobo7b
2o94b2o101bo$8b2o102b2o94b2o96b3o7b3o296b2o90b2o97bo8bo89bobo98b2o8b2o
196b3o$107bobo98bo5b2o100bo294bo4b2o90bo98b2o6b3o88b2o98bo198bobo$15b
2o91b2o103b2o95b2o5bo287bobo2bo195b2o108b2o288b2o$15bobo90bo106bo93bob
o294b2o2b3o93bo104b3o101b2o191bobo95bo$10b2o3bo97b3o93b2o100bo294bo97b
obo104bo96b2o7bo96b3o92b2o3bo101b2o$9bobo101bo96b2o493b2o105bo96b2o
103bo94bo4bobo98b2o$11bo102bo94bo698bo106bo98b2o101bo3$500bo$400bo100b
o2bobo$401bo2bobo92b3o2b2o$399b3o2b2o99bo$405bo83$312bo$15bo94bo199b2o
396bo199bo$15bobo92bobo93bobo102b2o204bo89bo98bobo97bo99bobo298bo$15b
2o93b2o95b2o205bobo90bo7b2o91bo98b2o98b2o98b2o299bo$207bo206b2o89bobo
8b2o88b3o197b2o7b3o94bo94bo10bo88bo98b3o$407bo7bo90b2o109bo98bo98bo95b
2o92bobo8b2o87bobo$308bobo94bobo208bo97b2o100bo94bobo92b2o4bo4b2o87b2o
4bo4b2o92bo$207b2o100b2o4bo90b2o107bo94b2o4b3o96b2o92b3o199b2o98b2o3b
2o91b2o4b3o$8bo106bo92b2o6b2o91bo3b2o101b2o96b2o93b2o198bo201bobo97bob
o4bo91b2o3bo$9b2o2bobo92bobo2b2o92bo7b2o97b2o99b2o97bobo94bo198bo405bo
$8b2o3b2o94b2o3b2o101bo199bo293b3o201b3o$14bo94bo603bo201bo$712bo203bo
84$212bobo$212b2o$213bo1010bo$1200bo21b2o$805bo392bobo22b2o$507bo200bo
97bo100bo291b2o$7bo8bo103bo387b2o6bo89bobo100bo94b3o101bo99bo99bo$8bo
6bo103bo199bobo94bo90b2o6bo91b2o6bo91b3o6bo102bo86b3o100bo99bo$6b3o6b
3o101b3o187bobo7b2o83bobo9bobo96b3o89bo6bo100bo102bo97bo90b3o6b2o89b3o
6b2o$102bo202bo3b2o9bo84b2o9b2o196b3o98b3o100b3o94bo99b2o99bobo$11bo
91b2o201bo3bo94bo509b3o99bo98bo$9b2o91b2o14bo185b3o205b2o497b2o98b2o$
10b2o105b2o299b2o91bobo97b2o99b2o101b2o94b2o98bobo97bobo$117bobo297b2o
94bo96bobo98bobo100bobo93bobo98bo99bo94bobo$419bo192bo100bo102bo95bo
294b2o2bobo$210bo996bo3b2o$208bobo1001bo$209b2o4bo$213b2o$214b2o82$
820bo$122bo696bo101bo97bo$21bo98b2o99bo201bobo94bo298b3o97b2o96b2o85bo
$2bo17bo100b2o98bobo96bo102b2o93b2o400b2o96b2o85b2o$obo17b3o198b2o97bo
bo78bo22bo94b2o81bobo15bobo481b2o12bobo86bo$b2o199bo117b2o80bo200b2o
15b2o82bobo411b2o85bobo10bo$100bobo97bobo197b3o200bo17bo83b2o10bo401bo
86b2o8b2o$101b2o98b2o301bo200bo10bo186bo313b2o$101bo200bo199bobo211b3o
82bobo100b2o99bo$303b2o198b2o107bobo187b2o99b2o101bo$302b2o308b2o93bob
o2bobo87bo201b3o$311bobo293bobo3bo94b2o2b2o394bobo97bobo3bo$7bo3bobo
193bobo3bo97b2o192bobo3bo96b2o98bo4bo395b2o98b2o2bo$8bo2b2o94bobo98b2o
2bo93bobo3bo95bobo95b2o2bo97bo196bobo3bo96bo3bobo95bobo96bo3bobo93bo3b
3o$6b3o3bo95b2o2bobo93bo3b3o92b2o100b2o2bobo90bo3b3o293b2o2bo98bo2b2o
91bobo2b2o101b2o$108bo3b2o193bo101bo3b2o391bo3b3o94b3o3bo92b2o3bo102bo
$113bo300bo591bo83$1201bobo$321bo99bo97bo682b2o$319b2o100bobo93b2o84bo
598bo$320b2o99b2o95b2o84b2o112bobo298bo$106bo496b2o113b2o86bo198bo11b
2o89bo$5bo11bo89bo98bo10bo185bo315bo87bo99bo98b2o10b2o86bobo6bo88b3o3b
o$6b2o9bobo85b3o9bo89bo9bobo184bo216bo183b3o97bobo8bo88b2o100b2o5bo91b
o2b2o$5b2o10b2o98bobo85b3o9b2o183b3o214b2o84bo200b2o7bo198b3o88bo3bobo
$117b2o386bo114b2o84b2o111bo95b3o$503bobo199b2o110b2o$504b2o312b2o$
107bobo$7bobo3bo94b2o97bobo3bo89bo504bo3bobo191bobo3bo93bobo$8b2o2bo
95bo3bobo93b2o2bo88bobo404bobo98bo2b2o93bobo2bobo92b2o2bo95b2o$8bo3b3o
97b2o94bo3b3o87b2o2bobo202bobo94bobo3bo94b2o2bobo91b3o3bo94b2o2b2o93bo
3b3o93bo3bobo$113bo193b2o104bobo95b2o96b2o2bo95bo3b2o193bo4bo197b2o$
307bo3bobo99b2o91bobo3bo96bo3b3o98bo397bo$311b2o95bobo3bo92b2o712b2o$
312bo96b2o96bo713bobo$409bo811bo80$400bobo$401b2o100bo398bo$3bo397bo
99bobo199bo100bo98bo297bo$bobo99bo398b2o200bo97bobo96b3o200bo94bobo$2b
2o97bobo101bo100bo297bobo95b3o98b2o297bobo95b2o$102b2o102bo97bobo5bo
292b2o3bo492b2o$6bo4bo192b3o98b2o3b2o96bo196bo4bobo391bobo5bo$6b2o2b2o
299b2o95b2o3bo196b2o393b2o3b2o$5bobo2bobo100bo293bobo2b2o94bo3b3o196bo
293bo5b2o100bo$112b2o99bo198bobo93b2o2bo196b2o99bo300b2o$108bo3bobo97b
2o95b2o196bobo3bo93b3o100b2o96b2o101bo200b2o$108b2o98bo3bobo93b2o297bo
201b2o100bobo95b2o201bo$107bobo98b2o100bo297bo302b2o95b2o200b2o$207bob
o501b2o297bo99b2o99b2o$710b2o98b2o206b2o89b2o$712bo96b2o101b2o104bobo
90bo$219b2o396b3o191bo99b2o105bo100b2o92b2o$22bo98b2o95b2o97b3o297bo
103b2o190bo205bobo90b2o$21b2o97b2o98bo96bo300bo102bobo96b2o100bo196bo
94bo$21bobo98bo195bo402bo97b2o100b2o299b2o$420b3o97b3o298bo99bobo297b
2o$420bo99bo702bo$421bo99bo78$700bo$701b2o298bo$203bo496b2o100bo99bo
96bobo$105bo98b2o97bo298bo200bo99bo96b2o$106bo96b2o99b2o200bo96bo197b
3o97b3o201bo$3bobo98b3o196b2o202bo93b3o502bo$4b2o400bo98b3o596b3o$4bo
399bobo204bo605bo$9bo99bo295b2o202b2o199bo406bobo$7b2o98b2o103bo97bo
101bo98bo98b2o196b2o100bo295bo10b2o$8b2o98b2o100b2o98bobo97b2o97b2o
202bo95b2o97b2o103bo193b2o$211b2o97b2o99b2o97b2o199b2o196b2o100b2o101b
o91b2o5bobo$609b2o101b2o298b2o98b2o99b2o$10b2o97b2o497b2o200b2o301b2o
99bo$9b2o97b2o100b2o99b2o98b2o99b2o5bo90bo198b2o100b2o295b2o$11bo98bo
99bobo97b2o98b2o6b2o91b2o5b2o191b2o98bo98b2o99b2o196b2o$19b2o97b2o90bo
101bo5b3o91bo4b2o94bo4bobo100b2o88bobo108bo89bo98bobo97b2o6b2o87bo$18b
2o97b2o99b3o97bo100bo201bobo87bo109b2o99b2o87bo98b2o6b2o$20bo98bo98bo
100bo301bo199bobo98bobo97b2o88bo7bo$219bo504bo197bo99bobo$723b2o297bo$
723bobo80$523bo98bo$322bobo97bo98b2o98bo99bobo97bo100bo98bo$322b2o98bo
bo97b2o97b3o97b2o98bobo96b2o98bo99bobo97bo$323bo98b2o77bo220bo98b2o98b
2o97b3o97b2o98bobo$217bo83bo98bo101bo97bobo99bo98bo100bo218bo98b2o$18b
o100bo97bobo79bobo99b2o97b3o98b2o97bobo99b2o99bo97bobo99bo98bo$16b2o
86bobo10b2o98b2o81b2o98b2o199bo99b2o98b2o98b3o98b2o97bobo99b2o$6bo10b
2o86b2o11b2o85bo796bo99b2o98b2o$7b2o96bo100b2o$6b2o5bobo189b2o$13b2o$
14bo99bo$8b2o99b3obo99bobo$9b2o100bob3o97b2o$8bo101bo97b3o3bo$210bo
302bobo97bobo97bobo97bobo97bobo97bobo97bobo97bobo$209bo103bobo97bobo
97b2o98b2o98b2o98b2o98b2o98b2o98b2o98b2o$313b2o98b2o93b3o3bo93b3o3bo
93b3o3bo93b3o3bo93b3o3bo93b3o3bo93b3o3bo93b3o3bo$308b3o3bo93b3o3bo95bo
99bo99bo99bo99bo99bo99bo99bo$310bo99bo98bo99bo99bo99bo99bo99bo99bo99bo
$309bo99bo81$21bo98bo$19b2o98bo99bobo97bo100bo98bo299bo98bo95bo$20b2o
97b3o97b2o98bobo96b2o98bo99bobo97bo98b2o98bo95bo99bobo102bo$3bo216bo
98b2o98b2o97b3o97b2o98bobo97b2o97b3o93b3o97b2o101b2o$4bo97bobo99bo98bo
100bo214bo98b2o85bo308bo102b2o$2b3o98b2o97bobo99b2o99bo97bobo99bo98bo
101bo97bobo99bo99bo99bo$103bo99b2o98b2o98b3o98b2o97bobo99b2o97b3o98b2o
97bobo97bobo100bo$504bo99b2o98b2o199bo99b2o98b2o98b3o3$1007b2o98b2o$
1006b2o98b2o$813bobo97bobo92bo99bo104bobo$13bobo97bobo97bobo97bobo97bo
bo97bobo97bobo97bobo97b2o98b2o298b2o$13b2o98b2o98b2o98b2o98b2o98b2o98b
2o98b2o93b3o3bo93b3o3bo102b2o97b3o89b3o3bo$8b3o3bo93b3o3bo93b3o3bo93b
3o3bo93b3o3bo93b3o3bo93b3o3bo93b3o3bo95bo99bo105b2o98bo93bo$10bo99bo
99bo99bo99bo99bo99bo99bo98bo99bo108bo98bo91bo$9bo99bo99bo99bo99bo99bo
99bo99bo84$4bo298bo201bo$5bo96bobo99bo99b2o13bo186bo96bobo99bo98bo101b
o298bo$3b3o14bobo80b2o14bo82bobo15bo82b2o13bo93bobo89b3o12bobo82b2o12b
o84bobo13bo85b2o11bo88bo96bobo99bo99b2o9bo$20b2o81bo15bobo81b2o13b2o
98b3o91b2o105b2o83bo13bobo83b2o11b2o85b2o11bo87b3o10bobo84b2o10bo86bob
o11bo86b2o9bo$21bo97b2o98b2o192bo106bo97b2o98b2o97b3o98b2o85bo11bobo
85b2o9b2o98b3o$919bo97b2o98b2o$407bo$405bobo$406b2o$1216bo$316bo200bo
98bo99bo99bo100bo98bo99bo99bobo$17bo98bo99bo99bobo89b3o106bobo96bobo
97bobo97bobo98bobo96bobo97bobo97b2o$17bobo96bobo97bobo97b2o90bo108b2o
97b2o98b2o98b2o99b2o97b2o98b2o93b3o$17b2o97b2o98b2o93b3o95bo7b2o93b3o
96b3o97b3o97b3o98b3o96b3o97b3o99bo$12b3o96b3o97b3o99bo102b2o96bo98bo
99bo99bo100bo98bo99bo98bo$14bo98bo99bo98bo105bo94bo98bo99bo99bo100bo
98bo99bo$13bo98bo99bo84$17bo287bo$15b2o289bo$16b2o99bo89bo8bobo85b3o$
117bobo88bo7b2o$117b2o87b3o8bo194bobo$5bobo98bo301bo3b2o$6b2o96bobo
302bo3bo$6bo98b2o300b3o2$317bo$216bo100bobo96b2o$13bo102bo94b3obo101b
2o89b3o5bobo$8b3obo98b3obo97bob3o190bo7bo$10bob3o98bob3o94bo96bo7b2o
90bo$9bo102bo196b2o5bobo$308bobo7bo!
Also, I just encountered a difficulty with synthesize-patt. I copied and pasted generation 247 (I typically advance the patterns for a while before running synthesize-patt if the activity lasts long enough in order to get synthesizes that make the desired object as well as sparks or smoke.) of the following pattern into Golly and ran synthesize-patt.py:

Code: Select all

x = 16, y = 15, rule = B3/S23
2bo$obo$b2o2$9bo$9bobo$9b2o6$14bo$13b2o$13bobo!
However, I got the message "0 collisions found". (I did it again just to be sure that I had copied the pattern correctly, and I got the message "0 collisions found" again.)
I am tentatively considering myself back.

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

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by dvgrn » June 7th, 2021, 3:31 pm

MathAndCode wrote:
June 7th, 2021, 2:50 pm
Also, I just encountered a difficulty with synthesize-patt. I copied and pasted generation 247 (I typically advance the patterns for a while before running synthesize-patt if the activity lasts long enough in order to get synthesizes that make the desired object as well as sparks or smoke.) of the following pattern into Golly and ran synthesize-patt.py:

Code: Select all

x = 16, y = 15, rule = B3/S23
2bo$obo$b2o2$9bo$9bobo$9b2o6$14bo$13b2o$13bobo!
However, I got the message "0 collisions found". (I did it again just to be sure that I had copied the pattern correctly, and I got the message "0 collisions found" again.)
That's not really a difficulty, it's just another thing to know about synthesise-patt.py. The "colseqs.txt" lookup table has population data for the first 256 ticks of each collision, and it does a comparison with 80 ticks of evolution. So you won't be able to find matches past T=166, unless you reduce the

Code: Select all

GEN_CHECK = 80
at the top of the script. (But if you reduce it too much you'll end up with more false positives.)

Just fair warning, though it's probably obvious: you can't just increase MAX_GENS above 256 the way you can decrease GEN_CHECK, because the colseqs.txt file is pre-computed for 256 ticks. You'd have to regenerate that entire file, which might be a few days of CPU time. If you do that, I'd advise using octohashes instead of population, since that pretty much means you'd be able to search for a single hash value instead of a sequence of N hash values. probably without seeing any false positives at all.

None of these search/match scripts are particularly long or complicated. When you run into problems with one, it's generally worth taking a moment to read through the code and see what it does. Often that can answer this kind of question right away.

MathAndCode
Posts: 5141
Joined: August 31st, 2020, 5:58 pm

Re: Mac Python 3.9 / Golly 4.0 Troubleshooting Guide

Post by MathAndCode » June 7th, 2021, 6:15 pm

dvgrn wrote:
June 7th, 2021, 3:31 pm
That's not really a difficulty, it's just another thing to know about synthesise-patt.py. The "colseqs.txt" lookup table has population data for the first 256 ticks of each collision, and it does a comparison with 80 ticks of evolution. So you won't be able to find matches past T=166.
Yes, it works when I don't advance so much. Thank you.
I am tentatively considering myself back.

Post Reply