Documentation du Dr FRAPPE

Ce wiki regroupe les résultats de mes expériences en informatique accumulés au cours de mes recherches sur le net.

Dans la mesure du possible, j'ai cité mes sources ; il en manque certainement… :-)

Gourmet Recipe manager : gestionnaire de recettes de cuisine

Introduction

Pré-requis

Installation

Le module Impression et exportation en PDF ne fonctionne plus.

Depuis la version 18.04, Ubuntu n'a plus le fichier print_plugin.py nécessaire à l'exportation PDF dans gourmet.

Pour retrouver cette fonctionnalité,

  1. Créez le répertoire de téléchargement et allez-y :

    ...@...:~ $ mkdir -p ~/Téléchargements/gourmet
    ...@...:~ $ cd ~/Téléchargements/gourmet/
    ...@...:~/Téléchargements/gourmet$ 

  2. Téléchargez :
    1. ...@...:~/Téléchargements/gourmet$ wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gourmet/gourmet_0.17.4-7_all.deb
      ...@...:~/Téléchargements/gourmet$ wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-6_amd64.deb
      ...@...:~/Téléchargements/gourmet$ wget http://security.ubuntu.com/ubuntu/pool/universe/p/python-reportlab/python-reportlab_3.5.23-1ubuntu0.1_all.deb
      ...@...:~/Téléchargements/gourmet$ wget http://security.ubuntu.com/ubuntu/pool/universe/p/python-reportlab/python-reportlab-accel_3.5.23-1ubuntu0.1_amd64.deb
      ...@...:~/Téléchargements/gourmet$ wget http://archive.ubuntu.com/ubuntu/pool/universe/e/elib.intl/python-elib.intl_0.0.3~git20110809-5_all.deb
      ...@...:~/Téléchargements/gourmet$ wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtkspellcheck/python-gtkspellcheck_4.0.5-1_all.deb
      ...@...:~/Téléchargements/gourmet$ wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pyenchant/python-enchant_2.0.0-1_all.deb
      ...@...:~/Téléchargements/gourmet$ wget http://archive.ubuntu.com/ubuntu/pool/universe/p/python-mechanize/python-mechanize_0.2.5-3_all.deb
      ...@...:~/Téléchargements/gourmet$ wget http://archive.ubuntu.com/ubuntu/pool/universe/b/beautifulsoup/python-beautifulsoup_3.2.1-1_all.deb

  1. Sur http://archive.ubuntu.com/ubuntu/pool/universe/g/gourmet/, téléchargez gourmet (gourmet_0.17.4-7_all.deb)
  2. Sur http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/, téléchargez python-gtk2 (python-gtk2_2.24.0-6_amd64.deb)
  3. Sur http://security.ubuntu.com/ubuntu/pool/universe/p/python-reportlab/, téléchargez python-reportlab (python-reportlab_3.5.23-1ubuntu0.1_all.deb)
  4. Sur http://archive.ubuntu.com/ubuntu/pool/universe/e/elib.intl/, téléchargez python-elib.intl (python-elib.intl_0.0.3~git20110809-5_all.deb)
  5. Sur http://security.ubuntu.com/ubuntu/pool/universe/p/python-reportlab/, téléchargez python-reportlab-accel (python-reportlab-accel_3.5.23-1ubuntu0.1_amd64.deb)
  6. Sur http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtkspellcheck/, téléchargez python-gtkspellcheck (python-gtkspellcheck_4.0.5-1_all.deb)
  7. Sur http://archive.ubuntu.com/ubuntu/pool/universe/p/pyenchant/, téléchargez python-enchant (python-enchant_2.0.0-1_all.deb)
  8. Sur http://archive.ubuntu.com/ubuntu/pool/universe/p/python-mechanize/, téléchargez python-mechanize (python-mechanize_0.2.5-3_all.deb)
  9. Sur http://archive.ubuntu.com/ubuntu/pool/universe/b/beautifulsoup/, téléchargez python-beautifulsoup (python-beautifulsoup_3.2.1-1_all.deb)
  1. Sur http://security.ubuntu.com/ubuntu/pool/universe/p/pillow/, chargez python-imaging (python-imaging_3.1.2-0ubuntu1_all.deb)
  2. Sur http://mirrors.kernel.org/ubuntu/pool/universe/g/gourmet/, chargez gourmet (gourmet_0.17.4-3_all.deb)
  3. Sur http://mirrors.kernel.org/ubuntu/pool/universe/p/python-poppler/, chargez python-poppler (python-poppler_0.12.1-10_amd64.deb)
  • téléchargez et installez les packages à partir du référentiel LTS 16.04 avec les commandes ci-dessous :

mkdir -p ~/Téléchargements/gourmet :~$

...@...:~ $ cd ~/Téléchargements/gourmet/
:~/Téléchargements/gourmet$ wget http://security.ubuntu.com/ubuntu/pool/universe/p/pillow/python-imaging_3.1.2-0ubuntu1_all.deb
:~/Téléchargements/gourmet$ wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gourmet/gourmet_0.17.4-3_all.deb
:~/Téléchargements/gourmet$ wget http://mirrors.kernel.org/ubuntu/pool/universe/p/python-poppler/python-poppler_0.12.1-10_amd64.deb
:~/Téléchargements/gourmet$ sudo apt install -y ./python-imaging_3.1.2-0ubuntu1_all.deb
:~/Téléchargements/gourmet$ sudo apt install -y ./python-poppler_0.12.1-10_amd64.deb
:~/Téléchargements/gourmet$ sudo apt install -y ./gourmet_0.17.4-3_all.deb
...@...:~ $ mkdir -p ~/Downloads/gourmet
cd ~/Downloads/gourmet

wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gourmet/gourmet_0.17.4-7_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-6_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/p/python-reportlab/python-reportlab_3.5.23-1ubuntu0.1_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/e/elib.intl/python-elib.intl_0.0.3~git20110809-5_all.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/p/python-reportlab/python-reportlab-accel_3.5.23-1ubuntu0.1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtkspellcheck/python-gtkspellcheck_4.0.5-1_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pyenchant/python-enchant_2.0.0-1_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/python-mechanize/python-mechanize_0.2.5-3_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/b/beautifulsoup/python-beautifulsoup_3.2.1-1_all.deb

sudo apt-get install ./*.deb
  • Bloquez la mise à jour du package gourmet :

    :~/Téléchargements/gourmet$ sudo apt-mark hold gourmet

Pour débloquer :

:~/Téléchargements/gourmet$ sudo apt-mark unhold gourmet
  • Enfin, ouvrez Gourmet, cliquez sur Préférences/Extensions, onglet Importation et Exportation et activez le plug-in d'impression et d'exportation PDF s'il n'est pas activé.

L'impression fonctionnera alors comme prévu.

Si cela ne fonctionne pas, allez dans Préférences/Préférences désactivez l'information nutritionnelle si elle est activée

Configuration

Activez les extensions suivantes (Préférences/extensions) :

  • Outils : tous
  • Importation/exportation :
    • Importation texte brut
    • Exportation html
    • Importation de sites
    • Impression et exportation en pdf (pour pouvoir imprimer)
    • Importation depuis une page sur le toile
  • Principal :
    • Afficher les recettes
    • L'information nutritionnelle ne semble pas marcher…

Utilisation

Problèmes et solutions

Désinstallation

Voir aussi

QR Code
QR Code Gourmet Recipe manager : gestionnaire de recettes de cuisine (generated for current page)