Traceback (most recent call last):
File "test.py", line 19, in <module> lxml.etree.iterparse(f)
File "src/lxml/iterparse.pxi", line 209, in lxml.etree.iterparse.__next__
File "/home/sasha/_lxml-bug/test.xml", line 0
lxml.etree.XMLSyntaxError: no element found
BTW, in Gentoo's Python 3.6 I have the same.
But in Python 2.7 I don't have segfault:
Traceback (most recent call last):
lxml.etree. iterparse( f) iterparse. pxi", line 209, in lxml.etree. iterparse. __next_ _ sasha/_ lxml-bug/ test.xml" , line 0 etree.XMLSyntax Error: no element found
File "test.py", line 19, in <module>
File "src/lxml/
File "/home/
lxml.
Did you try Python 3 or 2?