I had got this error when I try run Qwater model.

"2019-09-15T19:47:05 WARNING Traceback (most recent call last): File "C:/Users/OS10/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QWater\QWaterPlugin.py", line 688, in runEpanet writer = GHydraulicsInpWriter(template, self.iface) File "C:/Users/OS10/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QWater\GHydraulicsInpWriter.py", line 439, in init self.getVirtualLines(section) File "C:/Users/OS10/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QWater\GHydraulicsInpWriter.py", line 321, in getVirtualLines length = self.getSecondVirtualLineJunction(id, elevation)

UnboundLocalError: local variable 'elevation' referenced before assignment"

enter image description here

  • please put the text of the error message in your question not a picture of it – Ian Turton Sep 15 at 12:53
  • 1
    It looks like a bug. Report it to the plugin author - github.com/jorgealmerio/QWater/issues – user2856 Sep 15 at 21:15
  • @user2856 I agree but it does have the error message as a picture not text – Ian Turton Sep 16 at 7:29
  • @user2856 I had report to author, thanks so much – Users A Sep 16 at 15:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.