NRCan / CanFlood

Flood Risk modelling toolbox for Canada
MIT License
29 stars 7 forks source link

[CLOSED] Qgis 3.10.8+: CanFlood Import Error #4

Closed dhanyatha-harish-ibigroup closed 3 years ago

dhanyatha-harish-ibigroup commented 3 years ago

Issue by petecampbel Tuesday Aug 18, 2020 at 22:39 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT Originally opened as https://github.com/IBIGroupCanWest/CanFlood/issues/46


Running QGIS 3.10 A Coruna. Installed all python plugins using OSGeo4W.bat and the latest CanFlood plugin (CanFlood_031_20200415.zip) within QGIS. CanFlood installs but then returns an error message and won't load. Canflood error1 Canflood error2

dhanyatha-harish-ibigroup commented 3 years ago

Comment by cefect Wednesday Aug 19, 2020 at 00:13 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


Hi Pete, It looks like something is broken on your install (specifically with scipy). Probably the PATH variable isn't pointing to the correct DLLs. You mentioned you 'Installed all python plugins using OSGeo4W.bat' (I assume you mean 'packages' not 'plugins'). Installing from this command line can be tricky.. and may be why things are not lining up (I usually only have people go to the command line to troubleshoot dependency problems on specific packages). Alternatively, this may also be a problem with having multiple QGIS versions installed.

If you really want to dive down the rabbit hole, you could try to trouble shoot this further by with running the following in first OSGeo4W.bat and then in Qgis' builtin console:

import scipy

However, you're probably better off just: 1) uninstalling ALL qgis versions; then 2) installing Qgis 3.10 from the OSGeo4W installer per the instructions here.

Let me know how it goes

dhanyatha-harish-ibigroup commented 3 years ago

Comment by petecampbel Wednesday Aug 19, 2020 at 00:19 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


Thanks for looking at this. I've already tried doing a full uninstall of QGIS and reinstalling following those instructions - it gave the same result and the error message posted above.

dhanyatha-harish-ibigroup commented 3 years ago

Comment by cefect Wednesday Aug 19, 2020 at 00:27 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


Hi Pete, I just re-read the install instructions and it seems they did not define 'advanced install' well. I've updated these to clarify that the preferred method is the OSGeo4W Network Installer as described here. Sorry for the confusion.

Is this how you managed your install?

If so, please try running the following in first OSGeo4W.bat and then in Qgis' builtin console and sending me the error message: import scipy

dhanyatha-harish-ibigroup commented 3 years ago

Comment by cefect Wednesday Aug 19, 2020 at 00:41 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


Scratch that. I just updated to 3.10.9 (which was released this week) and am getting the same error. Try installing LTR 3.10.8 (or some older version using the OSGeo4W installer) while I try and figure out what the brake is with 3.10.9. (note, CanFlood was developed/tested on 3.10.3 per in the install instructions).

Sorry I didn't catch this sooner.

dhanyatha-harish-ibigroup commented 3 years ago

Comment by cefect Wednesday Aug 19, 2020 at 16:34 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


I did some unsuccessful digging/testing and it sounds like the 3.10.9 has broken some backends for scipy. I've submitted a ticket to the Qgis project to hopefully get this fixed.

In the meantime, you'll have to uninstall and then install an older version of Qgis. For this, it's probably easier to use the standalone installer (rather than the OSGeo4w network installer) by selecting the relevant 3.10.8 release listed here. (e.g. QGIS-OSGeo4W-3.10.8-1-Setup-x86_64.exe). Note this may make managing python package versions more difficult.

dhanyatha-harish-ibigroup commented 3 years ago

Comment by cefect Tuesday Nov 24, 2020 at 00:30 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


Problem has been resolved in QGIS 3.10.12