Skip to content

AttributeError trying to create a spectral signature plot #419

Description

@LevitatingBusinessMan

When I create a spectral signature plot I get the following error.

As you can see from the python path, I use a virtual environment to provide a dependency to scikit-learn (and torch).

An error has occurred while executing Python code: 

AttributeError: 'SpectralSignaturePlot' object has no attribute 'plot_catalog' 
Traceback (most recent call last):
  File "/home/rein/.local/share/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/interface/scp_dock.py", line 2764, in add_signature_to_spectral_plot
    plot_catalog = cfg.spectral_signature_plotter.plot_catalog
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'SpectralSignaturePlot' object has no attribute 'plot_catalog'


Python version: 3.13.9 (main, Nov 15 2025, 21:56:21) [GCC] 
QGIS version: 3.44.4-Solothurn Solothurn, exported 

Python Path:
/home/rein/.local/share/QGIS/QGIS3/profiles/default/python/dependencies
/usr/share/qgis/python
/home/rein/.local/share/QGIS/QGIS3/profiles/default/python
/home/rein/.local/share/QGIS/QGIS3/profiles/default/python/plugins
/usr/share/qgis/python/plugins
/usr/lib64/python313.zip
/usr/lib64/python3.13
/usr/lib64/python3.13/lib-dynload
/home/rein/uni/earth/dicaa/venv/lib64/python3.13/site-packages
/home/rein/uni/earth/dicaa/venv/lib/python3.13/site-packages
/home/rein/.local/lib/python3.13/site-packages
/usr/lib64/python3.13/site-packages
/usr/lib64/python3.13/site-packages/PIL
/usr/lib64/python3.13/_import_failed
/usr/lib/python3.13/site-packages
/usr/local/lib/python3.13/site-packages
/home/rein/.local/share/QGIS/QGIS3/profiles/default/python
/usr/lib/python3.13/site-packages/setuptools/_vendor

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions