cssselect icon indicating copy to clipboard operation
cssselect copied to clipboard

Quickstart Example does not work

Open Sand1929 opened this issue 7 months ago • 4 comments

On cssselect==1.3.0 (but not cssselect==1.2.0), the Quickstart example does not work:

from cssselect import GenericTranslator, SelectorError expression = GenericTranslator().css_to_xpath('div.content')

throws TypeError: unhashable type: 'list'

(Python : sys.version_info(major=3, minor=9, micro=1, releaselevel='final', serial=0))

Sand1929 avatar May 09 '25 22:05 Sand1929

Actually, seems not reproducible in a fresh environment, I'll re-open if I figure out what's going on here

Sand1929 avatar May 09 '25 22:05 Sand1929

Seems to happen on Mac Sequoia 15.4.1 but not Ubuntu 24.04

Sand1929 avatar May 10 '25 00:05 Sand1929

Also seems to happen on Python 3.9 but not 3.12

Sand1929 avatar May 10 '25 02:05 Sand1929

Can you please at least provide the full traceback?

wRAR avatar May 10 '25 04:05 wRAR