TUFLOW-Support / QGIS-TUFLOW-Plugin

TUFLOW related QGIS Plugins
9 stars 7 forks source link

Python Error v3.1.7 when updating plugin in QGIS #30

Closed ZedeN1 closed 3 months ago

ZedeN1 commented 3 years ago

The plugin version v3.1.7 does not work when downloaded via Plugins in QGIS. This happens both in QGIS 3.18 or 3.12 on Linux or Windows respectively. Python errors attached below.

Plugin works fine when downloaded from GitHub.

System Info Linux ``` QGIS version 3.18.3-Zürich QGIS code revision 735cc85be9 Compiled against Qt 5.12.8 Running against Qt 5.12.8 Compiled against GDAL/OGR 3.0.4 Running against GDAL/OGR 3.0.4 Compiled against GEOS 3.8.0-CAPI-1.13.1 Running against GEOS 3.8.0-CAPI-1.13.1 Compiled against SQLite 3.31.1 Running against SQLite 3.31.1 Compiled against PDAL 2.0.1 Running against PDAL 2.0.1 (git-version: Release) PostgreSQL Client Version 12.6 (Ubuntu 12.6-0ubuntu0.20.04.1) SpatiaLite Version 4.3.0a QWT Version 6.1.4 QScintilla2 Version 2.11.2 Compiled against PROJ 6.3.1 Running against PROJ Rel. 6.3.0, January 1st, 2020 OS Version Ubuntu 20.04.2 LTS ```
Python error Linux ```java 2021-06-17T12:33:46 WARNING Traceback (most recent call last): File "/home/pavel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/tuflowqgis_menu.py", line 478, in openResultsPlottingWindow self.resultsPlottingDock = TuView(self.iface, removeTuview=self.removeTuviewAction, File "/home/pavel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/tuflowqgis_tuviewer/tuflowqgis_tuview.py", line 95, in __init__ self.tuContextMenu.loadPlotMenu(0) File "/home/pavel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/tuflowqgis_tuviewer/tuflowqgis_tumenucontext.py", line 81, in loadPlotMenu self.plotMenu.addAction(viewToolbar.axisFontSize_action) AttributeError: 'ViewToolbar' object has no attribute 'axisFontSize_action' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/pavel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/tuflowqgis_menu.py", line 481, in openResultsPlottingWindow self.resultsPlottingDock = TuView(self.iface) File "/home/pavel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/tuflowqgis_tuviewer/tuflowqgis_tuview.py", line 95, in __init__ self.tuContextMenu.loadPlotMenu(0) File "/home/pavel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/tuflowqgis_tuviewer/tuflowqgis_tumenucontext.py", line 81, in loadPlotMenu self.plotMenu.addAction(viewToolbar.axisFontSize_action) AttributeError: 'ViewToolbar' object has no attribute 'axisFontSize_action' ```
System Info Windows 10 ``` QGIS version 3.12.2-București QGIS code revision 8a1fb33634 Compiled against Qt 5.11.2 Running against Qt 5.11.2 Compiled against GDAL/OGR 3.0.4 Running against GDAL/OGR 3.0.4 Compiled against GEOS 3.8.1-CAPI-1.13.3 Running against GEOS 3.8.1-CAPI-1.13.3 Compiled against SQLite 3.29.0 Running against SQLite 3.29.0 PostgreSQL Client Version 11.5 SpatiaLite Version 4.3.0 QWT Version 6.1.3 QScintilla2 Version 2.10.8 Compiled against PROJ 6.3.1 Running against PROJ Rel. 6.3.1, February 10th, 2020 OS Version Windows 10 (10.0) ```
Python error Windows ```java 2021-06-17T14:39:42 WARNING Traceback (most recent call last): File "C:/Users/Pavel/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\tuflow\tuflowqgis_menu.py", line 479, in openResultsPlottingWindow reloadTuview=self.reloadTuviewAction) File "C:/Users/Pavel/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\tuflow\tuflowqgis_tuviewer\tuflowqgis_tuview.py", line 95, in __init__ self.tuContextMenu.loadPlotMenu(0) File "C:/Users/Pavel/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\tuflow\tuflowqgis_tuviewer\tuflowqgis_tumenucontext.py", line 81, in loadPlotMenu self.plotMenu.addAction(viewToolbar.axisFontSize_action) AttributeError: 'ViewToolbar' object has no attribute 'axisFontSize_action' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:/Users/Pavel/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\tuflow\tuflowqgis_menu.py", line 481, in openResultsPlottingWindow self.resultsPlottingDock = TuView(self.iface) File "C:/Users/Pavel/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\tuflow\tuflowqgis_tuviewer\tuflowqgis_tuview.py", line 95, in __init__ self.tuContextMenu.loadPlotMenu(0) File "C:/Users/Pavel/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\tuflow\tuflowqgis_tuviewer\tuflowqgis_tumenucontext.py", line 81, in loadPlotMenu self.plotMenu.addAction(viewToolbar.axisFontSize_action) AttributeError: 'ViewToolbar' object has no attribute 'axisFontSize_action' ```
TUFLOW-Support commented 3 years ago

Thanks for letting us know. I think I see what the error could be. Do you also get this error in a brand new QGIS workspace? or does the error persist if you restart QGIS after upgrading the plugin?

ZedeN1 commented 3 years ago

The error goes away after QGIS restart on Windows. Haven't checked on Linux

TUFLOW-Support commented 3 years ago

Thanks for checking. My guess is that TUFLOW Viewer isn't unloading properly when the plugin is upgrading. I'll have a closer look.