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...
Thanks Andrew. Here is the error message after trying to run a Python script with this build: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.)
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
Thanks Andrew. I tried this build and it gives the exact same error text as v4.0.1Andrew 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
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
Bummer.
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 guess this doc from Apple is relevant: https://developer.apple.com/documentati ... validation
Yes, including when logged in as a different (non-admin) user, so you're not the only one who's confused.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?
This setting is the same on my system.Andrew wrote: ↑November 6th, 2020, 4:33 pmOne 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.
Yes! This build works. I can run Python scripts using both the official Python 3.9 and Homebrew Python 3.8.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.
Excellent! Thanks for doing all that testing (incredibly annoying that I can't test the dmg files properly by myself!).
Hi Andrew,Andrew wrote: ↑November 7th, 2020, 8:51 pmGolly 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.
aaa my eyes are better than i'd like again
anythingsonata wrote:July 2nd, 2020, 8:33 pmconwaylife signatures are amazing[citation needed]
Code: Select all
Traceback (most recent call last):
File "wxpython.cpp", line 3, in <module>
File "/Users/gb/Downloads/5S_collection/5S_update.py", line 14, in <module>
import sss
File "5S_collection/sss.py", line 9, in <module>
from string import replace
ImportError: cannot import name 'replace' from 'string' (/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/string.py)
Code: Select all
x = 4, y = 3, rule = B3-q4z5y/S234k5j
2b2o$b2o$2o!
I see google results saying it's deprecated in Python 3 (Really?) A workaround would be `replace = str.replace`.LaundryPizza03 wrote: ↑December 6th, 2020, 9:29 pmMost scripts no longer work in 3.9. But now I can't use them in 3.8, for some reason! For example, a script containing the old replace syntax gave the exact same warning when setting my Python version in Golly back to 3.8:Code: Select all
Traceback (most recent call last): File "wxpython.cpp", line 3, in <module> File "/Users/gb/Downloads/5S_collection/5S_update.py", line 14, in <module> import sss File "5S_collection/sss.py", line 9, in <module> from string import replace ImportError: cannot import name 'replace' from 'string' (/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/string.py)
Yep, I see the same bug on my Mac system. Doesn't seem to happen on Windows or Linux so I suspect this bug is due to the recent changes I made to support Retina displays. I'll make sure this gets fixed in the next release. (BTW, the next Mac release will be a universal binary and so should run significantly faster on Macs with the M1 chip.)
I clicked the Download button and got an ".crdownload" fileAndrew wrote: ↑October 30th, 2020, 8:04 amGolly 4.0 is now available from sourceforge:
https://sourceforge.net/projects/golly/ ... golly-4.0/
See Help > Changes for what's new. Note in particular that Golly now requires Python 3.3 or later to run .py scripts, so all users (including Mac users) will need to download an appropriate 64-bit installer for their platform from https://www.python.org/downloads/. Python 3.9 was recently released and seems to work fine with Golly.
So no problem?ColorfulGalaxy wrote: ↑February 11th, 2021, 7:23 amI clicked the Download button and got an ".crdownload" file
EDIT: It automatically turned into a ".zip" file
No problem, but it looks really weird.Scorbie wrote: ↑February 15th, 2021, 1:45 amSo no problem?ColorfulGalaxy wrote: ↑February 11th, 2021, 7:23 amI clicked the Download button and got an ".crdownload" file
EDIT: It automatically turned into a ".zip" file
I think everything you download is like this.. it first makes that weird thing, and then turns back.ColorfulGalaxy wrote: ↑February 16th, 2021, 2:54 amNo problem, but it looks really weird.Scorbie wrote: ↑February 15th, 2021, 1:45 amSo no problem?ColorfulGalaxy wrote: ↑February 11th, 2021, 7:23 amI clicked the Download button and got an ".crdownload" file
EDIT: It automatically turned into a ".zip" file
This might be bad for impatient people...
It's actually good for impatient people: it makes it harder to try to to open the file before it's finished downloading.