Hide Forgot
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.
I also hit the exact same issue.
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
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).
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.