Bug 671908

Summary: can not import lxml.etree in python3 (ValueError: All strings must be XML compatible)
Product: [Fedora] Fedora Reporter: Cristian Ciupitu <cristian.ciupitu>
Component: python-lxmlAssignee: Jeffrey C. Ollie <jeff>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 14CC: dmalcolm, jeff, jpopelka, smilner
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-lxml-2.3-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-26 16:02:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Cristian Ciupitu 2011-01-22 21:09:44 UTC
Description of problem:
I can not import the lxml.etree module in python3.

Version-Release number of selected component (if applicable):
python3-lxml-2.2.8-1.fc14.x86_64.rpm

How reproducible:
Every time

Steps to Reproduce:
1. Run python3
2. >>> import lxml.etree
  
Actual results:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "xmlschema.pxi", line 22, in init lxml.etree (src/lxml/lxml.etree.c:148019)
  File "xpath.pxi", line 396, in lxml.etree.XPath.__init__ (src/lxml/lxml.etree.c:107688)
  File "xpath.pxi", line 117, in lxml.etree._XPathEvaluatorBase.__init__ (src/lxml/lxml.etree.c:104888)
  File "xpath.pxi", line 55, in lxml.etree._XPathContext.__init__ (src/lxml/lxml.etree.c:104232)
  File "extensions.pxi", line 83, in lxml.etree._BaseContext.__init__ (src/lxml/lxml.etree.c:96555)
  File "extensions.pxi", line 120, in lxml.etree._BaseContext._to_utf (src/lxml/lxml.etree.c:97031)
  File "apihelpers.pxi", line 1295, in lxml.etree._utf8 (src/lxml/lxml.etree.c:21267)
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes

Expected results:
No errors.

Additional info:
I can import lxml.
Also python-lxml-2.2.8-1.fc14.x86_64.rpm works fine.

Comment 1 Steve Milner 2011-03-22 16:08:14 UTC
I also hit the exact same issue.

Comment 2 Fedora Update System 2011-04-20 14:03:39 UTC
python-lxml-2.3-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/python-lxml-2.3-1.fc15

Comment 3 Fedora Update System 2011-04-21 03:00:18 UTC
Package python-lxml-2.3-1.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-lxml-2.3-1.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/python-lxml-2.3-1.fc15
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-04-26 16:02:22 UTC
python-lxml-2.3-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.