If anyone knows what is required to get ‘import Quartz’ to work on MacPorts Python, I’ve created a ticket: https://trac.macports.org/ticket/71103
Nils. > Op 13 okt 2024, om 11:40 heeft Nils Breunese <[email protected]> het > volgende geschreven: > > 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.
