Error

30 views
Skip to first unread message

Thushara Perera

unread,
Jun 5, 2025, 4:50:31 PMJun 5
to SWAT+ Editor
'charmap' codec can't encode characters in position 0-1: character maps to <undefined>

Abdi Xashi

unread,
Jun 9, 2025, 3:17:31 PMJun 9
to SWAT+ Editor
Traceback (most recent call last):
  File "peewee.py", line 7253, in get
  File "peewee.py", line 4553, in __getitem__
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "actions\import_weather.py", line 327, in add_weather_files_type
  File "peewee.py", line 6805, in get
  File "peewee.py", line 7256, in get
database.project.climate.Weather_fileDoesNotExist: <Model: Weather_file> instance matching query does not exist:
SQL: SELECT "t1"."id", "t1"."filename", "t1"."type", "t1"."lat", "t1"."lon" FROM "weather_file" AS "t1" WHERE (("t1"."filename" = ?) AND ("t1"."type" = ?)) LIMIT ? OFFSET ?
Params: ['', 'hmd', 1, 0]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "swatplus_api.py", line 107, in <module>
  File "actions\import_weather.py", line 124, in import_data
  File "actions\import_weather.py", line 254, in add_weather_files
  File "actions\import_weather.py", line 330, in add_weather_files_type
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\pc\\OneDrive\\Desktop\\hargeisa data\\Hargeisa watershed\\Swat+Har-w\\'
[18552] Failed to execute script 'swatplus_api' due to unhandled exception!
Reply all
Reply to author
Forward
0 new messages