Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't load plugin 'timeseriesviewerplugin' due to an error when calling its classFactory() method #1

Open
tramsauer opened this issue Oct 4, 2023 · 1 comment

Comments

@tramsauer
Copy link

Hi @jakimowb ,

thank you for your work! I have tried to use the eo-time-series-viewer and encountered the following error after installing the plugin in QGIS (via plugin explorer) :

Couldn't load plugin 'timeseriesviewerplugin' due to an error when calling its classFactory() method

Traceback:

AssertionError 
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/qgis/utils.py", line 423, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tramsauer/.local/share/QGIS/QGIS3/profiles/default/python/plugins/timeseriesviewerplugin/__init__.py", line 39, in classFactory
    return EOTimeSeriesViewerPlugin(iface)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tramsauer/.local/share/QGIS/QGIS3/profiles/default/python/plugins/timeseriesviewerplugin/eotimeseriesviewer/eotimeseriesviewerplugin.py", line 53, in __init__
    eotimeseriesviewer.initAll()
  File "/home/tramsauer/.local/share/QGIS/QGIS3/profiles/default/python/plugins/timeseriesviewerplugin/eotimeseriesviewer/__init__.py", line 114, in initAll
    registerEditorWidgets()
  File "/home/tramsauer/.local/share/QGIS/QGIS3/profiles/default/python/plugins/timeseriesviewerplugin/eotimeseriesviewer/qgispluginsupport/qps/__init__.py", line 144, in registerEditorWidgets
    assert isinstance(classificationSchemeEditorWidgetFactory(True), ClassificationSchemeWidgetFactory)
AssertionError

this points to:
https://github.com/EnMAP-Box/qgispluginsupport/blob/4a9f02cb3db41781ed968691f990607a4f2137a6/qps/__init__.py#L144

My System:
Python version: 3.11.5 (main, Sep 2 2023, 14:16:33) [GCC 13.2.1 20230801]
QGIS version: 3.32.2-Lima Lima, exported
on Linux (Manjaro)

Thank you for considering fixing the issue.

@tramsauer
Copy link
Author

when reconsidering, this potentially should have been opened in
https://github.com/EnMAP-Box/qgispluginsupport/issues
... 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant