library · inferred from evidence
PyQuery
A class or module within the pyquery library used for jQuery-style operations.
- ImportError: cannot import name 'PyQuery' from 'pyquery'
Fixes the pyquery shadowing failure where your own pyquery.py hides the library. Use when `from pyquery import PyQuery` raises ImportError naming PyQuery even though pyquery is installed. Not for missing pyquery.
- ImportError: cannot import name 'etree' from 'lxml'
Fixes pyquery failing on Python 3.12 because the installed lxml is too old. Use when `from pyquery import PyQuery` raises `ImportError: cannot import name 'etree' from 'lxml'`. Not for missing pyquery or missing lxml.
- ModuleNotFoundError: No module named 'pyquery'
Fixes the plain missing-module error for pyquery. Use when `from pyquery import PyQuery` fails with ModuleNotFoundError naming pyquery. Not for the lxml etree import failure underneath it.