UnboundLocalError: cannot access local variable 'output' #358
Replies: 4 comments 11 replies
-
Hi @rvanmaaren , it is the same issue #330 Please enable "Records detailed events in a log file" and copy the log file as described here https://semiautomaticclassificationmanual.readthedocs.io/en/latest/faq.html#how-can-i-report-an-error |
Beta Was this translation helpful? Give feedback.
-
Hi, log file: kind regards, |
Beta Was this translation helpful? Give feedback.
-
update: I've downloaded an older version of SCP (7.10.11, randomly selected) and now it works. Something in the code may have changed that is causing the error. I also have gotten a covariance matrix error a couple of times. But there is no log on that. Kind regards |
Beta Was this translation helpful? Give feedback.
-
Hello @rvanmaaren , it was fixed in SCP version 8.3 |
Beta Was this translation helpful? Give feedback.
-
Hi,
An error occurred while running the classification tool.
An error has occurred while executing Python code:
UnboundLocalError: cannot access local variable 'output' where it is not associated with a value
Traceback (most recent call last):
File "C:\Users/Robin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\SemiAutomaticClassificationPlugin\interface\classification_tab.py", line 143, in run_classification_action
run_classifier()
File "C:\Users/Robin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\SemiAutomaticClassificationPlugin\interface\classification_tab.py", line 487, in run_classifier
if output is None:
^^^^^^
UnboundLocalError: cannot access local variable 'output' where it is not associated with a value
Python version: 3.12.3 (main, Apr 14 2024, 17:21:43) [MSC v.1938 64 bit (AMD64)]
QGIS version: 3.36.3-Maidenhead Maidenhead, 2df96554
Python Path:
C:/PROGRA
1/QGIS331.3/apps/qgis/./pythonC:/Users/Robin/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/Robin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA
1/QGIS331.3/apps/qgis/./python/pluginsC:\PROGRA
1\QGIS331.3\apps\grass\grass83\etc\pythonC:\Users\Robin\Documents
C:\Program Files\QGIS 3.36.3\bin\python312.zip
C:\PROGRA
1\QGIS331.3\apps\Python312\DLLsC:\PROGRA
1\QGIS331.3\apps\Python312\LibC:\Program Files\QGIS 3.36.3\bin
C:\PROGRA
1\QGIS331.3\apps\Python312C:\PROGRA
1\QGIS331.3\apps\Python312\Lib\site-packagesC:\PROGRA
1\QGIS331.3\apps\Python312\Lib\site-packages\win32C:\PROGRA
1\QGIS331.3\apps\Python312\Lib\site-packages\win32\libC:\PROGRA
1\QGIS331.3\apps\Python312\Lib\site-packages\PythonwinC:/Users/Robin/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:\Users\Robin\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins
X:/Leden/5180 Provincie Noord Brabant/23335180 meerwaarden autochtone bomen en struiken
Beta Was this translation helpful? Give feedback.
All reactions