Hi everyone,
I'm trying to use the Mascaret plugin in QGIS, but I’m getting the following error when I try to load it:
AttributeError: module 'PyQt5.QtWidgets' has no attribute 'QgsDockWidget'
I’m running QGIS 3.34 with Python 3.11 in a Conda environment on Linux. I’ve checked the source files, and it seems the plugin is trying to load a .ui file where the base widget is QgsDockWidget, but this class is not part of PyQt5.QtWidgets, which leads to the crash.
If I understand correctly, QgsDockWidget belongs to the qgis.gui module, and cannot be referenced directly in .ui files interpreted by PyQt5.uic.
Has anyone faced this issue? What’s the best way to fix it — should I modify the .ui file, or is there a workaround for using QgsDockWidget in this context?
Thanks in advance!