RustPython icon indicating copy to clipboard operation
RustPython copied to clipboard

Install pip failed

Open baitian752 opened this issue 1 year ago • 5 comments

$ rustpython --install-pip
Traceback (most recent call last):
  File "runpy", line 197, in _run_module_as_main
  File "runpy", line 86, in _run_code
  File "ensurepip.__main__", line 5, in <module>
  File "ensurepip", line 283, in _main
  File "ensurepip", line 160, in _bootstrap
  File "ensurepip", line 169, in _bootstrap
  File "importlib.resources", line 88, in read_binary
  File "importlib.resources", line 1, in open_binary
FileNotFoundError: 'setuptools-58.1.0-py3-none-any.whl' resource not found in 'ensurepip._bundled'

Revision: c48c2290f44eabcae85fd6d056776f53cea10a30 Build target: x86_64-unknown-linux-musl Build type: release Features: ssl,freeze-stdlib

baitian752 avatar Dec 14 '22 16:12 baitian752

What version of Python are you running? - Clerkie

ishaan-jaff avatar Dec 28 '22 07:12 ishaan-jaff

same here for ssl,jit,freeze-stdlib

Alfex4936 avatar Jan 21 '23 12:01 Alfex4936

Hm, not sure how this plays with freezing. You can get pip with --install-pip get-pip for now though, since that grabs it from bootstrap.pypa.io.

DimitrisJim avatar Jan 22 '23 13:01 DimitrisJim

Maybe we missed to bundle *.whl during freezing

youknowone avatar Feb 09 '23 14:02 youknowone

oh, yep. freezing is bundling compiled bytecode. binaries which is not directly compiled into bytecode are not frozen.

youknowone avatar Feb 09 '23 16:02 youknowone