User Forum of Software BASEMENT

BASEMENT
Basic Simulation Environment for computation of environmental flow and natural hazard simulation
Laboratory of Hydraulics, Hydrology and Glaciology (VAW)
ETH Zurich
Basement_Logo

You are not logged in.

#1 2021-10-22 14:06:31

sua87
User
From: Bern
Registered: 2017-05-26
Posts: 21

BaseMesh on QGIS 3.16.11 LTR

Hi all

Does anyone else experience problems with BaseMesh (1.4.5 and 2.0) under QGIS 3.16.11 Longterm Release? Since we have received an update in our company, the plugin does not work anymore. The same goes for Crayfish.

Reinstallation seems to work (it says it has been successfull), however the same error keeps showing up.
Thanks for any advice.


2021-10-22T14:55:58     WARNING    Python error : Couldn't load plugin 'BASEmesh' due to an error when calling its classFactory() method See message log (Python Error) for more details.

2021-10-22T14:55:58     WARNING    Python error : Couldn't load plugin 'crayfish' due to an error when calling its classFactory() method See message log (Python Error) for more details.

The cause for the error seems to be:

File "C:\Users/****/AppData/Roaming/QGIS/QGIS3/profiles/default\python/plugins/BASEmesh/ext\pyqtgraph\ptime.py", line 24, in
cstart = systime.clock() ### Required to start the clock in windows
AttributeError: module 'time' has no attribute 'clock'

Last edited by sua87 (2021-10-22 14:10:01)

Offline

#2 2021-10-29 14:09:29

leonhard_s
User
Registered: 2021-06-09
Posts: 10

Re: BaseMesh on QGIS 3.16.11 LTR

Hi sua87

Thank you for the report - it appears that the version of pyqtgraph embedded in BASEmesh v1.4.5 and this version of crayfish is using the time.clock() method, which has been deprecated since Python 3.3 and was eventually removed in Python 3.8.

QGIS 3.10 through 3.14 all used Python 3.7, but QGIS 3.16.11 uses Python 3.9, thus breaking compatibility for these older plugins.

However, this issue should be specific to BASEmesh v1.4.5 as v2.0 no longer uses this dependency. If the issue persists after upgrading, please share the error message for BASEmesh v2 so I can investigate further.

Best regards
Leonhard

Last edited by leonhard_s (2021-10-29 14:10:22)

Offline

#3 2021-11-26 16:19:14

sua87
User
From: Bern
Registered: 2017-05-26
Posts: 21

Re: BaseMesh on QGIS 3.16.11 LTR

Hi Leonhard
Thank you for your answer and suggestion. The error dissappeard for BaseMesh 2.0. However I cannot get Crayfish to work properly. Is this issue known? I know the Basement team isn't responsible for Crayfish but I thought I'd still ask this here to get some advice.
Thanks.

Last edited by sua87 (2021-11-26 16:19:39)

Offline

#4 2021-11-27 09:40:10

leonhard_s
User
Registered: 2021-06-09
Posts: 10

Re: BaseMesh on QGIS 3.16.11 LTR

Hi sua87

Crayfish v3.5.1 and later use a newer version of pyqtgraph and are compatible with Python 3.9. However, they appear to only be available for QGIS 3.18 and higher.
If you cannot upgrade to a more recent version of QGIS, you can try creating an issue in the Crayfish source code repository and ask them to support QGIS 3.16.

Best regards
Leonhard

Offline

Board footer

Powered by FluxBB