semiautomaticgit / SemiAutomaticClassificationPlugin

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

'NoneType' object is not subscriptable while performing clustering #208

Closed benert007 closed 2 years ago

benert007 commented 2 years ago

Hey everyone.

I have been trying to perform K-means and ISODATA clustering but am not able to, thanks to this 'NoneType' object is not subscriptable error. My QGIS version is currently 3.16 with the SCP version being 7.10.5 - Matera running on Windows 11 OS. I'm attaching a snap of the error message.

image

Thanks Luca

semiautomaticgit commented 2 years ago

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

benert007 commented 2 years ago

debug_log.txt Error_message.txt

Hey Luca.

PFA the debug log file and the python error message.

Thanks again Luca

benert007 commented 2 years ago

Hi,

Have replied to this email by uploading the file in the forum.

Looking forward to hearing from you.

Regards, Benin

On Sat, Jan 29, 2022 at 1:45 AM Luca Congedo @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/semiautomaticgit/SemiAutomaticClassificationPlugin/issues/208#issuecomment-1024604025, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXQLT3GNCIAJAFW6BOV6NCDUYL2OJANCNFSM5NBQJAVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: <semiautomaticgit/SemiAutomaticClassificationPlugin/issues/208/1024604025@ github.com>

semiautomaticgit commented 2 years ago

Thank you @benert007 for the log file. I would suggest to update QGIS.

benert007 commented 2 years ago

I had first used SCP in the latest version of QGIS. And that is where the issue began. So I installed QGIS 3.16, it being the most stable, but the problem persued.

semiautomaticgit commented 2 years ago

Could you please try to use this sample dataset ?

benert007 commented 2 years ago

The sample dataset was classified perfectly. No errors or issues. So I used another dataset that I already had but got the above-mentioned error.

semiautomaticgit commented 2 years ago

The sample dataset was classified perfectly. No errors or issues. So I used another dataset that I already had but got the above-mentioned error.

Thank you. What images are you using?

benert007 commented 2 years ago

Landsat 8 and LISS 3 images

semiautomaticgit commented 2 years ago

Possibly it is a memory issue. Please check that there is enough disk space (during the process large temporary files can be created)

benert007 commented 2 years ago

Hi Luca.

I had the images processed in another with more free memory and it worked. Thanks a lot for your help! Talking with you has been awesome!