Opened 5 months ago
Last modified 3 months ago
#73401 new defect
py312-applescript @1.0.3_0 broken by py312-pyobjc update to @12.1_3
| Reported by: | macdeport | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.12.2 |
| Keywords: | Cc: | reneeotten (Renee Otten), macdeport | |
| Port: | py-applescript, py-pyobjc |
Description (last modified by reneeotten (Renee Otten))
The latest upstream version of py-pyobjc does not work correctly on older OSes; if it installs it appears that not all parts are build correctly which results in import errors.
#!/opt/local/bin/python3.12 import applescript
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/CoreFoundation/__init__.py", line 12, in _setup
import objc
ModuleNotFoundError: No module named 'objc'
Attachments (2)
Change History (16)
comment:1 Changed 5 months ago by jmroot (Joshua Root)
| Cc: | reneeotten added |
|---|
comment:3 Changed 5 months ago by reneeotten (Renee Otten)
Yeah, something doesn't work quite right yet on older systems where certain frameworks are missing. I pushed another attempt to fix that yesterday but it doesn't seem enough... I don't have any older systems so it's a bit of trial-and-error... Any help is appreciated!
comment:4 Changed 5 months ago by macdeport
If it helps, everything seems to work with py312-pyobjc @10.3.2_0 You are welcome for test on my Sonoma macOS
comment:5 follow-up: 6 Changed 5 months ago by jmroot (Joshua Root)
It's reasonably easy to set up a VM running macOS versions 12 or later on Apple Silicon. Install UTM, download the IPSW file for the OS version you want, and point UTM to it when you create a new VM.
comment:6 follow-up: 7 Changed 5 months ago by reneeotten (Renee Otten)
Replying to jmroot:
It's reasonably easy to set up a VM running macOS versions 12 or later on Apple Silicon. Install UTM, download the IPSW file for the OS version you want, and point UTM to it when you create a new VM.
I might take a look at that at some point, but am not on Apple Silicon either, so not sure that will work...
comment:7 Changed 5 months ago by macdeport
Replying to reneeotten:
Replying to jmroot:
It's reasonably easy to set up a VM running macOS versions 12 or later on Apple Silicon. Install UTM, download the IPSW file for the OS version you want, and point UTM to it when you create a new VM.
I might take a look at that at some point, but am not on Apple Silicon either, so not sure that will work...
My plate-form is Apple Silicon: let me know what you want to test within the limits of my technical knowledge and time.
comment:8 follow-up: 9 Changed 5 months ago by reneeotten (Renee Otten)
comment:9 Changed 5 months ago by macdeport
Replying to reneeotten:
In d3360614745691ca96ee0c2ebf0a6e3b26514470/macports-ports (master):
The following installed ports are outdated: py312-pyobjc 10.3.2_0 < 12.1_1 $sudo port upgrade outdated ---> Computing dependencies for py312-pyobjc ... ---> Building py312-pyobjc Error: Failed to build py312-pyobjc: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyobjc/py312-pyobjc/main.log for details.
comment:10 Changed 5 months ago by macdeport
| Cc: | macdeport added |
|---|
comment:11 Changed 5 months ago by macdeport
| Keywords: | macOS Sonoma 14.8.3 added |
|---|
comment:12 follow-up: 13 Changed 5 months ago by reneeotten (Renee Otten)
| Description: | modified (diff) |
|---|---|
| Keywords: | macOS Sonoma 14.8.3 removed |
| Port: | py-applescript py-pyobjc added; py312-applescript removed |
comment:13 Changed 3 months ago by macdeport
Replying to reneeotten: Still broken with py312-pyobjc 12.1_3 and macOS Sequoia
comment:14 Changed 3 months ago by macdeport
| Summary: | py312-applescript @1.0.3_0 broken by py312-pyobjc update to @12.1_0 → py312-applescript @1.0.3_0 broken by py312-pyobjc update to @12.1_3 |
|---|---|
| Version: | 2.11.6 → 2.12.2 |

Works for me on Tahoe. What OS version are you on?