Aus GTK Python Script eine DMG Datei erstellen

Programmierung für GNOME und GTK+, GUI-Erstellung mit Glade.
Antworten
skywatcher
User
Beiträge: 1
Registriert: Mittwoch 9. Juli 2025, 16:02

Hallo,

ich versuche gerade mit cx_Freeze eine ausführbare Datei unter MacOs zu machen.

Leider gelingt mir das nicht, dass die Datei startet. Ich bekomme als Fehlermeldung:

Code: Alles auswählen

Failed to load shared library 'libgio-2.0.0.dylib' referenced by the typelib: dlopen(libgio-2.0.0.dylib, 0x0009): tried: 'libgio-2.0.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibgio-2.0.0.dylib' (no such file), '/Users/.../Nextcloud/Programmierung/Privat/Python/Quittungsrechner/build/exe.macosx-15.0-arm64-3.13/lib/libgio-2.0.0.dylib' (no such file), '/usr/lib/libgio-2.0.0.dylib' (no such file, not in dyld cache), 'libgio-2.0.0.dylib' (no such file)
Traceback (most recent call last):


...
In der Datei Setup.py gibt es folgenden Inhalt:

Code: Alles auswählen

import cx_Freeze

executables = [cx_Freeze.Executable("Main.py")]

cx_Freeze.setup(
    name="Quittungsrechner",



    options={"build_exe": {"packages":["pip", "attrs", "wheel",  "filelock",  "numpy", "pandas", "matplotlib", "pytz", "idna",
"setuptools", "packaging",
"modulegraph", "py2app", "macholib", "gobject", "altgraph", "six",
"contourpy",

 "pyparsing", "cycler",
"kiwisolver", "autocommand",
"zipp"]}},


    executables = executables
)
Benutzeravatar
__blackjack__
User
Beiträge: 14027
Registriert: Samstag 2. Juni 2018, 10:21
Wohnort: 127.0.0.1
Kontaktdaten:

@skywatcher: Da werden shared libraries fehlen die zur Laufzeit geladen werden. Diese Abhängigkeiten wird man wahrscheinlich manuell ermitteln müssen und irgendwie hinzufügen müssen, so dass die auch mit ausgeliefert werden.
„A life is like a garden. Perfect moments can be had, but not preserved, except in memory. LLAP” — Leonard Nimoy's last tweet.
Antworten