QSWAT+ missing in QGIS

217 views
Skip to first unread message

Nnaemeka King

unread,
Jul 20, 2021, 10:24:19 AM7/20/21
to QSWAT+

Hi,
I installed QGIS 3.16.8 and QSWATPLUSTOOLS 2.0.4.

The QSWAtPLUS is checked on the pluggin menu but it does not show on the Menu bar.

Does anyone know what might be wrong? I am posting  below information from the log messages:

File "C:\Users/kogbu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus3_64\DBUtils.py", line 40, in
              from .dataInC import BasinData, CellData, LSUData, WaterBody # type: ignore @UnresolvedImport
              File "C:\PROGRA~1/QGIS31~1.8/apps/qgis-ltr/./python\qgis\utils.py", line 793, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
             ModuleNotFoundError: No module named 'QSWATPlus3_64.dataInC'
             
             During handling of the above exception, another exception occurred:
             
             Traceback (most recent call last):
              File "C:\Users/kogbu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus3_64\QSWATTopology.py", line 39, in
              from .DBUtils import DBUtils # type: ignore @UnusedImport
              File "C:\PROGRA~1/QGIS31~1.8/apps/qgis-ltr/./python\qgis\utils.py", line 793, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "C:\Users/kogbu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus3_64\DBUtils.py", line 44, in
              from QSWATUtils import QSWATUtils, FileTypes # @UnresolvedImport
              File "C:\PROGRA~1/QGIS31~1.8/apps/qgis-ltr/./python\qgis\utils.py", line 793, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
             ModuleNotFoundError: No module named 'QSWATUtils'
             
             During handling of the above exception, another exception occurred:
             
             Traceback (most recent call last):
              File "C:\Users/kogbu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus3_64\QSWATPlus.py", line 51, in
              from .hrus import HRUs
              File "C:\PROGRA~1/QGIS31~1.8/apps/qgis-ltr/./python\qgis\utils.py", line 793, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "C:\Users/kogbu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus3_64\hrus.py", line 45, in
              from .QSWATTopology import QSWATTopology # type: ignore
              File "C:\PROGRA~1/QGIS31~1.8/apps/qgis-ltr/./python\qgis\utils.py", line 793, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "C:\Users/kogbu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus3_64\QSWATTopology.py", line 45, in
              from QSWATUtils import QSWATUtils, FileTypes, ListFuns # @UnresolvedImport @Reimport
              File "C:\PROGRA~1/QGIS31~1.8/apps/qgis-ltr/./python\qgis\utils.py", line 793, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
             ModuleNotFoundError: No module named 'QSWATUtils'
             

2021-07-20T16:05:02     INFO    Failed to load Cython module: wrong architecture?: Traceback (most recent call last):
              File "C:\Users/kogbu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus3_64\QSWATPlus.py", line 84, in __init__
              from . import dataInC # @UnusedImport
             ImportError: cannot import name 'dataInC' from 'QSWATPlus3_64' (C:\Users/kogbu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus3_64\__init__.py)
            



Haley Kujawa

unread,
Aug 4, 2021, 9:49:17 AM8/4/21
to QSWAT+
I also am having this same issue and getting the same messages when I tried installing the latest version of QGIS and QSWAT+. Any suggestions?

Thanks,
Haley

Chris George

unread,
Aug 4, 2021, 10:10:07 AM8/4/21
to Haley Kujawa, QSWAT+
You need to install the 64 bit version of QGIS: did you install the 32
bit version?
> --
> You received this message because you are subscribed to the Google
> Groups "QSWAT+" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to qswatplus+...@googlegroups.com
> <mailto:qswatplus+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/qswatplus/aeecc579-d326-47c6-aeca-eb6eb36cd8e5n%40googlegroups.com
> <https://groups.google.com/d/msgid/qswatplus/aeecc579-d326-47c6-aeca-eb6eb36cd8e5n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Haley Kujawa

unread,
Aug 5, 2021, 8:04:00 AM8/5/21
to QSWAT+
Ah - that fixed it. Thanks!

Camilo Torres

unread,
Aug 5, 2021, 8:04:00 AM8/5/21
to QSWAT+
Hello,

I was having the same issue but as Chris mentioned in a previous post, this issue occurs in QGIS versions using Python 3.8 (QGIS 3.18, 3.19, and 3.20). If you install the 3.17 version, the problem will be solved.

Camilo

On Wednesday, August 4, 2021 at 10:10:07 AM UTC-4 Chris George wrote:
Reply all
Reply to author
Forward
0 new messages