isogeo / isogeo-plugin-qgis

Isogeo plugin for QGIS
http://help.isogeo.com/qgis/
GNU General Public License v3.0
16 stars 5 forks source link

Activation impossible sur Ubuntu 22.04 avec Python 3.10.3 #435

Open jgrosmaire opened 2 years ago

jgrosmaire commented 2 years ago

Environnement

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

jgrosmaire commented 2 years ago

Même comportement observé avec cette configuration : image

(même que la machine Azure)

SimonSAMPERE commented 2 years ago

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

jgrosmaire commented 2 years ago

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.