[QGIS-Developer] ImportError: QgsCodeEditorPython
Paul Gathogo
pgathogo at gmail.com
Wed Feb 8 01:15:47 PST 2023
Hello Devs,
I've built and packaged QGIS ltr-3.22 in windows, however, when I run it
after installation, I get the following error message on start-up. This
error also appears when you try to import the QgsCodeEditorPython class
straight from the command line python console (from *qgis.gui import
QgsCodeEditorPython*)
I noticed something suspicious: the GUI interface file (Program Files\QGIS
Firenze (3.22.0) for STDM\apps\qgis\python\qgis\_gui *pyi*) does not define
the class QgsCodeEditorPython.
An error occurred during execution of following code:
import console
Traceback (most recent call last):
File "", line 1, in
File "C:\PROGRA~1/QGISFI~1.0)F/apps/qgis/./python\qgis\utils.py",
line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\PROGRA~1/QGISFI~1.0)F/apps/qgis/./python\console\__init__.py",
line 24, in
from .console import show_console # NOQA
File "C:\PROGRA~1/QGISFI~1.0)F/apps/qgis/./python\qgis\utils.py",
line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\PROGRA~1/QGISFI~1.0)F/apps/qgis/./python\console\console.py",
line 31, in
from .console_sci import ShellScintilla
File "C:\PROGRA~1/QGISFI~1.0)F/apps/qgis/./python\qgis\utils.py",
line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\PROGRA~1/QGISFI~1.0)F/apps/qgis/./python\console\console_sci.py",
line 26, in
from qgis.gui import (
ImportError: cannot import name 'QgsCodeEditorPython' from 'qgis.gui'
(C:\PROGRA~1/QGISFI~1.0)F/apps/qgis/./python\qgis\gui\__init__.py)
Regards,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20230208/30fcb1de/attachment.htm>
More information about the QGIS-Developer
mailing list