Unresponsive QSWAT+ Plugin

8 views
Skip to first unread message

Evren Soylu

unread,
Dec 15, 2025, 9:36:19 AM (2 days ago) Dec 15
to QSWAT+

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


Chris George

unread,
Dec 15, 2025, 10:22:51 AM (2 days ago) Dec 15
to Evren Soylu, QSWAT+
Looks like you have another installation of Python that has an
incompatible version of Numpy.

Chris

On 12/11/2025 1:25 PM, Evren Soylu wrote:
> 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
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> This message came from outside your organization.
> ZjQcmQRYFpfptBannerEnd
>
> 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
>
>
> --
> 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 visit https://groups.google.com/d/msgid/
> qswatplus/19d0ffcf-167e-48b4-b4ee-9a3c45d1b564n%40googlegroups.com
> <https://urldefense.com/v3/__https://groups.google.com/d/msgid/
> qswatplus/19d0ffcf-167e-48b4-b4ee-9a3c45d1b564n*40googlegroups.com?
> utm_medium=email&utm_source=footer__;JQ!!KwNVnqRv!
> DkmTpUWSDMQX7tWxHN6lJnYVQc17Yty3C44Rk9YagvmaT-
> YL7CSahIRSNAvUifANb5tw0aqWn5jztuNU81c$>.

Reply all
Reply to author
Forward
0 new messages