<div dir="ltr">Hello Devs,<br><div><br></div><div>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 <i>qgis.gui import QgsCodeEditorPython</i>)</div><div><br></div><div>I noticed something suspicious: the GUI interface file (Program Files\QGIS Firenze (3.22.0) for STDM\apps\qgis\python\qgis\_gui <i>pyi</i>) does not define the class QgsCodeEditorPython. </div><div><br></div><div><span style="color:rgb(255,0,0)">An error occurred during execution of following code:<br></span><span style="font-family:"Courier New";color:rgb(255,0,0)">import console</span><br><p></p>
<pre style="margin-top:12px;margin-bottom:12px"><span style="font-family:"Courier New"">Traceback (most recent call last):<br>  File "", line 1, in <br>  File "C:\PROGRA~1/QGISFI~1.0)F/apps/qgis/./python\qgis\utils.py", line 888, in _import<br>    mod = _builtin_import(name, globals, locals, fromlist, level)<br>  File "C:\PROGRA~1/QGISFI~1.0)F/apps/qgis/./python\console\__init__.py", line 24, in <br>    from .console import show_console  # NOQA<br>  File "C:\PROGRA~1/QGISFI~1.0)F/apps/qgis/./python\qgis\utils.py", line 888, in _import<br>    mod = _builtin_import(name, globals, locals, fromlist, level)<br>  File "C:\PROGRA~1/QGISFI~1.0)F/apps/qgis/./python\console\console.py", line 31, in <br>    from .console_sci import ShellScintilla<br>  File "C:\PROGRA~1/QGISFI~1.0)F/apps/qgis/./python\qgis\utils.py", line 888, in _import<br>    mod = _builtin_import(name, globals, locals, fromlist, level)<br>  File "C:\PROGRA~1/QGISFI~1.0)F/apps/qgis/./python\console\console_sci.py", line 26, in <br>    from qgis.gui import (<br>ImportError: cannot import name 'QgsCodeEditorPython' from 'qgis.gui' (C:\PROGRA~1/QGISFI~1.0)F/apps/qgis/./python\qgis\gui\__init__.py)<br><br></span><font face="arial, sans-serif">Regards,</font></pre><pre style="margin-top:12px;margin-bottom:12px"><font face="arial, sans-serif">Paul

</font>
</pre></div></div>