Golly 4.0

For general discussion about Conway's Game of Life.
User avatar
Scorbie
Posts: 1489
Joined: December 7th, 2013, 1:05 am

Re: Golly 4.0

Post by Scorbie » November 6th, 2020, 5:28 am

Andrew wrote:
November 6th, 2020, 3:36 am
wildmyron wrote:
November 6th, 2020, 2:29 am
I wondered about testing the Python library with some other app which requires embedded Python. Can you (or anyone else) suggest an app which embeds Python3 and uses it in a similar way which I could test with?
Sorry, I don't know of any other apps like that.
Note: Many programs embed python, but each may do it differently.
The most comparable one I know of is OBS Studio (which only accepts python 3.6)
The program's kinda bulky, by the way...
Best wishes to you, Scorbie

wildmyron
Posts: 1490
Joined: August 9th, 2013, 12:45 am
Location: Western Australia

Re: Golly 4.0

Post by wildmyron » November 6th, 2020, 6:39 am

Andrew wrote:
November 6th, 2020, 4:59 am
@wildmyron and @LaundryPizza03: Please try running a .py script with this special build:

http://www.trevorrow.com/golly/Golly-4.0.1-Mac.dmg

Along with the usual "Could not load the Python library" dialog, you should get an extra "Golly Error" dialog box.
Please tell me the *exact* error message in that box. (Note that you can click and drag to copy the text,
then ctrl-click in it to get a pop-up menu with a Copy item that will copy the text to the clipboard.)
Thanks Andrew. Here is the error message after trying to run a Python script with this build:

Code: Select all

Failed to load shared library '/Library/Frameworks/Python.framework/Versions/3.9/Python': dlopen(/Library/Frameworks/Python.framework/Versions/3.9/Python, 10): no suitable image found.  Did find:
	/Library/Frameworks/Python.framework/Versions/3.9/Python: code signature in (/Library/Frameworks/Python.framework/Versions/3.9/Python) not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDs
	/Library/Frameworks/Python.framework/Versions/3.9/Python: stat() failed with errno=7
The latest version of the 5S Project contains over 226,000 spaceships. There is also a GitHub mirror of the collection. Tabulated pages up to period 160 (out of date) are available on the LifeWiki.

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

Re: Golly 4.0

Post by Andrew » November 6th, 2020, 8:27 am

@wildmyron: Ok, try running a .py script with this build:

http://www.trevorrow.com/golly/Golly-4.0.2-Mac.dmg

wildmyron
Posts: 1490
Joined: August 9th, 2013, 12:45 am
Location: Western Australia

Re: Golly 4.0

Post by wildmyron » November 6th, 2020, 11:42 am

Andrew wrote:
November 6th, 2020, 8:27 am
@wildmyron: Ok, try running a .py script with this build:

http://www.trevorrow.com/golly/Golly-4.0.2-Mac.dmg
Thanks Andrew. I tried this build and it gives the exact same error text as v4.0.1

Out of curiousity, I tried using my Homebrew Python 3.8 and that has a similar Library Validation error, but that Python lib is unsigned. The error message is:

Code: Select all

Failed to load shared library '/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/Python': dlopen(/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/Python, 10): no suitable image found.  Did find:
	/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/Python: code signature in (/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/Python) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
	/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/Python: stat() failed with errno=7
I guess this doc from Apple is relevant: https://developer.apple.com/documentati ... validation
Is it desirable to avoid completely disabling Library Validation (if possible to do so and still have dynamic loading of Python work) or will you need to disable it?
I'm also confused as to how Python is working on your system if this is indeed the issue. Are you testing on your system with the notarized build?
The latest version of the 5S Project contains over 226,000 spaceships. There is also a GitHub mirror of the collection. Tabulated pages up to period 160 (out of date) are available on the LifeWiki.

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

Re: Golly 4.0

Post by Andrew » November 6th, 2020, 4:33 pm

wildmyron wrote:
November 6th, 2020, 11:42 am
I tried this build and it gives the exact same error text as v4.0.1
Bummer.
I guess this doc from Apple is relevant: https://developer.apple.com/documentati ... validation
That's what I thought. The Info.plist file in the 4.0.2 build has com.apple.security.cs.disable-library-validation set to true, but it doesn't seem to work as advertised. Apple's new security "features" are a frigging mess. They have made software distribution a pain in the neck.
I'm also confused as to how Python is working on your system if this is indeed the issue. Are you testing on your system with the notarized build?
Yes, including when logged in as a different (non-admin) user, so you're not the only one who's confused.

One more thought: In System Preferences > Security & Privacy what is your setting under "Allow apps downloaded from:"? On my system it's "App store and identified developers" so if your setting is different try changing it and see if that makes any difference to Golly 4.0 or 4.0.2.

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

Re: Golly 4.0

Post by Andrew » November 6th, 2020, 7:23 pm

@wildmyron: Please try this build:

http://www.trevorrow.com/golly/Golly-4.0.3-Mac.dmg

Further googling indicated that the com.apple.security.cs.disable-library-validation setting must be embedded in the code signature rather than in Info.plist, so hopefully the above build will work.

