nirvn / GamepadNavigation

Gamepad Navigator plugin for QGIS
GNU General Public License v2.0
1 stars 0 forks source link

Can't activate extension due to missing PyQt5.QtQuickWidgets module #1

Closed mapperfr closed 1 year ago

mapperfr commented 1 year ago
Version de QGIS 3.30.0-'s-Hertogenbosch Révision du code f186b8efe0
Version de Qt 5.15.6
Version de Python 3.10.7
Version de GDAL/OGR 3.5.1
Version de Proj 9.0.1
Version de la base de données du registre EPSG v10.064 (2022-05-19)
Version de GEOS 3.11.0-CAPI-1.17.0
Version de SQLite 3.39.3
Version du client PostgreSQL unknown
Version de SpatiaLite 5.0.1
Version de QWT 6.1.4
Version de QScintilla2 2.11.6
Version de l'OS Ubuntu 22.10
       

Extensions Python actives GeoCoding | 2.18 qgiscloud | 3.7.1 qgis_resource_sharing | 1.0.0 GTFS-GO-master | 3.1.1 track_profile_2_web | 1.3 mmqgis | 2021.9.10 qgis-maptiler-plugin | 3.1.1 Qgis2threejs | 2.7.1 kart | 1.0.9 LAStools | 1.4 zoom_level | 0.1 profiletool | 4.2.3 cartogram3 | 3.1.5 koordinates | 1.0.3 qgis2web | 3.16.0 processing | 2.12.99 otbprovider | 2.12.99 grassprovider | 2.12.99 MetaSearch | 0.3.6 db_manager | 0.1.20

Here's the error message I get when trying to activate the plugin:

Impossible de charger l'extension 'GamepadNavigation' provoque une erreur lors de l'appel à sa méthode classFactory()

ModuleNotFoundError: No module named 'PyQt5.QtQuickWidgets' Traceback (most recent call last): File "/usr/lib/python3/dist-packages/qgis/utils.py", line 423, in _startPlugin plugins[packageName] = package.classFactory(iface) File "/home/jeremy/.local/share/QGIS/QGIS3/profiles/default/python/plugins/GamepadNavigation/init.py", line 22, in classFactory from .GamepadNavigation import GamepadNavigationPlugin File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/jeremy/.local/share/QGIS/QGIS3/profiles/default/python/plugins/GamepadNavigation/GamepadNavigation.py", line 35, in from PyQt5.QtQuickWidgets import QQuickWidget File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'PyQt5.QtQuickWidgets'

Version de Python : 3.10.7 (main, Nov 24 2022, 19:45:47) [GCC 12.2.0] Version de QGIS : 3.30.0-'s-Hertogenbosch 's-Hertogenbosch, f186b8efe0

Chemin Python : /home/jeremy/.local/share/QGIS/QGIS3/profiles/default/python/plugins/LAStools /usr/share/qgis/python /home/jeremy/.local/share/QGIS/QGIS3/profiles/default/python /home/jeremy/.local/share/QGIS/QGIS3/profiles/default/python/plugins /usr/share/qgis/python/plugins /usr/lib/python310.zip /usr/lib/python3.10 /usr/lib/python3.10/lib-dynload /home/jeremy/.local/lib/python3.10/site-packages /usr/local/lib/python3.10/dist-packages /usr/lib/python3/dist-packages /home/jeremy/.local/share/QGIS/QGIS3/profiles/default/python /home/jeremy/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis_resource_sharing /home/jeremy/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis_resource_sharing/ext_libs /home/jeremy/.local/share/QGIS/QGIS3/profiles/default/python/plugins/mmqgis/forms /home/jeremy/.local/share/QGIS/QGIS3/profiles/default/python/plugins/vector_tiles_reader/ext-libs /home/jeremy/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis2web /home/jeremy/.local/share/QGIS/QGIS3/profiles/default/python/plugins

However pip install pyqt5 gives the following output:

Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pyqt5 in /usr/lib/python3/dist-packages (5.15.7)
Requirement already satisfied: PyQt5-sip<13,>=12.11 in /usr/lib/python3/dist-packages (from pyqt5) (12.11.0)
nirvn commented 1 year ago

@mapperfr , on linux you'll need to install a couple of required packages. I completely forgot to document this here, if you can take note of all the packages you needed to install and share here afterwards, I'll add to the documentation.

As a starting point, you'll definitively need the python3-pyqt5-qtquick package, as well as the qml-module-gamepad. Installing these two will take care of adding other dependencies, hopefully that should do it.

mapperfr commented 1 year ago

Thanks @nirvn! On Ubuntu I resolved it with

sudo apt install python3-pyqt5.qtquick  

and

sudo apt install qml-module-qtgamepad

(The latter installs libqt5gamepad5 and qml-module-qtgamepad).

I did a quick test, it works as intended now. It's an amazing extension, thanks and congrats!