recent restructuring of QPS dependency seams to have broken the EnMAP-Box

Issue #954 resolved
Andreas Janz created an issue

Starting the EnMAP-Box via scripts/start_enmapbox.py fails:

D:\source\QGISPlugIns\enmap-box\enmapbox\qgispluginsupport\qps\__init__.py:48: RuntimeWarning: Your QGIS (3.18.3-Zürich) is outdated. Please update to QGIS >= 3.20
  f'Please update to QGIS >= {MIN_QGIS_VERSION}', RuntimeWarning)
load D:\source\QGISPlugIns\enmap-box\enmapbox\enmapboxresources_rc.py
load D:\source\QGISPlugIns\enmap-box\enmapbox\coreapps\enmapboxapplications\ressources_rc.py
load D:\source\QGISPlugIns\enmap-box\enmapbox\externals\qps\qpsresources_rc.py
Traceback (most recent call last):
  File "D:\miniconda\envs\qgis\lib\code.py", line 90, in runcode
    exec(code, self.locals)
  File "<input>", line 1, in <module>
  File "D:\pycharm\plugins\python\helpers\pydev\_pydev_bundle\pydev_umd.py", line 198, in runfile
    pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
  File "D:\pycharm\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "D:/source/QGISPlugIns/enmap-box/scripts/start_enmapbox.py", line 1, in <module>
    from enmapbox import EnMAPBox, initAll
  File "D:\pycharm\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "D:\source\QGISPlugIns\enmap-box\enmapbox\__init__.py", line 452, in <module>
    from enmapbox.gui.enmapboxgui import EnMAPBox
  File "D:\miniconda\envs\qgis\Library\python\qgis\utils.py", line 799, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "D:\pycharm\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "D:\source\QGISPlugIns\enmap-box\enmapbox\gui\__init__.py", line 6, in <module>
    from ..qgispluginsupport.qps.speclib.gui.spectrallibrarywidget import SpectralLibraryWidget
  File "D:\miniconda\envs\qgis\Library\python\qgis\utils.py", line 799, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "D:\pycharm\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "D:\source\QGISPlugIns\enmap-box\enmapbox\qgispluginsupport\qps\speclib\gui\spectrallibrarywidget.py", line 16, in <module>
    from .spectralprocessingwidget import SpectralProcessingWidget
  File "D:\miniconda\envs\qgis\Library\python\qgis\utils.py", line 799, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "D:\pycharm\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "D:\source\QGISPlugIns\enmap-box\enmapbox\qgispluginsupport\qps\speclib\gui\spectralprocessingwidget.py", line 959, in <module>
    class SpectralProcessingWidget(QgsProcessingAlgorithmDialogBase):
  File "D:\source\QGISPlugIns\enmap-box\enmapbox\qgispluginsupport\qps\speclib\gui\spectralprocessingwidget.py", line 1246, in SpectralProcessingWidget
    def createProcessingParameters(self, flags=QgsProcessingParametersGenerator.Flags()):
AttributeError: type object 'QgsProcessingParametersGenerator' has no attribute 'Flags'

Comments (4)

  1. Log in to comment