Du hast Recht. Offenbar wird die alte Python3.10 Umgebung verwendet und nicht die bei mir installierte neuere Version. Da hat der Programmierer offenbar noch einen zu beseitigenden Fehler, den man ihm aber bereits gemeldet hat (siehe: https://github.com/GourmandRecipeManager/gourmand/issues/196).
Bis der Programmierer die üblichen Python Versionsprobleme bereinigt hat, kannst du einen Versuch wagen, die alten Rezepte zu übernehmen. Voraussetzung ist, dass die alte Datenbank mit deinen Rezepten sich nicht von der Struktur der neuen wesentlich unterscheidet. Da ich deine Datenbank nicht kenne, kannst nur du dies feststellen, weshalb ich den folgenden Versuch vorschlage.
Ich habe daher mal die github Version per flatpak installiert und aufgerufen:
$ # hole Paket
$ wget -o /dev/null https://github.com/GourmandRecipeManager/gourmand/releases/download/1.1.0/gourmand-1.1.0.flatpak
$ # und nun bei mir im "--user" Mode installieren (muss bei dir nicht gemacht werden)
$ flatpak install --user gourmand-1.1.0.flatpak
Required runtime for io.github.GourmandRecipeManager.Gourmand/x86_64/master (runtime/org.gnome.Platform/x86_64/46) found in remote flathub
Möchten Sie es installieren? [Y/n]:
Info: runtime org.gnome.Platform branch 46 is end-of-life, with reason:
The GNOME 46 runtime is no longer supported as of April 17, 2025. Please ask your application developer to migrate to a supported platform.
Info: applications using this runtime:
KENNUNG Zweig Op Gegenstelle Herunterladen
1. [✓] org.freedesktop.Platform.GL.default 23.08 i flathub 169,2 MB / 169,7 MB
2. [✓] org.freedesktop.Platform.GL.default 23.08-extra i flathub 23,7 MB / 169,7 MB
3. [✓] org.freedesktop.Platform.VAAPI.Intel 23.08 i flathub 13,4 MB / 13,6 MB
4. [✓] org.freedesktop.Platform.openh264 2.4.1 i flathub 920,7 KB / 976,5 KB
5. [✓] org.gnome.Platform.Locale 46 i flathub 24,3 MB / 379,7 MB
6. [✓] org.gtk.Gtk3theme.Greybird 3.22 i flathub 54,1 KB / 91,8 KB
7. [✓] org.gnome.Platform 46 i flathub 309,2 MB / 364,4 MB
8. [✓] io.github.GourmandRecipeManager.Gourmand master i gourmand-origin 0 Bytes
Installation abgeschlossen.
$ # nun die Applikation starten
$ flatpak run io.github.GourmandRecipeManager.Gourmand
args = Namespace(db_url='', threads=False, gourmanddir='', thread_debug_interval=5.0, thread_debug=False, debug_file='', time=False, debug=None)
** (process:40794): WARNING **: 18:36:20.866: Error writing credentials to socket: Fehler beim Senden der Nachricht: Datenübergabe unterbrochen (broken pipe)
First time? We're setting you up with yummy recipes.
Plugin html_plugin not found
Plugin archive_plugin not found
(gourmand:2): Gtk-WARNING **: 18:36:22.012: Unable to parse accelerator '<Strg>B' for action 'ItemToShoppingList'
(gourmand:2): Gtk-WARNING **: 18:36:22.012: Unable to parse accelerator '<Strg>D' for action 'ItemToPantry'
(gourmand:2): Gtk-WARNING **: 18:36:22.021: Unable to parse accelerator '<Strg>B' for action 'ItemToShoppingList'
(gourmand:2): Gtk-WARNING **: 18:36:22.021: Unable to parse accelerator '<Strg>D' for action 'ItemToPantry'
DEBUG: /app/lib/python3.10/site-packages/gourmand/Undo.py: 488 gui_update
DEBUG: /app/lib/python3.10/site-packages/gourmand/Undo.py: 512 Nothing to undo, desensitizing widgets
DEBUG: /app/lib/python3.10/site-packages/gourmand/Undo.py: 482 set_sensitive
DEBUG: /app/lib/python3.10/site-packages/gourmand/Undo.py: 482 set_sensitive
DEBUG: /app/lib/python3.10/site-packages/gourmand/Undo.py: 482 set_sensitive
....
Nach Strg-M (Import Recipe)
....
Traceback (most recent call last):
File "/app/lib/python3.10/site-packages/gourmand/main.py", line 644, in do_import
self.importManager.offer_import(parent=self.app.get_toplevel())
File "/app/lib/python3.10/site-packages/gourmand/importers/importManager.py", line 59, in offer_import
uris = de.get_uri(
File "/app/lib/python3.10/site-packages/gourmand/gtk_extras/dialog_extras.py", line 1209, in get_uri
d = URIDialog(*args, **kwargs)
File "/app/lib/python3.10/site-packages/gourmand/gtk_extras/dialog_extras.py", line 1134, in __init__
self.entry = ValidatingEntry()
File "/app/lib/python3.10/site-packages/gourmand/gtk_extras/validation.py", line 41, in __init__
self.add(self.warning_box)
RuntimeError: object at 0x719c7da5c600 of type ValidatingEntry is not initialized
....
An obiger Meldung siehst du, warum der Import noch nicht funktioniert.
Ich habe dann noch manuell ein neues Rezept "Müsli" erfasst.
Nach Strg-Q (Beenden)
....
Die Idee ist, die alte Datenbank für die neue Applikation bereit zu stellen. Die Flatpak Applikation speichert alle Daten unter dem "~/.vat/app/" Zweig. Die alte (deb) Applikation legt die Datenbank normalerweise unter "~/.local/share/gourmand/" ab.
$ cd ~/.var/app/io.github.GourmandRecipeManager.Gourmand/data/gourmand
$ ls -sh1
insgesamt 148K
4,0K preferences.toml
144K recipes.db
$ # neue db sichern und alte in dieses Verzeichnis kopieren
$ mv recipes.db recipes.db.sav
$ cp -p ~/.local/share/gourmand/recipes.db .
$ ls -sh1
insgesamt 292K
4,0K preferences.toml
144K recipes.db
144K recipes.db.sav
$ # Prüfe die Inhalte alt und neu (.db.sav)
$ sqlite3 recipes.db 'select title from recipe;'
Patti's Sourdough
Hong Kong Milk Tea Ice Cream
$ sqlite3 recipes.db.sav 'select title from recipe;'
Patti's Sourdough
Hong Kong Milk Tea Ice Cream
Müsli
$
Nach erneutem Starten (flatpak run io.github.GourmandRecipeManager.Gourmand) werden die alten Rezepte gefunden. Wenn nicht, ist dieser Versuch gescheitert.