The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [unboundlocalerror]

Use this tag when referring to this specific python error code

Filter by
Sorted by
Tagged with
1
vote
0answers
196 views

UnboundLocalError: local variable 'attributes' referenced before assignment [closed]

When trying to 'Geocode' a CSV file I receive this answer: UnboundLocalError: local variable 'attributes' referenced before assignment Traceback (most recent call last): File "/home/user/...
1
vote
1answer
106 views

Adding custom messages in Python Toolbox of ArcPy?

I am working with another user, and our previous question was Formatting dependent parameters in Python Toolbox? We gave up on trying to auto populate the drop down and instead are having the user ...
2
votes
0answers
106 views

Zoom to Postcode QGIS Plugin error: “”

When trying to use the ZoomToPostcode plugin in QGIS 2.16.2 Nødebo, after inputting a postcode to jump to I am prompted to download updated postcode files. Clicking Yes generates a "Unable to download ...
-1
votes
1answer
156 views

local variable 'ras_APAR' referenced before assignment ArcPy error

I am trying to multiply different raster from different subfolder. and during calculation of raster trying to give a msak of raster. i have written a code but its giving error. here is my code along ...
1
vote
2answers
815 views

QGIS2Leaf help when trying to export

So when I try to export to leaflet I get this Error and I dont know how to fix it....I went in to QGIS2LEAF export and imorted all my layers and selected OSM basemap and clicked Full screen, selected ...
1
vote
1answer
898 views

PGRouting Layer plugin “UnboundLocalError: local variable 'db' referenced before assignment”

I am trying to do some basic computations using the PGRouting plugin for QGIS, but I am getting this error all time: An error has occured while executing Python code: Traceback (most recent call ...
0
votes
1answer
9k views

UnboundLocalError: local variable referenced before assignment

I have following simple function to get percent values for different cover types from a raster. It gives me following error: UnboundLocalError: local variable 'a' referenced before assignment which ...
2
votes
1answer
6k views

UnboundLocalError: local variable 'x' referenced before assignment

I am trying to execute this code, import osgeo.ogr def findPoints(geometry, results): for i in range(geometry.GetPointCount()): x,y,z = geometry.GetPoint(i) if results['north'] == ...