Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

287
Views
AttributeError: el módulo 'html5lib.treebuilders.etree' no tiene el atributo 'getETreeModule'

Sugerencias por favor, gracias :)

 pip list --outdated --format=freeze

Da el siguiente error:

 ERROR: Exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 223, in _main status = self.run(options, args) File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py", line 175, in run packages = self.get_outdated(packages, options) File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py", line 184, in get_outdated return [ File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py", line 184, in <listcomp> return [ File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py", line 237, in iter_packages_latest_infos for dist in map_multithread(latest_info, packages): File "/usr/lib/python3.9/multiprocessing/pool.py", line 870, in next raise value File "/usr/lib/python3.9/multiprocessing/pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py", line 214, in latest_info all_candidates = finder.find_all_candidates(dist.key) File "/usr/lib/python3/dist-packages/pip/_internal/index/package_finder.py", line 825, in find_all_candidates package_links = self.process_project_url( File "/usr/lib/python3/dist-packages/pip/_internal/index/package_finder.py", line 793, in process_project_url page_links = list(parse_links(html_page)) File "/usr/lib/python3/dist-packages/pip/_internal/index/collector.py", line 324, in wrapper_wrapper return list(fn(page)) File "/usr/lib/python3/dist-packages/pip/_internal/index/collector.py", line 335, in parse_links document = html5lib.parse( File "/usr/share/python-wheels/html5lib-1.1-py2.py3-none-any.whl/html5lib/html5parser.py", line 44, in parse tb = treebuilders.getTreeBuilder(treebuilder) File "/usr/share/python-wheels/html5lib-1.1-py2.py3-none-any.whl/html5lib/treebuilders/__init__.py", line 85, in getTreeBuilder return etree.getETreeModule(implementation, **kwargs).TreeBuilder AttributeError: module 'html5lib.treebuilders.etree' has no attribute 'getETreeModule'
over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

No es una solución, sino una especie de solución:

"Arreglé" esto actualizando cada paquete.

 for f in `pip list | tail -n +3 | cut -d' ' -f1`; do pip install --update "$f"; done

Encontré el problema de OP mientras iniciaba sesión como root e inmediatamente después de actualizar a Debian 11; No sé si eso es significativo.

over 4 years ago · Santiago Trujillo Report

0

Resolví este problema actualizando pip, actualicé de pip 20.3.4 a 21.3, así que solo escriba:

 pip install pip -U

Parece que hay algún error en pip.

Captura de pantalla de la resolución del problema.

over 4 years ago · Santiago Trujillo Report

0

He realizado algunos análisis de este error en Debian bugtracker .

Parece ser una condición de carrera desencadenada por la forma en que Debian estaba empaquetando pip hasta hace poco. Las dependencias se importaron zip desde ruedas en lugar de venderse en el árbol de origen, como lo hace upstream.

Esto ya debería estar resuelto en Debian >= 12 (ratón de biblioteca) y Ubuntu >= 22.04 (jammy).

Se está realizando una actualización para pip en Debian 11 (bullseye).

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!