Skip to content

Python package missing somes core files  #1032

@Astate

Description

@Astate

When you want to run the venv module ( python -m venv venv) i have error because /usr/lib/python3.11/ensurepip/_bundled/setuptools-65.5.0-py3-none-any.whl are missing.

I reproduced the bug on another installation

I have python-pip and python-setuptools already installed.

When i manualy execute ensurepip i have missing file "/usr/lib/python3.11/ensurepip/_bundled/setuptools-65.5.0-py3-none-any.whl'"

it's one of files deleted from python stone.yaml
I guess the problem could come from there.

 python3 -m venv venv
Error: Command '['/home/user/test/venv/bin/python3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.

stone.yaml https://github.com/AerynOS/recipes/blob/2025-05-repo-rebuild/p/python/stone.yaml

setup       : |
    # De-vendored and shipped externally
    rm -v Lib/ensurepip/_bundled/setuptools-*-py3-none-any.whl
    rm -v Lib/ensurepip/_bundled/pip-*-py3-none-any.whl
python -m ensurepip --upgrade
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/lib/python3.11/ensurepip/__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
             ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/ensurepip/__init__.py", line 286, in _main
    return _bootstrap(
           ^^^^^^^^^^^
  File "/usr/lib/python3.11/ensurepip/__init__.py", line 178, in _bootstrap
    whl = wheel_path.read_bytes()
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/pathlib.py", line 1050, in read_bytes
    with self.open(mode='rb') as f:
         ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/pathlib.py", line 1044, in open
    return io.open(self, mode, buffering, encoding, errors, newline)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.11/ensurepip/_bundled/setuptools-65.5.0-py3-none-any.whl'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions