Replies: 3 comments 4 replies
-
Начиная с pip 22.0, синтаксический анализ HTML выполняется с использованием, http.parserа не html5libпо умолчанию. Это изменение поведения мотивировано двумя основными факторами: html5lib является причиной того, что pip отбрасывает различные другие библиотеки как часть собственного графа зависимостей. Удаление html5lib и его зависимостей от pip позволяет снизить рабочую нагрузку на сопровождающих pip и помогает уменьшить размер дистрибутивов pip. За исключением серьезных сюрпризов, флаг использования html5lib будет снят в версии 22.1. |
Beta Was this translation helpful? Give feedback.
-
Hi, Also having this issue:
Maybe the Thank you. |
Beta Was this translation helpful? Give feedback.
-
Changing python -m pip install --use-deprecated=html5lib --extra-index-url https://pypi.chia.net/simple/ miniupnpc==2.2.2 Temporarily fix the issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Installing collected packages: wheel
Successfully installed wheel-0.37.1
Looking in indexes: https://pypi.org/simple, https://pypi.chia.net/simple/
ERROR: Exception:
Traceback (most recent call last):
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 165, in exc_logging_wrapper
status = run_func(*args)
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
return func(self, options, args)
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 339, in run
requirement_set = resolver.resolve(
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 94, in resolve
result = self._result = resolver.resolve(
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 348, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_vendor/resolvelib/structs.py", line 151, in bool
return bool(self._sequence)
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in bool
return any(self)
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 44, in _iter_built
for version, func in infos:
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 294, in iter_index_candidate_infos
result = self._finder.find_best_candidate(
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_internal/index/package_finder.py", line 868, in find_best_candidate
candidates = self.find_all_candidates(project_name)
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_internal/index/package_finder.py", line 809, in find_all_candidates
page_candidates = list(page_candidates_it)
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_internal/index/sources.py", line 134, in page_candidates
yield from self._candidates_from_page(self._link)
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_internal/index/package_finder.py", line 773, in process_project_url
page_links = list(parse_links(html_page, self._use_deprecated_html5lib))
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_internal/index/collector.py", line 310, in wrapper_wrapper
return list(fn(page, use_deprecated_html5lib))
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_internal/index/collector.py", line 350, in parse_links
parser.feed(page.content.decode(encoding))
File "/usr/lib/python3.8/html/parser.py", line 111, in feed
self.goahead(0)
File "/usr/lib/python3.8/html/parser.py", line 171, in goahead
k = self.parse_starttag(i)
File "/usr/lib/python3.8/html/parser.py", line 345, in parse_starttag
self.handle_starttag(tag, attrs)
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_internal/index/collector.py", line 410, in handle_starttag
self._raise_error()
File "/home/andrey/chia-blockchain/venv/lib/python3.8/site-packages/pip/_internal/index/collector.py", line 426, in _raise_error
raise ValueError(
ValueError: HTML doctype missing or incorrect. Expected .
If you believe this error to be incorrect, try passing the command line option --use-deprecated=html5lib and please leave a comment on the pip issue at pypa/pip#10825.
Beta Was this translation helpful? Give feedback.
All reactions