lutraconsulting / qgis-crayfish-plugin

Plotting and manipulating mesh data in QGIS.
http://www.lutraconsulting.co.uk/products/crayfish/
Other
62 stars 24 forks source link

Crayfish plugin crashes QGIS. QGIS 3.22.4-Białowieża #499

Open simonweppe opened 11 months ago

simonweppe commented 11 months ago

Hi there,

I am trying to install the crayfish plugin in qgis 3.22.4, but running into issues. I can find the plugin in the catalog, but when I click on install it will crash qgis.

When I restart qgis, the plugin is here but disabled. I can "re-install" and it say it's successful.

After a restart, if I tick the Crayfish box in plugin list on the left, qgis crashes again.

I can't see any error messages so I'm a bit lost !

I installed qgis using the steps here (Section Debian/Ubuntu Quickstart)

Install info below, happy to provide more details. Note I did have to install pyqtgraph first as suggested in here to move past a first error.

QGIS version | 3.22.4-Białowieża | QGIS code branch | Release 3.22
Qt version | 5.15.3
Python version | 3.10.3
GDAL/OGR version | 3.4.1
PROJ version | 8.2.1
EPSG Registry database version | v10.041 (2021-12-03)
GEOS version | 3.10.2-CAPI-1.16.0
SQLite version | 3.37.2
PostgreSQL client version | 14.2 (Ubuntu 14.2-1)
SpatiaLite version | 5.0.1
QWT version | 6.1.4
QScintilla2 version | 2.11.6
OS version | Ubuntu 22.04.3 LTS

QGIS version3.22.4-Białowieża
QGIS code branch[Release 3.22](https://github.com/qgis/QGIS/tree/release-3_22)
Qt version5.15.3
Python version3.10.3
GDAL/OGR version3.4.1
PROJ version8.2.1
EPSG Registry database versionv10.041 (2021-12-03)
GEOS version3.10.2-CAPI-1.16.0
SQLite version3.37.2
PostgreSQL client version14.2 (Ubuntu 14.2-1)
SpatiaLite version5.0.1
QWT version6.1.4
QScintilla2 version 2.11.6
OS version Ubuntu 22.04.3 LTS
simonweppe commented 11 months ago

same issues with 3.34.0-Prizren

simonweppe commented 11 months ago

I finally got to an error message :

Couldn't load plugin 'crayfish' due to an error when calling its initGui() method 

AttributeError: module 'pyqtgraph' has no attribute 'GraphicsWindow' 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 448, in startPlugin
    plugins[packageName].initGui()
  File "/home/simon/.local/share/QGIS/QGIS3/profiles/default/python/plugins/crayfish/plugin.py", line 96, in initGui
    w = CrayfishPlotWidget(self.plot_dock_widget)
  File "/home/simon/.local/share/QGIS/QGIS3/profiles/default/python/plugins/crayfish/gui/plot_widget.py", line 186, in __init__
    self.gw = pyqtgraph.GraphicsWindow()
AttributeError: module 'pyqtgraph' has no attribute 'GraphicsWindow'

Python version: 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] 
QGIS version: 3.34.0-Prizren Prizren, ffbdd678812 

Python Path:
/home/simon/.local/share/QGIS/QGIS3/profiles/default/python/plugins/basemesh/packages/markdown2-2.3.8-py2.py3-none-any.whl
/home/simon/.local/share/QGIS/QGIS3/profiles/default/python/plugins/basemesh/packages/py2dm-0.2.1-py3-none-any.whl
/usr/share/qgis/python
/home/simon/.local/share/QGIS/QGIS3/profiles/default/python
/home/simon/.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/simon/.local/lib/python3.10/site-packages
/usr/local/lib/python3.10/dist-packages
/usr/lib/python3/dist-packages
/home/simon/.local/share/QGIS/QGIS3/profiles/default/python
/home/simon/.local/share/QGIS/QGIS3/profiles/default/python/plugins/basemesh/algorithms

I did try to play with that pyqtgraph versions...but ended breaking my install and re-install a fresh qgis version, so stopped there :)

Hope you can help @wonder-sk

Many thanks

kermarrecg commented 9 months ago

anyway to overcome that problem? If I reinstall, it geth te same error message

HeatherHillers commented 5 months ago

I am seeing this with a fresh OSGeo4W Network Installer install of the qgis-ltr Prizren:

This version comes with pyqtgraph version 0.13.6

QGIS version 3.34.6-Prizren QGIS code revision 623828f5 Qt version 5.15.13 Python version 3.12.3 GDAL/OGR version 3.8.5 PROJ version 9.4.0 EPSG Registry database version v11.004 (2024-02-24) GEOS version 3.12.1-CAPI-1.18.1 SQLite version 3.45.1 PDAL version 2.6.3 PostgreSQL client version 16.2 SpatiaLite version 5.1.0 QWT version 6.2.0 QScintilla2 version 2.14.1 OS version Windows 10 Version 2009

Active Python plugins db_manager 0.1.20 ev_cat 3.0 processing 2.12.99 AnotherDXF2Shape 1.3.1