semiautomaticgit / SemiAutomaticClassificationPlugin

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

'NoneType' object has no attribute 'log' #362

Open urograndis opened 3 months ago

urograndis commented 3 months ago

Good morning. I am running QGIS 3.38.0-Grenoble on a 64-bit platform, Ubuntu 22.04.4 LTS. I had the Semi-Automatic Classification Plugin installed and was running the Region Growing Algorithm when it crashed and closed. When I restarted, I got the message: Semi-Automatic Classification Plugin: 'NoneType' object has no attribute 'log'. I uninstalled and reinstalled the plugin: Plugin installed successfully; But it doesn't even appear in the taskbar and the message: 2024-07-30T09:29:41 WARNING Semi-Automatic Classification Plugin: 'NoneType' object has no attribute 'log' 2024-07-30T09:29:42 INFO Plugin installed successfully. So, I need your help.

semiautomaticgit commented 3 months ago

Hello @urograndis , it seems an installation issue. Please update the plugin and Remotior Sensus following these installation steps https://semiautomaticclassificationmanual.readthedocs.io/en/latest/installation.html

semiautomaticgit commented 3 months ago

Hello @urograndis , please update the SCP to version 8.3 and report if you still get the same error

kleinhoellental commented 2 months ago

Hello Luca, unfortunately i got the same issue using:

works partially on the QGIS-LTR

regards Seb  

semiautomaticgit commented 2 months ago

Hello @kleinhoellental, please enable "Records detailed events in a log file" and copy the log file as described here https://semiautomaticclassificationmanual.readthedocs.io/en/latest/faq.html#how-can-i-report-an-error

Leandro-G commented 1 month ago

Hello Luca. Same issue here. No chance to enable "Records detailed events in a log file" in the plugin due to it failing to load. Running QGIS 3.38 in Ubuntu 24.04 and SCP 8.3. I get this error: "Semi-Automatic Classification Plugin: 'NoneType' object has no attribute 'log'" Thank you in advance. Your plugin is great for teaching purposes.

semiautomaticgit commented 1 month ago

Hello Luca. Same issue here. No chance to enable "Records detailed events in a log file" in the plugin due to it failing to load. Running QGIS 3.38 in Ubuntu 24.04 and SCP 8.3. I get this error: "Semi-Automatic Classification Plugin: 'NoneType' object has no attribute 'log'" Thank you in advance. Your plugin is great for teaching purposes.

Hello @Leandro-G , this error is related to installation. I suggest to uninstall QGIS and the plugin, then reinstall it again following this guide https://semiautomaticclassificationmanual.readthedocs.io/en/latest/installation_debian.html

Leandro-G commented 1 month ago

Hello Luca. Same issue here. No chance to enable "Records detailed events in a log file" in the plugin due to it failing to load. Running QGIS 3.38 in Ubuntu 24.04 and SCP 8.3. I get this error: "Semi-Automatic Classification Plugin: 'NoneType' object has no attribute 'log'" Thank you in advance. Your plugin is great for teaching purposes.

Hello @Leandro-G , this error is related to installation. I suggest to uninstall QGIS and the plugin, then reinstall it again following this guide https://semiautomaticclassificationmanual.readthedocs.io/en/latest/installation_debian.html

Thank you Luca for your answer. Followed exactly, no error messages during installation but I get the exact same message and SCP does not load...

semiautomaticgit commented 1 month ago

Hello Luca. Same issue here. No chance to enable "Records detailed events in a log file" in the plugin due to it failing to load. Running QGIS 3.38 in Ubuntu 24.04 and SCP 8.3. I get this error: "Semi-Automatic Classification Plugin: 'NoneType' object has no attribute 'log'" Thank you in advance. Your plugin is great for teaching purposes.

Hello @Leandro-G , this error is related to installation. I suggest to uninstall QGIS and the plugin, then reinstall it again following this guide https://semiautomaticclassificationmanual.readthedocs.io/en/latest/installation_debian.html

Thank you Luca for your answer. Followed exactly, no error messages during installation but I get the exact same message and SCP does not load...

Thank you for your feedback. Unfortunately I can't reproduce the issue. I think it is related to the system, or the QGIS Python environment. I suggest to perform a clean installation for example with a new user, or installing through Conda as described here https://semiautomaticclassificationmanual.readthedocs.io/en/latest/installation_conda.html

Leandro-G commented 1 month ago

Hello Luca. Same issue here. No chance to enable "Records detailed events in a log file" in the plugin due to it failing to load. Running QGIS 3.38 in Ubuntu 24.04 and SCP 8.3. I get this error: "Semi-Automatic Classification Plugin: 'NoneType' object has no attribute 'log'" Thank you in advance. Your plugin is great for teaching purposes.

Hello @Leandro-G , this error is related to installation. I suggest to uninstall QGIS and the plugin, then reinstall it again following this guide https://semiautomaticclassificationmanual.readthedocs.io/en/latest/installation_debian.html

Thank you Luca for your answer. Followed exactly, no error messages during installation but I get the exact same message and SCP does not load...

Thank you for your feedback. Unfortunately I can't reproduce the issue. I think it is related to the system, or the QGIS Python environment. I suggest to perform a clean installation for example with a new user, or installing through Conda as described here https://semiautomaticclassificationmanual.readthedocs.io/en/latest/installation_conda.html

You're right Luca. It works in Debian 12, tried on a different machine. It's an Ubuntu isuue

semiautomaticgit commented 1 month ago

Hello Luca. Same issue here. No chance to enable "Records detailed events in a log file" in the plugin due to it failing to load. Running QGIS 3.38 in Ubuntu 24.04 and SCP 8.3. I get this error: "Semi-Automatic Classification Plugin: 'NoneType' object has no attribute 'log'" Thank you in advance. Your plugin is great for teaching purposes.

Hello @Leandro-G , this error is related to installation. I suggest to uninstall QGIS and the plugin, then reinstall it again following this guide https://semiautomaticclassificationmanual.readthedocs.io/en/latest/installation_debian.html

Thank you Luca for your answer. Followed exactly, no error messages during installation but I get the exact same message and SCP does not load...

Thank you for your feedback. Unfortunately I can't reproduce the issue. I think it is related to the system, or the QGIS Python environment. I suggest to perform a clean installation for example with a new user, or installing through Conda as described here https://semiautomaticclassificationmanual.readthedocs.io/en/latest/installation_conda.html

You're right Luca. It works in Debian 12, tried on a different machine. It's an Ubuntu isuue

Thank you very much for your feedback. I'll try to understand if there is something I can do

semiautomaticgit commented 2 weeks ago

Hello @urograndis @Leandro-G @kleinhoellental ,

you may try this alternative method of installation of dependencies https://semiautomaticclassificationmanual.readthedocs.io/en/latest/faq.html#plugin-installation-4