Bug 671908 - can not import lxml.etree in python3 (ValueError: All strings must be XML compatible)
Summary: can not import lxml.etree in python3 (ValueError: All strings must be XML com...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-lxml
Version: 14
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jeffrey C. Ollie
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-22 21:09 UTC by Cristian Ciupitu
Modified: 2011-04-26 16:02 UTC (History)
4 users (show)

Fixed In Version: python-lxml-2.3-1.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-26 16:02:43 UTC
Type: ---


Attachments (Terms of Use)

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.


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