Spectral Mixer error message (V 3.9 RC1)

Issue #752 new
Henrike Dierkes created an issue

When trying to open the Spectral Mixer algo from the Applications menu, getting error message:

TypeError: __init__() takes 1 positional argument but 2 were given

Traceback (most recent call last):
  File "C:\Users\PC\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\enmapbox\apps\specmixapp\__init__.py", line 90, in startGUI
    w = SpecMixWidget()
  File "C:\Users\PC\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\enmapbox\apps\specmixapp\specmix.py", line 627, in __init__
    loadUi(APP_DIR / 'specmix.ui', self)
  File "C:\Users/PC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\externals\qps\utils.py", line 1206, in loadUi
    return uic.loadUi(buffer, baseinstance=baseinstance, package=package, resource_suffix=resource_suffix)
  File "C:\OSGeo4W\apps\Python39\lib\site-packages\PyQt5\uic\__init__.py", line 238, in loadUi
    return DynamicUILoader(package).loadUi(uifile, baseinstance, resource_suffix)
  File "C:\OSGeo4W\apps\Python39\lib\site-packages\PyQt5\uic\Loader\loader.py", line 66, in loadUi
    return self.parse(filename, resource_suffix)
  File "C:\OSGeo4W\apps\Python39\lib\site-packages\PyQt5\uic\uiparser.py", line 1037, in parse
    actor(elem)
  File "C:\OSGeo4W\apps\Python39\lib\site-packages\PyQt5\uic\uiparser.py", line 828, in createUserInterface
    self.traverseWidgetTree(elem)
  File "C:\OSGeo4W\apps\Python39\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
    handler(self, child)
  File "C:\OSGeo4W\apps\Python39\lib\site-packages\PyQt5\uic\uiparser.py", line 503, in createLayout
    self.traverseWidgetTree(elem)
  File "C:\OSGeo4W\apps\Python39\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
    handler(self, child)
  File "C:\OSGeo4W\apps\Python39\lib\site-packages\PyQt5\uic\uiparser.py", line 546, in handleItem
    self.traverseWidgetTree(elem)
  File "C:\OSGeo4W\apps\Python39\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
    handler(self, child)
  File "C:\OSGeo4W\apps\Python39\lib\site-packages\PyQt5\uic\uiparser.py", line 273, in createWidget
    self.traverseWidgetTree(elem)
  File "C:\OSGeo4W\apps\Python39\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
    handler(self, child)
  File "C:\OSGeo4W\apps\Python39\lib\site-packages\PyQt5\uic\uiparser.py", line 264, in createWidget
    self.stack.push(self.setupObject(widget_class, parent, elem))
  File "C:\OSGeo4W\apps\Python39\lib\site-packages\PyQt5\uic\uiparser.py", line 228, in setupObject
    obj = self.factory.createQObject(clsname, name, args, is_attribute)
  File "C:\OSGeo4W\apps\Python39\lib\site-packages\PyQt5\uic\objcreator.py", line 118, in createQObject
    return self._cpolicy.instantiate(factory, *args, **kwargs)
  File "C:\OSGeo4W\apps\Python39\lib\site-packages\PyQt5\uic\Loader\qobjectcreator.py", line 137, in instantiate
    return clsObject(*ctor_args)
  File "C:\Users\PC\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\enmapbox\apps\specmixapp\specmix.py", line 565, in __init__
    self.mPDI_Avg: SpectralProfilePlotDataItem = SpectralProfilePlotDataItem(SpectralProfile())
TypeError: __init__() takes 1 positional argument but 2 were given

Python-Version: 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]
QGIS-Version: 3.20.2-Odense Odense, 9f59a156

Comments (5)

  1. Log in to comment