Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-26750

Python latest version is broken due to missing doctype header

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.33.6, 7.31.14, 6.23.41
    • Component/s: PyPI
    • Labels:
      None
    • Environment:

      pip 22.0

    • Location:
      External

      Description

      see https://github.com/pypa/pip/issues/10825

      when trying to install ANY package, you will get an error, due to missing
      '<!DOCTYPE html>'

      workaround - don't update to pip 22.0 until we release patched versions.

      pip3 install map 15:27:55 DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621 Looking in indexes: http://admin:****@localhost:8081/artifactory/api/pypi/jf-pypi/simple ERROR: Exception: Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 165, in exc_logging_wrapper status = run_func(*args) File "/usr/local/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper return func(self, options, args) File "/usr/local/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 339, in run requirement_set = resolver.resolve( File "/usr/local/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 94, in resolve result = self._result = resolver.resolve( File "/usr/local/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "/usr/local/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 348, in resolve self._add_to_criteria(self.state.criteria, r, parent=None) File "/usr/local/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 172, in _add_to_criteria if not criterion.candidates: File "/usr/local/lib/python3.9/site-packages/pip/_vendor/resolvelib/structs.py", line 151, in __bool__ return bool(self._sequence) File "/usr/local/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in __bool__ return any(self) File "/usr/local/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in <genexpr> return (c for c in iterator if id(c) not in self._incompatible_ids) File "/usr/local/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 44, in _iter_built for version, func in infos: File "/usr/local/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 294, in iter_index_candidate_infos result = self._finder.find_best_candidate( File "/usr/local/lib/python3.9/site-packages/pip/_internal/index/package_finder.py", line 868, in find_best_candidate candidates = self.find_all_candidates(project_name) File "/usr/local/lib/python3.9/site-packages/pip/_internal/index/package_finder.py", line 809, in find_all_candidates page_candidates = list(page_candidates_it) File "/usr/local/lib/python3.9/site-packages/pip/_internal/index/sources.py", line 134, in page_candidates yield from self._candidates_from_page(self._link) File "/usr/local/lib/python3.9/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 "/usr/local/lib/python3.9/site-packages/pip/_internal/index/collector.py", line 310, in wrapper_wrapper return list(fn(page, use_deprecated_html5lib)) File "/usr/local/lib/python3.9/site-packages/pip/_internal/index/collector.py", line 350, in parse_links parser.feed(page.content.decode(encoding)) File "/usr/local/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/html/parser.py", line 110, in feed self.goahead(0) File "/usr/local/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/html/parser.py", line 170, in goahead k = self.parse_starttag(i) File "/usr/local/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/html/parser.py", line 344, in parse_starttag self.handle_starttag(tag, attrs) File "/usr/local/lib/python3.9/site-packages/pip/_internal/index/collector.py", line 410, in handle_starttag self._raise_error() File "/usr/local/lib/python3.9/site-packages/pip/_internal/index/collector.py", line 426, in _raise_error raise ValueError( ValueError: HTML doctype missing or incorrect. Expected <!DOCTYPE html>. 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 https://github.com/pypa/pip/issues/10825.
      

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              benif Ben Ifrach
              Votes:
              25 Vote for this issue
              Watchers:
              41 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-26760 -
                  SYNCHRONIZED
                  • Last Sync Date: