AttributeError: 'QAction' object has no attribute 'setShortcutVisibleInContextMenu'

Issue #276 closed
Former user created an issue

Installed version: Installierte Version 3.4.20190709T1711.MASTER

Note: qgis & EnMAP toolbox are run within dedicated virtualenv

Error when starting the EnMAP box:

  • splash screen is displayed

  • EnMAP box is not starting

  • following error mesage is issued:

Ein Fehler trat bei der Ausführung von Python-Code auf:

AttributeError: 'QAction' object has no attribute 'setShortcutVisibleInContextMenu' Traceback (most recent call last): File "/users/bachma_m/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/enmapboxplugin.py", line 115, in run self.enmapBox = EnMAPBox(self.iface) File "/users/bachma_m/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/gui/enmapboxgui.py", line 177, in init self.ui = EnMAPBoxUI() File "/users/bachma_m/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/gui/enmapboxgui.py", line 105, in init self.setupUi(self) File "", line 252, in setupUi AttributeError: 'QAction' object has no attribute 'setShortcutVisibleInContextMenu'

Python-Version: 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] QGIS-Version: 3.4.8-Madeira Madeira, exported

Python-Pfad: /usr/share/qgis/python /users/bachma_m/.local/share/QGIS/QGIS3/profiles/default/python /users/bachma_m/.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 /usr/local/lib/python3.6/dist-packages /usr/lib/python3/dist-packages /users/bachma_m/.local/share/QGIS/QGIS3/profiles/default/python /users/bachma_m/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/site-packages /usr/lib/python3/dist-packages/IPython/extensions /users/bachma_m/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox /users/bachma_m/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin

Comments (8)

  1. Javier Navarro

    Hi Benjamin,

    I’m having this error too and my Qt is 5.9.5 (QGIS Madeira 3.4.9). Will update if I find a fix.

    Javi

  2. Javier Navarro

    Hi Benjamin,

    Same problem unfortunately:

    enmapboxgui.py", line 105, in init self.setupUi(self) File "", line 252, in setupUi AttributeError: 'QAction' object has no attribute 'setShortcutVisibleInContextMenu'

    Environment:

    QGIS version 3.8.2-Zanzibar QGIS code revision ff5d718b9a Compiled against Qt 5.9.5 Running against Qt 5.9.5 Compiled against GDAL/OGR 2.4.2 Running against GDAL/OGR 2.4.2 Compiled against GEOS 3.7.1-CAPI-1.11.1 Running against GEOS 3.7.1-CAPI-1.11.1 27a5e771 PostgreSQL Client Version 10.10 (Ubuntu 10.10-0ubuntu0.18.04.1) SpatiaLite Version 4.3.0a QWT Version 6.1.3 QScintilla2 Version 2.10.2 Compiled against PROJ 5.2.0 Running against PROJ Rel. 5.2.0, September 15th, 2018 This copy of QGIS writes debugging output. OS Version Ubuntu 18.04.2 LTS

    Get Outlook for iOShttps://aka.ms/o0ukef

  3. Log in to comment