error input weather generator

6 views
Skip to first unread message

Mutiara Saraswati

unread,
Dec 2, 2025, 8:54:08 PM (2 days ago) Dec 2
to SWAT+ Editor
Traceback (most recent call last):
  File "peewee.py", line 3291, in execute_sql
sqlite3.IntegrityError: UNIQUE constraint failed: weather_wgn_cli.name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "swatplus_api.py", line 113, in <module>
  File "actions\import_weather.py", line 608, in import_data
  File "actions\import_weather.py", line 619, in add_wgn_stations
  File "actions\import_weather.py", line 629, in add_wgn_stations_tf
  File "fileio\base.py", line 149, in read_csv_file
  File "database\lib.py", line 13, in bulk_insert
  File "peewee.py", line 2011, in inner
  File "peewee.py", line 2082, in execute
  File "peewee.py", line 2887, in _execute
  File "peewee.py", line 2600, in _execute
  File "peewee.py", line 3299, in execute
  File "peewee.py", line 3289, in execute_sql
  File "peewee.py", line 3059, in __exit__
  File "peewee.py", line 192, in reraise
  File "peewee.py", line 3291, in execute_sql
peewee.IntegrityError: UNIQUE constraint failed: weather_wgn_cli.name
[6392] Failed to execute script 'swatplus_api' due to unhandled exception!

please give me some advice, thank you

Nancy B. Sammons

unread,
Dec 3, 2025, 8:26:53 AM (2 days ago) Dec 3
to Mutiara Saraswati, SWAT+ Editor

Mutiara:

Have you checked the name column of the file that there are not duplicates?

Please send me your wgn database.

Nancy

 

 

From: swatplu...@googlegroups.com <swatplu...@googlegroups.com> On Behalf Of Mutiara Saraswati
Sent: Wednesday, November 26, 2025 10:19 PM
To: SWAT+ Editor <swatplu...@googlegroups.com>
Subject: [SWAT+ Editor User Group] error input weather generator

 

You don't often get email from mutia...@gmail.com. Learn why this is important

--
You received this message because you are subscribed to the Google Groups "SWAT+ Editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swatplus-edit...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/swatplus-editor/e4ca558a-377a-46f6-890e-009b90c3ff60n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages