'import Quartz' to work on macOS 15 with MacPorts Python 3.12

Christopher Jones jonesc at hep.phy.cam.ac.uk
Thu Oct 17 09:03:49 UTC 2024


fails for me as well on macOS15(arm64).

> On 16 Oct 2024, at 12:12 pm, Nils Breunese <breun at macports.org> wrote:
> 
> Interesting, thanks for checking. Anyone else on macOS 15 who could check if this works or not?
> 
> I’ve also tried bumping PyObjC to the latest version (10.3.1), but the import still doesn’t work for me on macOS 15.
> 
> Nils.
> 
>> Op 15 okt 2024, om 20:55 heeft Marc Wilson <posguy99 at gmail.com> het volgende geschreven:
>> 
>> Works here.  This is Python 3.12 on Ventura 13.7
>> 
>> $ sudo port install py312-pyobjc
>> --->  Computing dependencies for py312-pyobjc
>> --->  Cleaning py312-pyobjc
>> --->  Scanning binaries for linking errors
>> --->  No broken files found.
>> --->  No broken ports found.
>> $ python3.12
>> Python 3.12.7 (main, Oct  5 2024, 07:47:38) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> import Quartz
>>>>> ^D
>> [11:52 AM][ttys001 +1][~]
>> $ 
>> 
>> -- 
>> Marc Wilson
>> posguy99 at gmail.com
>> 
>> On Sun, Oct 13, 2024, at 2:40 AM, Nils Breunese wrote:
>>> Hello,
>>> 
>>> I’m trying to get the osxphotos port to work on macOS 15, but I’m not 
>>> super familiar with Python and running it fails with this error:
>>> 
>>> ❯ osxphotos version
>>> Traceback (most recent call last):
>>> File "/opt/local/bin/osxphotos", line 5, in <module>
>>>   from osxphotos.__main__ import cli_main
>>> File 
>>> "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/osxphotos/__init__.py", 
>>> line 13, in <module>
>>>   from .exifwriter import ExifWriter
>>> File 
>>> "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/osxphotos/exifwriter.py", 
>>> line 18, in <module>
>>>   from .exportoptions import ExportOptions
>>> File 
>>> "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/osxphotos/exportoptions.py", 
>>> line 10, in <module>
>>>   from .export_db import ExportDB
>>> File 
>>> "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/osxphotos/export_db.py", 
>>> line 29, in <module>
>>>   from .fileutil import FileUtil
>>> File 
>>> "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/osxphotos/fileutil.py", 
>>> line 12, in <module>
>>>   from .imageconverter import ImageConverter
>>> File 
>>> "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/osxphotos/imageconverter.py", 
>>> line 18, in <module>
>>>   import Quartz
>>> ModuleNotFoundError: No module named ‘Quartz'
>>> 
>>> I have the Python 3.12 and the matching PyObjC ports installed:
>>> 
>>> ~ ❯ port installed python312
>>> The following ports are currently installed:
>>> python312 @3.12.7_0+lto+optimizations (active)
>>> ~ ❯ port installed py312-pyobjc
>>> The following ports are currently installed:
>>> py312-pyobjc @10.1_0 (active)
>>> 
>>> As far as I know the py312-pyobjc port should provide this Quartz 
>>> module, but this doesn’t work on my machine:
>>> 
>>> ~ ❯ /opt/local/bin/python3.12
>>> Python 3.12.7 (main, Oct  5 2024, 01:39:55) [Clang 16.0.0 
>>> (clang-1600.0.26.3)] on darwin
>>> Type "help", "copyright", "credits" or "license" for more information.
>>>>>> import Quartz
>>> Traceback (most recent call last):
>>> File "<stdin>", line 1, in <module>
>>> ModuleNotFoundError: No module named ‘Quartz'
>>> 
>>> Does anyone know if this should work, or if I need any additional 
>>> dependencies to get ‘import Quartz’ to work on macOS 15 with MacPorts 
>>> Python 3.12?
>>> 
>>> Thanks, Nils.
> 



More information about the macports-dev mailing list