HRU creating error

13 views
Skip to first unread message

Mayu Mizutani

unread,
Nov 3, 2025, 10:10:55 AMNov 3
to QSWAT
Hello, I am trying to make my HRU step, and I got the following error message for Python:

Can someone help me debug?


             

2025-10-31T18:04:33     WARNING    Traceback (most recent call last):
              File "C:\Users/mayum/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus\QSWATPlus\hrus.py", line 5598, in readFiles
              self.CreateHRUs.printBasins(False, None)
              File "C:\Users/mayum/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus\QSWATPlus\hrus.py", line 3110, in printBasins
              self.printBasinsDetails(basinHa, False, fw, None, fullHRUsLayer, horizLine)
              File "C:\Users/mayum/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus\QSWATPlus\hrus.py", line 3162, in printBasinsDetails
              basinData = self.basins[basin]
              ~~~~~~~~~~~^^^^^^^
             KeyError: 1361
             

Chris George

unread,
Nov 3, 2025, 12:22:19 PMNov 3
to Mayu Mizutani, QSWAT
Di you get any error messages earlier?

If not, send me a zip of your project file and I will investigate.

Chris


On 10/31/2025 10:11 PM, Mayu Mizutani wrote:
> Hello, I am trying to make my HRU step, and I got the following error
> message for Python: Can someone help me debug?
> 2025-10-31T18: 04: 33     WARNING    Traceback (most recent call last):
>               File "C: \Users/mayum/AppData/Roaming/QGIS/
> QGIS3\profiles\default/python/plugins\QSWATPlus\QSWATPlus\hrus. py",
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> This message came from outside your organization.
> ZjQcmQRYFpfptBannerEnd
> --
> 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 qswat+un...@googlegroups.com
> <mailto:qswat+un...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> qswat/06996c98-5591-4b76-91c5-0ffbf2d2c764n%40googlegroups.com <https://
> urldefense.com/v3/__https://groups.google.com/d/msgid/
> qswat/06996c98-5591-4b76-91c5-0ffbf2d2c764n*40googlegroups.com?
> utm_medium=email&utm_source=footer__;JQ!!KwNVnqRv!
> AE8AolvOq3MPBSwn8CTTlTT3JT9kE7akxJ-
> A5J0IgSObjScatne3yybX9i43oRujQelqAxCRGlW9FMzuH6O6tmQl$>.

Reply all
Reply to author
Forward
0 new messages