semiautomaticgit / SemiAutomaticClassificationPlugin

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

Uncaught AttributeError: 'str' object has no attribute 'copy' #256

Closed NooshinHadidian closed 1 year ago

NooshinHadidian commented 1 year ago

Steps to reproduce

  1. First
  2. Second
  3. Third
Traceback (most recent call last):
  File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\SemiAutomaticClassificationPlugin\dock\scpdock.py", line 2411, in saveROItoShapefile
    cfg.utls.calculateSignature(cfg.shpLay, cfg.bandSetsList[bandSetNumber][8], [self.ROILastID], cfg.ROIMacroID, cfg.ROIMacroClassInfo, cfg.ROIID, cfg.ROIInfo, 50, 40, 'No', 'No', UID, bandSetNumber = bandSetNumber)
  File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\SemiAutomaticClassificationPlugin\core\utils.py", line 1597, in calculateSignature
    outList = cfg.utls.clipRasterByRaster(oList, tRxs, progressMessage = cfg.QtWidgetsSCP.QApplication.translate('semiautomaticclassificationplugin', 'Calculating signature'), stats = 'Yes')
  File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\SemiAutomaticClassificationPlugin\core\utils.py", line 3352, in clipRasterByRaster
    bList = rasterClippedList.copy()
AttributeError: 'str' object has no attribute 'copy'

SemiAutomaticClassificationPlugin 7.10.11, QGIS 3.26.1-Buenos Aires on Windows 10

semiautomaticgit commented 1 year ago

Hello, please copy the log file following these steps https://semiautomaticclassificationmanual.readthedocs.io/en/latest/faq.html#how-can-i-report-an-error

NooshinHadidian commented 1 year ago

I did. please check the group in Facebook. I have sent a new post. Thanks.