0

I have a problem while using MMQGIS / Geocode CSV with Web Service. I've already did geocode research but now an error pops out everytime. I'm a newbie and I don't know how to use Python at the moment. I've read on the internet that If you need to fix this thing you must use Python. I know that lots of people made the same question but I'm really stuck here. This is the error that I get:

An error has occurred while executing Python code: 

UnboundLocalError: local variable 'attributes' referenced before assignment 

Traceback (most recent call last):
  File "C:/Users/xxxx/AppData/Roaming/QGIS/QGIS3\profiles\xxxx/python/plugins\mmqgis\mmqgis_dialogs.py", line 1384, in run
    output_file_name, not_found_file_name, self.mmqgis_status_callback)
  File "C:/Users/xxxx/AppData/Roaming/QGIS/QGIS3\profiles\xxxx/python/plugins\mmqgis\mmqgis_library.py", line 2150, in mmqgis_geocode_web_service
    notwriter.writerow(attributes)
UnboundLocalError: local variable 'attributes' referenced before assignment

Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] 
QGIS version: 3.10.0-A Coruña A Coruña, 6ffa89eb3e 

Python Path:

C:/PROGRA~1/QGIS3~1.10/apps/qgis/./python
C:/Users/xxxx/AppData/Roaming/QGIS/QGIS3\profiles\xxxx/python
C:/Users/xxxx/AppData/Roaming/QGIS/QGIS3\profiles\xxxx/python/plugins
C:/PROGRA~1/QGIS3~1.10/apps/qgis/./python/plugins
C:\Program Files\QGIS 3.10\bin\python37.zip
C:\PROGRA~1\QGIS3~1.10\apps\Python37\DLLs
C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib
C:\Program Files\QGIS 3.10\bin
C:\PROGRA~1\QGIS3~1.10\apps\Python37
C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages
C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\win32
C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\win32\lib
C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\Pythonwin
C:/Users/xxxx/AppData/Roaming/QGIS/QGIS3\profiles\xxxx/python
C:\Users\xxxx\AppData\Roaming\QGIS\QGIS3\profiles\xxxx\python\plugins\mmqgis

Can someone help me to get through this and explain why this thing happens?

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.