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)

main.log.zip (81.9 KB) - added by macdeport 5 months ago.
main.log update
main.log-2.zip (126.4 KB) - added by macdeport 3 months ago.
macOS Sequoia

Download all attachments as: .zip

Change History (16)

comment:1 Changed 5 months ago by jmroot (Joshua Root)

Cc: reneeotten added

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

comment:2 Changed 5 months ago by macdeport

Broken on macOS Sonoma 14.8.3

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 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 in reply to:  5 ; 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 in reply to:  6 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 Changed 5 months ago by reneeotten (Renee Otten)

In d3360614745691ca96ee0c2ebf0a6e3b26514470/macports-ports (master):

py-pyobjc: another attempt to troubleshoot/fix older OSes

See: #73401

Changed 5 months ago by macdeport

Attachment: main.log.zip added

main.log update

comment:9 in reply to:  8 Changed 5 months ago by macdeport

Replying to reneeotten:

In d3360614745691ca96ee0c2ebf0a6e3b26514470/macports-ports (master):

py-pyobjc: another attempt to troubleshoot/fix older OSes

See: #73401

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 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 in reply to:  12 Changed 3 months ago by macdeport

Replying to reneeotten: Still broken with py312-pyobjc 12.1_3 and macOS Sequoia

Last edited 3 months ago by macdeport (previous) (diff)

comment:14 Changed 3 months ago by macdeport

Summary: py312-applescript @1.0.3_0 broken by py312-pyobjc update to @12.1_0py312-applescript @1.0.3_0 broken by py312-pyobjc update to @12.1_3
Version: 2.11.62.12.2

Changed 3 months ago by macdeport

Attachment: main.log-2.zip added

macOS Sequoia

Note: See TracTickets for help on using tickets.