Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 675
    • Issues 675
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

April 05-07 - Mercurial Paris Conference 2023 - One day of workshop dedicated to Heptapod and Mercurial usage and workflow. There are still places available for both workshops and talks!

  • PyPyPyPy
  • pypypypy
  • Issues
  • #3342
Closed
Open
Issue created Nov 11, 2020 by Pedro H Garcia Macedo@phgmacedo

Error bootstraping pip

I tried installing pypy3 from scoop.

I get this error when trying to bootstrap pip:

PS C:\Users\phg> pypy3 --version
Python 3.7.4 (87875bf2dfd8, Sep 24 2020, 07:27:16)
[PyPy 7.3.2-alpha0 with MSC v.1927 32 bit]
PS C:\Users\phg> pypy3 -m ensurepip
Looking in links: c:\Users\phg\AppData\Local\Temp\tmpx9hnnirq
ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\phg\AppData\Local\Temp\tmpx9hnnirq\pip-20.1.1-py2.py3-none-any.whl\pip\_internal\cli\base_command.py", line 188, in _main
    status = self.run(options, args)
  File "C:\Users\phg\AppData\Local\Temp\tmpx9hnnirq\pip-20.1.1-py2.py3-none-any.whl\pip\_internal\cli\req_command.py", line 185, in wrapper
    return func(self, options, args)
  File "C:\Users\phg\AppData\Local\Temp\tmpx9hnnirq\pip-20.1.1-py2.py3-none-any.whl\pip\_internal\commands\install.py", line 333, in run
    reqs, check_supported_wheels=not options.target_dir
  File "C:\Users\phg\AppData\Local\Temp\tmpx9hnnirq\pip-20.1.1-py2.py3-none-any.whl\pip\_internal\resolution\legacy\resolver.py", line 179, in resolve
    discovered_reqs.extend(self._resolve_one(requirement_set, req))
  File "C:\Users\phg\AppData\Local\Temp\tmpx9hnnirq\pip-20.1.1-py2.py3-none-any.whl\pip\_internal\resolution\legacy\resolver.py", line 362, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "C:\Users\phg\AppData\Local\Temp\tmpx9hnnirq\pip-20.1.1-py2.py3-none-any.whl\pip\_internal\resolution\legacy\resolver.py", line 313, in _get_abstract_dist_for
    self._populate_link(req)
  File "C:\Users\phg\AppData\Local\Temp\tmpx9hnnirq\pip-20.1.1-py2.py3-none-any.whl\pip\_internal\resolution\legacy\resolver.py", line 279, in _populate_link
    req.link = self.finder.find_requirement(req, upgrade)
  File "C:\Users\phg\AppData\Local\Temp\tmpx9hnnirq\pip-20.1.1-py2.py3-none-any.whl\pip\_internal\index\package_finder.py", line 901, in find_requirement
    req.name, specifier=req.specifier, hashes=hashes,
  File "C:\Users\phg\AppData\Local\Temp\tmpx9hnnirq\pip-20.1.1-py2.py3-none-any.whl\pip\_internal\index\package_finder.py", line 883, in find_best_candidate
    candidates = self.find_all_candidates(project_name)
  File "C:\Users\phg\AppData\Local\Temp\tmpx9hnnirq\pip-20.1.1-py2.py3-none-any.whl\pip\_internal\index\package_finder.py", line 816, in find_all_candidates
    collected_links = self._link_collector.collect_links(project_name)
  File "C:\Users\phg\AppData\Local\Temp\tmpx9hnnirq\pip-20.1.1-py2.py3-none-any.whl\pip\_internal\index\collector.py", line 624, in collect_links
    self.find_links, expand_dir=True,
  File "C:\Users\phg\AppData\Local\Temp\tmpx9hnnirq\pip-20.1.1-py2.py3-none-any.whl\pip\_internal\index\collector.py", line 522, in group_locations
    sort_path(os.path.join(path, item))
  File "C:\Users\phg\AppData\Local\Temp\tmpx9hnnirq\pip-20.1.1-py2.py3-none-any.whl\pip\_internal\index\collector.py", line 503, in sort_path
    if mimetypes.guess_type(url, strict=False)[0] == 'text/html':
  File "C:\Users\phg\scoop\apps\pypy3\current\lib-python\3\mimetypes.py", line 291, in guess_type
    init()
  File "C:\Users\phg\scoop\apps\pypy3\current\lib-python\3\mimetypes.py", line 353, in init
    db.read_windows_registry()
  File "C:\Users\phg\scoop\apps\pypy3\current\lib-python\3\mimetypes.py", line 257, in read_windows_registry
    for subkeyname in enum_types(hkcr):
  File "C:\Users\phg\scoop\apps\pypy3\current\lib-python\3\mimetypes.py", line 248, in enum_types
    ctype = _winreg.EnumKey(mimedb, i)
UnicodeDecodeError: 'utf16' codec can't decode bytes in position 10-11: illegal encoding
PS C:\Users\phg>
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking