scrapinghub / extruct

Extract embedded metadata from HTML markup
BSD 3-Clause "New" or "Revised" License
847 stars 113 forks source link

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

Closed svoss closed 4 months ago

svoss commented 5 months ago

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?

michael-genson commented 5 months ago

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

tonal commented 5 months ago

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

When can I wait for the release?

wRAR commented 4 months ago

We've just released 0.17.0.