Bug report #16892

Updated by Jürgen Fischer about 7 years ago

For days now, Launching QGIS nightly from osgeo4w 64bit result in a "Processing couldn't load" error with
_ImportError: No module named expat; use SimpleXMLTreeBuilder instead_ message
During installation process I checked the libraries and there's an expat package at version 2.1.0-1 enabled.
Any Ideas?

Below the stacktrace:
<pre>
&gt; ImportError: No module named expat; use SimpleXMLTreeBuilder instead
&gt; Traceback (most recent call last):
&gt; File "C:\OSGEO4~1\apps\Python36\lib\xml\etree\ElementTree.py", line 1448, in __init__
&gt; from xml.parsers import expat
&gt; File "C:/OSGEO4~1/apps/qgis-dev/./python\qgis\utils.py", line 647, in _import
&gt; mod = _builtin_import(name, globals, locals, fromlist, level)
&gt; File "C:\OSGEO4~1\apps\Python36\lib\xml\parsers\expat.py", line 4, in
&gt; from pyexpat import *
&gt; File "C:/OSGEO4~1/apps/qgis-dev/./python\qgis\utils.py", line 647, in _import
&gt; mod = _builtin_import(name, globals, locals, fromlist, level)
&gt; ImportError: DLL load failed: Le module spécifié est introuvable.


&gt;
&gt;
During handling of the above exception, another exception occurred:


&gt;
&gt;
Traceback (most recent call last):
&gt; File "C:\OSGEO4~1\apps\Python36\lib\xml\etree\ElementTree.py", line 1451, in __init__
&gt; import pyexpat as expat
&gt; File "C:/OSGEO4~1/apps/qgis-dev/./python\qgis\utils.py", line 647, in _import
&gt; mod = _builtin_import(name, globals, locals, fromlist, level)
&gt; ImportError: DLL load failed: Le module spécifié est introuvable.


&gt;
&gt;
During handling of the above exception, another exception occurred:


&gt;
&gt;
Traceback (most recent call last):
&gt; File "C:/OSGEO4~1/apps/qgis-dev/./python\qgis\utils.py", line 312, in loadPlugin
&gt; __import__(packageName)
&gt; File "C:/OSGEO4~1/apps/qgis-dev/./python\qgis\utils.py", line 647, in _import
&gt; mod = _builtin_import(name, globals, locals, fromlist, level)
&gt; File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\processing\__init__.py", line 29, in
&gt; from processing.tools.general import * # NOQA
&gt; File "C:/OSGEO4~1/apps/qgis-dev/./python\qgis\utils.py", line 647, in _import
&gt; mod = _builtin_import(name, globals, locals, fromlist, level)
&gt; File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\processing\tools\general.py", line 46, in
&gt; from processing.core.Processing import Processing
&gt; File "C:/OSGEO4~1/apps/qgis-dev/./python\qgis\utils.py", line 647, in _import
&gt; mod = _builtin_import(name, globals, locals, fromlist, level)
&gt; File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\processing\core\Processing.py", line 53, in
&gt; from processing.gui.MessageBarProgress import MessageBarProgress
&gt; File "C:/OSGEO4~1/apps/qgis-dev/./python\qgis\utils.py", line 647, in _import
&gt; mod = _builtin_import(name, globals, locals, fromlist, level)
&gt; File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\processing\gui\MessageBarProgress.py", line 32, in
&gt; from processing.gui.MessageDialog import MessageDialog
&gt; File "C:/OSGEO4~1/apps/qgis-dev/./python\qgis\utils.py", line 647, in _import
&gt; mod = _builtin_import(name, globals, locals, fromlist, level)
&gt; File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\processing\gui\MessageDialog.py", line 38, in
&gt; os.path.join(pluginPath, 'ui', 'DlgMessage.ui'))
&gt; File "C:\OSGEO4~1\apps\Python36\lib\site-packages\PyQt5\uic\__init__.py", line 198, in loadUiType
&gt; winfo = compiler.UICompiler().compileUi(uifile, code_string, from_imports, resource_suffix, import_from)
&gt; File "C:\OSGEO4~1\apps\Python36\lib\site-packages\PyQt5\uic\Compiler\compiler.py", line 110, in compileUi
&gt; w = self.parse(input_stream, resource_suffix)
&gt; File "C:\OSGEO4~1\apps\Python36\lib\site-packages\PyQt5\uic\uiparser.py", line 1002, in parse
&gt; document = parse(filename)
&gt; File "C:\OSGEO4~1\apps\Python36\lib\xml\etree\ElementTree.py", line 1196, in parse
&gt; tree.parse(source, parser)
&gt; File "C:\OSGEO4~1\apps\Python36\lib\xml\etree\ElementTree.py", line 591, in parse
&gt; parser = XMLParser()
&gt; File "C:\OSGEO4~1\apps\Python36\lib\xml\etree\ElementTree.py", line 1454, in __init__
&gt; "No module named expat; use SimpleXMLTreeBuilder instead"
&gt; ImportError: No module named expat; use SimpleXMLTreeBuilder instead


&gt;
&gt;
&gt;
Python version: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)]
&gt; QGIS version: 2.99.0-Master Master, d70f53c


&gt;
&gt;
Python Path:
&gt; C:/OSGEO4~1/apps/qgis-dev/./python
&gt; C:/Users/DelazJ/.qgis3/python
&gt; C:/Users/DelazJ/.qgis3/python/plugins
&gt; C:/OSGEO4~1/apps/qgis-dev/./python/plugins
&gt; C:\OSGeo4W64\apps\Python27\DLLs
&gt; C:\OSGeo4W64\bin\python36.zip
&gt; C:\OSGEO4~1\apps\Python36\DLLs
&gt; C:\OSGEO4~1\apps\Python36\lib
&gt; C:\OSGeo4W64\bin
&gt; C:\OSGEO4~1\apps\Python36
&gt; C:\OSGEO4~1\apps\Python36\lib\site-packages
&gt; C:/Users/DelazJ/.qgis3//python
</pre>

Back