Hello everyone,
I am seeking assistance with an issue I am experiencing with the QSWATPlus plugin (version 3.1.2) installed in QGIS 3.40.13-Bratislava. The problem is that QSWAT+ becomes unresponsive when I try to open either an existing or a new project, with the error messages I copied below.
I have tried updating the versions of Numpy and Pandas using the OSGeo4W shell to address potential incompatibility issues, but this did not resolve the problem.
If you have any suggestions or solutions, I would greatly appreciate your help.
Thanks,
Evren
Python Errors:
WARNING
Traceback
(most recent call last):
File "C:\Users\..\AppData\Roaming\Python\Python312\site-packages\numpy\core\_multiarray_umath.py",
line 45, in __getattr__
sys.stderr.write(msg + tb_msg)
^^^^^^^^^^^^^^^^
AttributeError: 'NoneType'
object has no attribute 'write'
WARNING
Traceback
(most recent call last):
File
"C:\PROGRA~1/QGIS34~1.13/apps/qgis-ltr/./python/plugins\QSWATPlus\QSWATPlus\QSWATPlusMain.py",
line 212, in run
self.setupProject(proj, False)
File
"C:\PROGRA~1/QGIS34~1.13/apps/qgis-ltr/./python/plugins\QSWATPlus\QSWATPlus\QSWATPlusMain.py",
line 351, in setupProject
self._gv =
GlobalVars(self._iface, QSWATPlus.__version__, self.plugin_dir, isBatch, isHUC,
isHAWQS, logFile)
^^^^^^^^^^
NameError: name 'GlobalVars' is
not defined
WARNING
Traceback
(most recent call last):
File
"C:\PROGRA~1/QGIS34~1.13/apps/qgis-ltr/./python/plugins\QSWATPlus\QSWATPlus\QSWATPlusMain.py",
line 394, in runParams
params = Parameters(self._gv)
^^^^^^^^^^
NameError: name 'Parameters' is
not defined
------------------------------------------------------
QSWAT+ errors:
INFO QSWAT+ failed to import HRUs:
Traceback (most recent call last):
File
"C:\PROGRA~1/QGIS34~1.13/apps/qgis-ltr/./python/plugins\QSWATPlus\QSWATPlus\QSWATPlusMain.py",
line 55, in <module>
from .hrus import HRUs
File
"C:\PROGRA~1/QGIS34~1.13/apps/qgis-ltr/./python\qgis\utils.py", line
1100, in _import
mod = _builtin_import(name,
globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"C:\PROGRA~1/QGIS34~1.13/apps/qgis-ltr/./python/plugins\QSWATPlus\QSWATPlus\hrus.py",
line 50, in <module>
from .polygonizeInC2 import
Polygonize # type: ignore # @UnresolvedImport
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"C:\PROGRA~1/QGIS34~1.13/apps/qgis-ltr/./python\qgis\utils.py", line
1100, in _import
mod = _builtin_import(name,
globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"polygonizeInC2.pyx", line 1, in init QSWATPlus.polygonizeInC2
ValueError: numpy.dtype size
changed, may indicate binary incompatibility. Expected 96 from C header, got 88
from PyObject
INFO QGIS version: 3.40.13-Bratislava; QSWAT+ version: 3.1.2