isogeo/isogeo-plugin-qgis

Activation impossible sur Ubuntu 22.04 avec Python 3.10.3

jgrosmaire opened this issue · 3 comments

Environnement

  • Version de QGIS : 3.22.4 (3.22.10+36jammy)
  • Version du plugin isogeo : 3.0.4
  • Installation de QGIS : Installation en ligne de commande avec les commandes suivantes :
sudo apt-get update
sudo apt-get -y install qgis

(python3-qgis, qgis-plugin-grass s'installent par défaut)

  • Système d'exploitation : Ubuntu 22.04.1 LTS
  • Architecture processeur : 64 bits
  • Machine virtuelle VirtualBox

Reproduire

  1. Lancer QGIS en terminal qgis
  2. Ouvrir le gestionnaire d'extension
  3. Charger le plugin d'une des manières suivantes :
    • Depuis le zip
    • Depuis le gestionnaire d'extension directement

Comportement observé

QGIS plante avec le message suivant dans le terminal :

Info: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
<string>:1: DeprecationWarning: setapi() is deprecated
WARNING:IsogeoQgisPlugin:Depencencies - HTTPError not within owslib. Directly imported from urllib.error
INFO:IsogeoQgisPlugin:

	========== Isogeo Search Engine for QGIS ==========
INFO:IsogeoQgisPlugin:OS: Linux-5.15.0-46-generic-x86_64-with-glibc2.35
INFO:IsogeoQgisPlugin:QGIS Version: 3.22.4-Białowieża
INFO:IsogeoQgisPlugin:Python version: 3.10.4
INFO:IsogeoQgisPlugin:Plugin version: 3.4.0
INFO:IsogeoQgisPlugin:Log level: 20
INFO:IsogeoQgisPlugin:Screen: 1/1 - Size: 960x1920
INFO:IsogeoQgisPlugin:Language applied: en
WARNING:IsogeoQgisPlugin:config.json file can't be used : /home/julie/.local/share/QGIS/QGIS3/profiles/default/python/plugins/isogeo_search_engine/config.json doesn't exist or is not a file : [Errno 2] No such file or directory: '/home/julie/.local/share/QGIS/QGIS3/profiles/default/python/plugins/isogeo_search_engine/config.json'
WARNING:IsogeoQgisPlugin:Let's create one with default values: /home/julie/.local/share/QGIS/QGIS3/profiles/default/python/plugins/isogeo_search_engine/config.json.
Warning: QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 69, 69, 69, 220'
Warning: link #g-4 is undefined!
Warning: link #a-6 is undefined!
Warning: link #b-1 is undefined!
Warning: link #c-3 is undefined!
Warning: link #e-7 is undefined!
Warning: link #b-1 is undefined!
Warning: link #j-7 is undefined!
Warning: link #f-6 is undefined!
Warning: link #i-6 is undefined!
Warning: link #h-0 is undefined!
Warning: link #u is undefined!
Warning: link #t-8 is undefined!
Warning: link #c-3 is undefined!
Warning: link #a-6 is undefined!
Warning: link #d-2 is undefined!
Warning: link #g-4 is undefined!
Warning: link #c-3 is undefined!
Warning: link #f-6 is undefined!
Warning: link #a-6 is undefined!
Warning: link #b-1 is undefined!
Warning: link #a-6 is undefined!
Warning: link #c-3 is undefined!
Warning: link #s-8 is undefined!
Warning: link #a-6 is undefined!
Warning: link #d-2 is undefined!
Warning: link #r-3 is undefined!
Warning: link #e-7 is undefined!
Warning: link #q-5 is undefined!
Warning: link #b-1 is undefined!
Warning: link #p-3 is undefined!
Warning: link #d-2 is undefined!
Warning: link #o-2 is undefined!
Warning: link #n-7 is undefined!
Warning: link #m-1 is undefined!
Warning: link #a-6 is undefined!
Warning: link #d-2 is undefined!
Warning: link #l-0 is undefined!
Warning: link #b-1 is undefined!
Warning: link #k-7 is undefined!
Warning: link #e-7 is undefined!
Warning: link #g-4 is undefined!
Warning: link #a-6 is undefined!
Warning: link #b-1 is undefined!
Warning: link #c-3 is undefined!
Warning: link #e-7 is undefined!
Warning: link #b-1 is undefined!
Warning: link #j-7 is undefined!
Warning: link #f-6 is undefined!
Warning: link #i-6 is undefined!
Warning: link #h-0 is undefined!
Warning: link #u is undefined!
Warning: link #t-8 is undefined!
Warning: link #c-3 is undefined!
Warning: link #a-6 is undefined!
Warning: link #d-2 is undefined!
Warning: link #g-4 is undefined!
Warning: link #c-3 is undefined!
Warning: link #f-6 is undefined!
Warning: link #a-6 is undefined!
Warning: link #b-1 is undefined!
Warning: link #a-6 is undefined!
Warning: link #c-3 is undefined!
Warning: link #s-8 is undefined!
Warning: link #a-6 is undefined!
Warning: link #d-2 is undefined!
Warning: link #r-3 is undefined!
Warning: link #e-7 is undefined!
Warning: link #q-5 is undefined!
Warning: link #b-1 is undefined!
Warning: link #p-3 is undefined!
Warning: link #d-2 is undefined!
Warning: link #o-2 is undefined!
Warning: link #n-7 is undefined!
Warning: link #m-1 is undefined!
Warning: link #a-6 is undefined!
Warning: link #d-2 is undefined!
Warning: link #l-0 is undefined!
Warning: link #b-1 is undefined!
Warning: link #k-7 is undefined!
Warning: link #e-7 is undefined!
Killed

Le plugin a bien été créé dans le dossier des plugins mais il n'est pas possible de l'activer. Si on essaye de l'activer, la même erreur a lieu.

Informations complémentaires

  • Il est possible d'installer d'autres plugins
  • La configuration complète est la suivante
    image
  • Le même comportement (hors écriture terminal) est observé lors d'un lancement manuel de l'application

Même comportement observé avec cette configuration :
image

(même que la machine Azure)

Ok @jgrosmaire donc il s'agirait d'un problème d'OS plutôt que de version de Python si j'ai bien compris ?

Mon deuxième test c'est fait sur exactement le même OS que la machine Ubuntu de Azure (en modifiant la liste des sources d'apt comme décrit dans la doc QGIS) donc vraisemblablement c'est autre chose que l'OS. Mais j'ai aucune raison de croire qu'il y a un problème avec la config de ma VM, QGIS fonctionne parfaitement, j'ai testé plusieurs plugins et aucun n'a causé de soucis.