Python error when visualating Results

8 views
Skip to first unread message

Judith Eeckman

unread,
Aug 11, 2025, 9:11:38 AMAug 11
to QSWAT+

I run QSWAT+, for now for a test watershed with uniform land use and soil.
The model run without any error, but when I try to visualize the results, I get this:


2025-08-11T12:12:29     WARNING    
Traceback (most recent call last):
              File "/usr/share/qgis/python/plugins/QSWATPlusLinux3_64/QSWATPlus/visualise.py", line 2543, in makeResults
              if self.createResultsFile():
              File "/usr/share/qgis/python/plugins/QSWATPlusLinux3_64/QSWATPlus/visualise.py", line 1690, in createResultsFile
              self.currentResultsLayer.setMapTipTemplate(baseMapTip + '<br/><b>{0}:</b> [% "{0}" %]'.format(selectVar))
             AttributeError: 'NoneType' object has no attribute 'setMapTipTemplate'
             

Any idea?

Chris George

unread,
Aug 11, 2025, 10:32:56 AMAug 11
to Judith Eeckman, QSWAT+
The message suggests there is no current results layer. Did you remove
a results layer? Try creating another one, perhaps after closing and
reopening the visualisation window.

Chris


On 8/11/2025 11:15 AM, Judith Eeckman wrote:
> I run QSWAT+, for now for a test watershed with uniform land use and
> soil. The model run without any error, but when I try to visualize the
> results, I get this: 2025-08-11T12: 12: 29     WARNING    Traceback
> (most recent call last):
> 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 qswatplus+...@googlegroups.com
> <mailto:qswatplus+...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> qswatplus/2a9e35fc-8086-4b68-bb25-1b75b2a6a0f3n%40googlegroups.com
> <https://urldefense.com/v3/__https://groups.google.com/d/msgid/
> qswatplus/2a9e35fc-8086-4b68-bb25-1b75b2a6a0f3n*40googlegroups.com?
> utm_medium=email&utm_source=footer__;JQ!!KwNVnqRv!C4MTeilSHjH3IR-
> t1gvf1dNgibeSbTnRxgFipyksly3pV5WNXbQUc2rtCHX7x3f87EfxymsvsOp_6NCQ038$>.

Judith Eeckman

unread,
Aug 12, 2025, 10:32:52 AMAug 12
to QSWAT+
Yes, It seems like the results files are not written in /TxtInOut.
But I don't get any error when running the model (even in debug mode)
Reply all
Reply to author
Forward
0 new messages