semiautomaticgit / SemiAutomaticClassificationPlugin

https://fromgistors.blogspot.com/p/semi-automatic-classification-plugin.html
Other
136 stars 50 forks source link

Uncaught UnboundLocalError: local variable 'r' referenced before assignment #277

Closed joelruma73 closed 8 months ago

joelruma73 commented 10 months ago

Steps to reproduce

  1. First
  2. Second
  3. 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 10 months ago

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 8 months ago

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!