Problem with Robit example

267 views
Skip to first unread message

Diana Lucina Hincapié Marín

unread,
Apr 19, 2021, 4:21:58 AM4/19/21
to QSWAT+
Good afternoon 

I`ve been trying to run SWAT+, using QGIS, I am using the Robit example to do so, but when I try to make HRUs, This message comes out: 

"Could not write to table Robit_usersoil in database C:/SWAT/SWATPlus/ExampleDatasets/Robit/R2\R2.sqlite from file C:/SWAT/SWATPlus/ExampleDatasets/Robit/Robit_usersoil.csv: Traceback (most recent call last):

File "C:/Users/Usuario/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus3_64\DBUtils.py", line 2557, in importCsv

cursor.execute(sql, tuple(line))

sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 2, and there are 152 supplied."

Probably the path for the file it is wrong, could you please explain!

Thank you in advance

Diana H. 



Chris George

unread,
Apr 19, 2021, 4:24:45 AM4/19/21
to Diana Lucina Hincapié Marín, QSWAT+
You have selected the wrong csv file. The soil lookup file is
Robit_soils.csv, not Robit_usersoil.csv.

Chris
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/qswatplus/97d5a21f-a67c-4d7b-835c-16b16c7ec408n%40googlegroups.com
> <https://groups.google.com/d/msgid/qswatplus/97d5a21f-a67c-4d7b-835c-16b16c7ec408n%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages