Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Qgis 3.10.8+: CanFlood Import Error #46

Closed
petecampbel opened this issue Aug 18, 2020 · 6 comments
Closed

Qgis 3.10.8+: CanFlood Import Error #46

petecampbel opened this issue Aug 18, 2020 · 6 comments
Labels

Comments

@petecampbel
Copy link

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

@cefect
Copy link
Collaborator

cefect commented Aug 19, 2020

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

@petecampbel
Copy link
Author

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.

@cefect
Copy link
Collaborator

cefect commented Aug 19, 2020

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

@cefect
Copy link
Collaborator

cefect commented Aug 19, 2020

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.

@cefect
Copy link
Collaborator

cefect commented Aug 19, 2020

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.

@cefect cefect changed the title CanFlood loading error Qgis 3.10.8+: Import Error Aug 19, 2020
@cefect cefect changed the title Qgis 3.10.8+: Import Error Qgis 3.10.8+: CanFlood Import Error Aug 19, 2020
@cefect cefect pinned this issue Aug 19, 2020
@cefect
Copy link
Collaborator

cefect commented Nov 24, 2020

Problem has been resolved in QGIS 3.10.12

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants