rushter / selectolax

Python binding to Modest and Lexbor engines (fast HTML5 parser with CSS selectors).
MIT License
1.16k stars 70 forks source link

ModuleNotFoundError: No module named 'selectolax.parser'; 'selectolax' is not a package #98

Closed diamond-fish closed 1 year ago

diamond-fish commented 1 year ago

I was able to install this without any errors with pip install selectolax. However, when running the script I got this error:

    from selectolax.parser import HTMLParser
ModuleNotFoundError: No module named 'selectolax.parser'; 'selectolax' is not a package

My setup:

diamond-fish commented 1 year ago

I resolved it. Root cause: my script was called selectolax.py.