swat-model/QSWAT

ImportError at the start

Felagund-89 opened this issue · 0 comments

Hi everyone. After using QGIS 3.34.11 Prizren and QSWAT3_12 without a problem for over two months, I encountered an error upon entering the software, which caused the SWAT button to disappear too. The error message is as follows:

2024-09-23T11:03:33 INFO QSWAT failed to import Visualise: Traceback (most recent call last):
File "C:\Users/BARU74/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWAT3_12\QSWAT\qswat.py", line 68, in
from .visualise import Visualise # type: ignore # @UnresolvedImport
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\PROGRA1/QGIS331.9/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/BARU74/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWAT3_12\QSWAT\visualise.py", line 63, in
from .jenks import jenks # type: ignore # @UnresolvedImport
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\PROGRA1/QGIS331.9/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "jenks.pyx", line 1, in init QSWAT3.QSWAT.jenks
ImportError: numpy.core.multiarray failed to import (auto-generated because you didn't call 'numpy.import_array()' after cimporting numpy; use 'numpy._import_array' to disable if you are certain you don't need it).

2024-09-23T11:03:33 INFO Failed to load Cython module: wrong architecture?

I am not sure if this issue originated from QGIS or QSWAT, but I could not figure out what to do, so any help on solving this error is most welcome.
error screen message
qswat plugin