extruct icon indicating copy to clipboard operation
extruct copied to clipboard

Installing with lxml-5.2.1 ImportError: cannot import name '_ElementStringResult' from 'lxml.etree'

Open svoss opened this issue 1 year ago • 1 comments

It seems that installing extruct via pip install extruct now automatically install lxml 5.2.11 which causes the following import error:

ImportError: cannot import name '_ElementStringResult' from 'lxml.etree'

I am running python 3.10, have been able to fix it by installing lxml[html_clean]==4.9.3.

Seems to be fixed in the master branch, maybe make a new version?

svoss avatar May 07 '24 14:05 svoss

This is fixed, just not in a release yet: https://github.com/scrapinghub/extruct/pull/217

michael-genson avatar May 13 '24 14:05 michael-genson

This is fixed, just not in a release yet: #217

When can I wait for the release?

tonal avatar May 22 '24 03:05 tonal

We've just released 0.17.0.

wRAR avatar May 29 '24 07:05 wRAR