Version 3.11.20220901T104245.TEST: Error at displaying image

Issue #1425 closed
Agustin Lobo created an issue

I get this as soon as I drop an image for being displayed:

An error has occurred while executing Python code:

TypeError: __init__() takes from 2 to 4 positional arguments but 5 were given

Traceback (most recent call last):
  File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/gui/dataviews/dockmanager.py", line 539, in 
    dockArea.sigDropEvent.connect(lambda event: self.onDockAreaDragDropEvent(dockArea, event))
  File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/gui/dataviews/dockmanager.py", line 614, in onDockAreaDragDropEvent
    NEW_DOCK = self.createDock(MapDock)
  File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/gui/dataviews/dockmanager.py", line 715, in createDock
    dock = cls(*args, **kwds)
  File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/gui/dataviews/docks.py", line 893, in __init__
    super(MapDock, self).__init__(*args, **kwds)
  File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/gui/dataviews/docks.py", line 87, in __init__
    newLabel = self._createLabel(title=title)
  File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/gui/dataviews/docks.py", line 185, in _createLabel
    return DockLabel(self, *args, **kwds)
  File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/gui/dataviews/docks.py", line 377, in __init__
    super(DockLabel, self).__init__(title, dock, showClosebutton, fontSize)
TypeError: __init__() takes from 2 to 4 positional arguments but 5 were given

Python version: 3.9.5 (default, Nov 18 2021, 16:00:48) [GCC 10.3.0]
QGIS version: 3.26.0-Buenos Aires Buenos Aires, 0aece2818e

Comments (8)

  1. Andreas Rabe

    Error is currently not present, because of the above workaround with the try-except. @Benjamin Jakimow would need to check if this is sufficient.

  2. Log in to comment