Installation Issu

Issue #1388 resolved
Former user created an issue

Hello, I'm trying to install ENmap on my qgis, I got the following issue. Cannot find any info on Google et al. Any help would be welcome. Thanks!

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

ImportError: cannot import name 'QgsLayerTreeProxyModel' 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 334, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/home/el/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/__init__.py", line 54, in classFactory
    raise ex
  File "/home/el/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/__init__.py", line 49, in classFactory
    from enmapbox.enmapboxplugin import EnMAPBoxPlugin
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 793, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/el/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/__init__.py", line 426, in 
    from enmapbox.gui.enmapboxgui import EnMAPBox
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 793, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/el/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/gui/enmapboxgui.py", line 40, in 
    from enmapbox.gui.dockmanager import DockManagerTreeModel, MapDockTreeNode, DockTreeNode, SpeclibDockTreeNode
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 793, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/el/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/gui/dockmanager.py", line 27, in 
    from qgis._gui import QgsLayerTreeProxyModel
ImportError: cannot import name 'QgsLayerTreeProxyModel'


Python version: 3.6.9 (default, Dec  8 2021, 21:08:43) [GCC 8.4.0] 
QGIS version: 3.16.16-Hannover Hannover, f5778a89df 

Python Path:
/usr/share/qgis/python
/home/el/.local/share/QGIS/QGIS3/profiles/default/python
/home/el/.local/share/QGIS/QGIS3/profiles/default/python/plugins
/usr/share/qgis/python/plugins
/usr/lib/python36.zip
/usr/lib/python3.6
/usr/lib/python3.6/lib-dynload
/home/el/.local/lib/python3.6/site-packages
/usr/local/lib/python3.6/dist-packages
/usr/lib/python3/dist-packages
/home/el/.local/share/QGIS/QGIS3/profiles/default/python
/home/el/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/site-packages
/home/el/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/externals/qps/externals

Comments (2)

  1. Log in to comment