Uncaught UnboundLocalError: local variable 'r' referenced before assignment
joelruma73 opened this issue · 2 comments
joelruma73 commented
Steps to reproduce
- First
- Second
- Third
Traceback (most recent call last):
File "/Users/jose.elkin/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/dock/scpdock.py", line 1736, in pointerClickROI
self.createROI(cfg.pntROI)
File "/Users/jose.elkin/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/dock/scpdock.py", line 2848, in createROI
if cfg.np.count_nonzero(r) > 0:
UnboundLocalError: local variable 'r' referenced before assignment
SemiAutomaticClassificationPlugin 7.10.11, QGIS 3.30.2-'s-Hertogenbosch on Darwin 22.5.0
semiautomaticgit commented
Hello @joelruma73 , it could be related to an installation issue in MacOS.
You can try to follow this guide https://semiautomaticclassificationmanual.readthedocs.io/en/latest/faq.html#i-have-installation-issues-on-mac-os-how-can-i-install-scp-on-mac-os
semiautomaticgit commented
I'm closing this because of the new version 8 of SCP.
Please reopen it if it is still relevant in the new version.
Thank you!