wildmyron
Posts: 1490
Joined: August 9th, 2013, 12:45 am
Location: Western Australia

Re: Golly 4.0

Post by wildmyron » November 6th, 2020, 8:52 pm

Andrew wrote:
November 6th, 2020, 4:33 pm
One more thought: In System Preferences > Security & Privacy what is your setting under "Allow apps downloaded from:"? On my system it's "App store and identified developers" so if your setting is different try changing it and see if that makes any difference to Golly 4.0 or 4.0.2.
This setting is the same on my system.
Andrew wrote:
November 6th, 2020, 7:23 pm
@wildmyron: Please try this build:

http://www.trevorrow.com/golly/Golly-4.0.3-Mac.dmg

Further googling indicated that the com.apple.security.cs.disable-library-validation setting must be embedded in the code signature rather than in Info.plist, so hopefully the above build will work.
Yes! This build works. I can run Python scripts using both the official Python 3.9 and Homebrew Python 3.8.
The latest version of the 5S Project contains over 226,000 spaceships. There is also a GitHub mirror of the collection. Tabulated pages up to period 160 (out of date) are available on the LifeWiki.

User avatar
GUYTU6J
Posts: 1217
Joined: August 5th, 2016, 10:27 am
Location: 拆哪!I repeat, CHINA!
Contact:

Re: Golly 4.0

Post by GUYTU6J » November 7th, 2020, 5:46 am

Curious behaviour related to (once again) synthesise_patt_v1.2.py: Golly 4.0 with python 3.9 seems to look up the list of 464,745 collisions twice, yet still finding the same number of results for a given pattern after 929,490 collisions tried.
Lifequote:
Chuangtse wrote: What we love is the mystery of Life. What we hate is corruption in death. But the corruptible in its turn becomes mysterious life, and this mysterious life once more becomes corruptible.

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

Re: Golly 4.0

Post by Andrew » November 7th, 2020, 7:28 pm

wildmyron wrote:
November 6th, 2020, 8:52 pm
Yes! This build works. I can run Python scripts using both the official Python 3.9 and Homebrew Python 3.8.
Excellent! Thanks for doing all that testing (incredibly annoying that I can't test the dmg files properly by myself!).
Good to know that the Homebrew version of Python 3.8 also works fine.

Later today I'll replace the 4.0 dmg file on sourceforge with a new build (probably called version 4.0.1).

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

Re: Golly 4.0

Post by Andrew » November 7th, 2020, 8:51 pm

Golly 4.0.1 for macOS is now available from sourceforge:

https://sourceforge.net/projects/golly/ ... golly-4.0/

This version fixes 2 problems in the 4.0 macOS version:
1. Golly could not run any Python scripts.
2. Switching to Dark mode caused some text to become unreadable.

Please let me know ASAP if you have any problems using 4.0.1.

wildmyron
Posts: 1490
Joined: August 9th, 2013, 12:45 am
Location: Western Australia

Re: Golly 4.0

Post by wildmyron » November 8th, 2020, 2:57 am

Andrew wrote:
November 7th, 2020, 8:51 pm
Golly 4.0.1 for macOS is now available from sourceforge:

https://sourceforge.net/projects/golly/ ... golly-4.0/

This version fixes 2 problems in the 4.0 macOS version:
1. Golly could not run any Python scripts.
2. Switching to Dark mode caused some text to become unreadable.

Please let me know ASAP if you have any problems using 4.0.1.
Hi Andrew,

No problems using Golly v4.0.1 downloaded from SF:
- Python scripts working correctly
- When switching to Dark Theme Golly opts out and all text is readable in main Golly Window and other dialogs

I haven't had a chance to do much testing, but I didn't see any further problems.
The latest version of the 5S Project contains over 226,000 spaceships. There is also a GitHub mirror of the collection. Tabulated pages up to period 160 (out of date) are available on the LifeWiki.

User avatar
LuxiusGOLFireFox
Posts: 13
Joined: November 16th, 2020, 5:57 pm

Re: Golly 4.0

Post by LuxiusGOLFireFox » November 21st, 2020, 1:08 pm

bubblegum wrote:
November 1st, 2020, 2:29 pm
The main reason I use Golly 3.x over Golly 4.0 still is because Golly 4.0's font looks terrible. Could there be an option to change it?
wdym? it looks the same.

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

Re: Golly 4.0

Post by bubblegum » November 21st, 2020, 1:40 pm

LuxiusGOLFireFox wrote:
November 21st, 2020, 1:08 pm
bubblegum wrote:
November 1st, 2020, 2:29 pm
The main reason I use Golly 3.x over Golly 4.0 still is because Golly 4.0's font looks terrible. Could there be an option to change it?
wdym? it looks the same.
aaa my eyes are better than i'd like again
Each day is a hidden opportunity, a frozen waterfall that's waiting to be realised, and one that I'll probably be ignoring
bubblegum wrote:
July 2nd, 2020, 8:33 pm
conwaylife signatures are amazing[citation needed]
part-time stator reducer

Post Reply