Skip to content

UnboundLocalError: local variable 'data' referenced before assignment #50

@saikumar781588

Description

@saikumar781588

i got same error while doing the qswatmod2 in qgis . please help me how to fix this problem

Originally posted by @saikumar781588 in #32

2025-07-16T15:53:35 WARNING Traceback (most recent call last):
File "C:\Users/lab/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATMOD2\QSWATMOD2.py", line 905, in irr_mf
config_sets.create_conv_runoff(self)
File "C:\Users/lab/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATMOD2\pyfolder\config_sets.py", line 99, in create_conv_runoff
wel_max = int(data[0][0])
UnboundLocalError: local variable 'data' referenced before assignment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions