Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

There was an error importing your GIS data

21 views
Skip to first unread message

Abdulrazzak Doughan

unread,
Dec 3, 2024, 4:25:16 PM12/3/24
to SWAT+ Editor
Please help i got the below and they told me to post it here:


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_gis.py", line 1198, in insert_hru_ltes
  File "peewee.py", line 6805, in get
  File "peewee.py", line 7256, in get
database.project.hru_parm_db.Plants_pltDoesNotExist: <Model: Plants_plt> instance matching query does not exist:
SQL: SELECT "t1"."id", "t1"."name", "t1"."plnt_typ", "t1"."gro_trig", "t1"."nfix_co", "t1"."days_mat", "t1"."bm_e", "t1"."harv_idx", "t1"."lai_pot", "t1"."frac_hu1", "t1"."lai_max1", "t1"."frac_hu2", "t1"."lai_max2", "t1"."hu_lai_decl", "t1"."dlai_rate", "t1"."can_ht_max", "t1"."rt_dp_max", "t1"."tmp_opt", "t1"."tmp_base", "t1"."frac_n_yld", "t1"."frac_p_yld", "t1"."frac_n_em", "t1"."frac_n_50", "t1"."frac_n_mat", "t1"."frac_p_em", "t1"."frac_p_50", "t1"."frac_p_mat", "t1"."harv_idx_ws", "t1"."usle_c_min", "t1"."stcon_max", "t1"."vpd", "t1"."frac_stcon", "t1"."ru_vpd", "t1"."co2_hi", "t1"."bm_e_hi", "t1"."plnt_decomp", "t1"."lai_min", "t1"."bm_tree_acc", "t1"."yrs_mat", "t1"."bm_tree_max", "t1"."ext_co", "t1"."leaf_tov_mn", "t1"."leaf_tov_mx", "t1"."bm_dieoff", "t1"."rt_st_beg", "t1"."rt_st_end", "t1"."plnt_pop1", "t1"."frac_lai1", "t1"."plnt_pop2", "t1"."frac_lai2", "t1"."frac_sw_gro", "t1"."aeration", "t1"."rsd_pctcov", "t1"."rsd_covfac", "t1"."description" FROM "plants_plt" AS "t1" WHERE ("t1"."name" LIKE ?) LIMIT ? OFFSET ?
Params: ['22', 1, 0]

During handling of the above exception, another exception occurred:

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_gis.py", line 1202, in insert_hru_ltes
  File "peewee.py", line 6805, in get
  File "peewee.py", line 7256, in get
database.project.hru_parm_db.Urban_urbDoesNotExist: <Model: Urban_urb> instance matching query does not exist:
SQL: SELECT "t1"."id", "t1"."name", "t1"."frac_imp", "t1"."frac_dc_imp", "t1"."curb_den", "t1"."urb_wash", "t1"."dirt_max", "t1"."t_halfmax", "t1"."conc_totn", "t1"."conc_totp", "t1"."conc_no3n", "t1"."urb_cn", "t1"."description" FROM "urban_urb" AS "t1" WHERE ("t1"."name" LIKE ?) LIMIT ? OFFSET ?
Params: ['22', 1, 0]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "actions\import_gis.py", line 121, in insert_default
  File "actions\import_gis.py", line 1208, in insert_hru_ltes
ValueError: 22 does not exist in plants_plt or urban_urb, but is used as land use in your GIS HRUs.

Reply all
Reply to author
Forward
0 new messages