semiautomaticgit / SemiAutomaticClassificationPlugin

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

Python error when starting the classification preview #75

Closed Meteo-weather closed 3 years ago

Meteo-weather commented 4 years ago

When I am starting the classification preview I get an message that a Python error has occurred. Log.txt

Meteo-weather commented 4 years ago

AttributeError: 'str' object has no attribute 'name' Traceback (most recent call last): File "/Users/nicobader/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/dock/scpdock.py", line 350, in pointerClickPreview self.createPreview(cfg.pntPrvw, self.algRasterPrevw ) File "/Users/nicobader/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/dock/scpdock.py", line 168, in createPreview cfg.lastPrev = r.name() AttributeError: 'str' object has no attribute 'name'

This Is the information i get in the stacktrace!

semiautomaticgit commented 4 years ago

Hello, it is an issue related to QGIS installation of GDAL dependency. Please try to reinstall QGIS from https://www.kyngchaos.com/software/qgis/

giusme commented 4 years ago

Hi, I reinstalled QGIS 3.12 from https://www.kyngchaos.com/software/qgis/ but the classification preview is not working and I get a new Python error message: AttributeError: module 'time' has no attribute 'clock'.

semiautomaticgit commented 4 years ago

Hi, I reinstalled QGIS 3.12 from https://www.kyngchaos.com/software/qgis/ but the classification preview is not working and I get a new Python error message: AttributeError: module 'time' has no attribute 'clock'.

please update the plugin to the latest version

giusme commented 4 years ago

Already done..But I still have the same Python error message...

semiautomaticgit commented 3 years ago

I'm closing this because of the new version 7. If you still get the same issue, please reopen it