Bug 795875 - PyXML overloads python xml
Summary: PyXML overloads python xml
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: python
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Bohuslav "Slavek" Kabrda
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-21 17:41 UTC by Thomas Woerner
Modified: 2013-05-10 07:19 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-10 07:19:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Thomas Woerner 2012-02-21 17:41:17 UTC
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):
PyXML-0:0.8.4-26.fc15.x86_64

How reproducible:
Always

Additional info:
This is also a problem in F-16.

Comment 1 Toshio Ernie Kuratomi 2012-07-24 17:33:11 UTC
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:

https://fedoraproject.org/wiki/User:Toshio/Remove_PyXML

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.

Comment 2 Dave Malcolm 2012-07-26 00:13:11 UTC
Possible workaround for code that requires the stdlib's "xml", rather than PyXML's "_xmlplus" implementation:
http://lists.fedoraproject.org/pipermail/python-devel/2012-July/000399.html

Comment 3 Toshio Ernie Kuratomi 2012-07-31 03:37:15 UTC
A better workaround from Nick Coghlan:

http://lists.fedoraproject.org/pipermail/python-devel/2012-July/000403.html

import xml
xml.__path__.reverse() # If both are available, prefer stdlib over PyXML

Comment 4 Fedora Admin XMLRPC Client 2013-05-10 04:58:24 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Fedora Admin XMLRPC Client 2013-05-10 05:00:09 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Fedora Admin XMLRPC Client 2013-05-10 05:04:13 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Fedora Admin XMLRPC Client 2013-05-10 05:12:11 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 8 Fedora Admin XMLRPC Client 2013-05-10 05:12:26 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 9 Toshio Ernie Kuratomi 2013-05-10 07:19:58 UTC
PyXML has been removed in F19.


Note You need to log in before you can comment on or make changes to this bug.