[issue38910] AssertionError: ElementTree not initialized, missing root

2019-11-26 Thread Stefan Behnel
Change by Stefan Behnel : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38910] AssertionError: ElementTree not initialized, missing root

2019-11-26 Thread Joseph Reagle
Joseph Reagle added the comment: On 11/26/19 12:06 AM, Karthikeyan Singaravelan wrote: > Karthikeyan Singaravelan added the comment: > > This seems more like an issue with lxml. I posted a report over there now too: https://bugs.launchpad.net/lxml/+bug/1854057 --

[issue38910] AssertionError: ElementTree not initialized, missing root

2019-11-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems more like an issue with lxml. -- nosy: +scoder, xtreak ___ Python tracker ___

[issue38910] AssertionError: ElementTree not initialized, missing root

2019-11-25 Thread Joseph Reagle
Joseph Reagle added the comment: Here's the error: ``` Traceback (most recent call last): File "", line 1, in File "src/lxml/etree.pyx", line 2291, in lxml.etree._ElementTree.xpath File "src/lxml/etree.pyx", line 1869, in lxml.etree._ElementTree._assertHasRoot AssertionError:

[issue38910] AssertionError: ElementTree not initialized, missing root

2019-11-25 Thread Joseph Reagle
New submission from Joseph Reagle : I've attached a simple XHTML file with which the 3.8 interpreter throws an error on the following code, but 3.7 does not. (You'll have to change the path in the code below.) ``` from io import StringIO, BytesIO from lxml import etree import os import