[PyQt] xml.dom.NodeFilter missing

Thijs Triemstra lists at collab.nl
Thu Jan 26 21:23:43 GMT 2017


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

My app produces the following traceback:

File ":/xml/dom/minidom.py", line 23, in <module>
File "bootstrap.py", line 969, in _find_and_load
File "bootstrap.py", line 958, in _find_and_load_unlocked
File "bootstrap.py", line 664, in _load_unlocked
File "bootstrap.py", line 634, in _load_backward_compatible
File ":/xml/dom/xmlbuilder.py", line 7, in <module>
File "bootstrap.py", line 969, in _find_and_load
File "bootstrap.py", line 956, in _find_and_load_unlocked
ImportError: No module named 'xml.dom.NodeFilter'

Searching in the pyqtdeploy src also didn't come up with any
references so I think it's a bug.

With the patch below pyqtdeploy now includes the module:

...
Freezing /foo/sysroot/usr/lib/python3.5/xml/dom/__init__.py...
Freezing /foo/sysroot/usr/lib/python3.5/xml/dom/NodeFilter.py...
Freezing /foo/sysroot/usr/lib/python3.5/xml/dom/domreg.py...
Freezing /foo/sysroot/usr/lib/python3.5/xml/dom/expatbuilder.py...
Freezing /foo/sysroot/usr/lib/python3.5/xml/dom/minicompat.py...
Freezing /foo/sysroot/usr/lib/python3.5/xml/dom/minidom.py...
Freezing /foo/sysroot/usr/lib/python3.5/xml/dom/pulldom.py...
Freezing /foo/sysroot/usr/lib/python3.5/xml/dom/xmlbuilder.py...
...


diff -r e845fe54ad43 pyqtdeploy/metadata/python_metadata.py
- --- a/pyqtdeploy/metadata/python_metadata.py	Wed Dec 28 12:06:08 2016
+0000
+++ b/pyqtdeploy/metadata/python_metadata.py	Thu Jan 26 22:20:55 2017
+0100
@@ -4282,20 +4282,24 @@
     'xml.dom.xmlbuilder': (
         PythonModule(version=2, internal=True,
                 deps=('xml.dom', 'copy', 'posixpath', 'urllib2',
'urlparse',
- -                        'xml.dom.expatbuilder')),
+                        'xml.dom.expatbuilder', 'xml.dom.NodeFilter')),
         PythonModule(min_version=3, max_version=(3, 4), internal=True,
                 deps=('xml.dom', 'copy', 'posixpath', 'urllib.parse',
- -                        'urllib.request', 'xml.dom.expatbuilder')),
+                        'urllib.request', 'xml.dom.expatbuilder',
+                        'xml.dom.NodeFilter')),
         PythonModule(min_version=(3, 5), internal=True,
                 deps=('xml.dom', 'copy', 'posixpath', 'urllib.parse',
                         'urllib.request', 'warnings',
- -                        'xml.dom.expatbuilder'))),
+                        'xml.dom.expatbuilder', 'xml.dom.NodeFilter'))),

     'xml.etree.ElementPath':
         PythonModule(internal=True, deps=('xml.etree', 're')),

     'xml.sax._exceptions':
         PythonModule(internal=True, deps='xml.sax'),
+
+    'xml.dom.NodeFilter':
+        PythonModule(internal=True),
 }


Thijs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAliKaN8ACgkQBRbMGagbo3neXQCfUCYLNTGgX7Ol98PPJBmsG28B
eeMAnij5DnHPwaeQLDyRBG1Ktjicz8z/
=EQ8l
-----END PGP SIGNATURE-----


More information about the PyQt mailing list