Welcome, Guest
Username: Password: Remember me

TOPIC: Error Mascaret Plugin Qgis

Error Mascaret Plugin Qgis 2 months 4 weeks ago #46525

  • elfede
  • elfede's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
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!
The administrator has disabled public write access.

Error Mascaret Plugin Qgis 2 months 4 weeks ago #46528

  • Pierre daou
  • Pierre daou's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 1
Hi,

To fix the error in QgsDockWidget, follow these steps in file.

File Attachment:

File Name: fixe.txt
File Size: 0 KB

I had to put the correction in a text file because I was blocked with the content of the message.
This should resolve the issue with the UI. The fix will be included in future versions.
The administrator has disabled public write access.
The following user(s) said Thank You: elfede

Error Mascaret Plugin Qgis 2 months 3 weeks ago #46542

  • elfede
  • elfede's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
The suggestion worked. I just added "import plantform" at the beginning, where the libraries are imported in that folder.

I am truly excited about using the Mascaret model. I am eager to learn how to integrate it into my hydraulic modeling work, and perhaps in the future, I hope to begin learning Fortran so I can contribute custom routines to the plugin.

It would be immensely helpful if a dedicated tutorial were made available to guide users in creating their first model—whether in video format or as a written manual, similar to what was once provided for Fudaa-Mascaret. I believe this would greatly enhance the accessibility and adoption of the plugin, as well as promote the broader use of the Mascaret tools.

From my perspective, Telemac 2D appears to be more extensively documented than Mascaret 1D—perhaps this is indeed the case?

Thanks a lot,
The administrator has disabled public write access.
Moderators: JFourdrinoy

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.