Red Hat Bugzilla – Bug 795875
PyXML overloads python xml
Last modified: 2013-05-10 03:19:58 EDT
Description of problem:
If PyXML is installed it is used instead of the the xml module in python itself. The implementations are not fully compatible. Affected are for example the sax parsers in firewalld. The in operator is used for attrs in the startElement function. This is not supported in PyXML, but code that is compatible to Python 3 can not use has_key instead of in.
Version-Release number of selected component (if applicable):
This is also a problem in F-16.
Roman asked if we could Remove PyXML from Fedora. I'm currently working on analyzing what packages are actually using PyXML to see if we can get rid of it:
The precise change you ask for here cannot be done by the PyXML package -- it's a change that has to come from the python stdlib. I'm reassigning this to the python package so that everyone involved knows about this bug but -- our first choice option seems to be to get rid of PyXML altogether. Modifying the python stdlib is the second choice.
Possible workaround for code that requires the stdlib's "xml", rather than PyXML's "_xmlplus" implementation:
A better workaround from Nick Coghlan:
xml.__path__.reverse() # If both are available, prefer stdlib over PyXML
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
PyXML has been removed in F19.