Skip to content

Exception from truststore when installing editable pip using not editable pip #12864

@notatallshaw

Description

@notatallshaw

Description

This is on pip main, I think after #11647 has landed, when you install pip in editable mode using pip in not editable mode you get an exception, although the installation itself appears to succeed.

Expected behavior

No exception on editable install

pip version

24.2

Python version

3.12

OS

Linux

How to Reproduce

  1. git clone https://github.com/pypa/pip
  2. cd pip
  3. Create and activate Python 3.12 virtual environment
  4. python -m pip install .
  5. python -m pip install -e .

Output

$ python -m pip install -e .
Obtaining file:///home/damian/opensource/support/pip/pip
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Building wheels for collected packages: pip
  Building editable for pip (pyproject.toml) ... done
  Created wheel for pip: filename=pip-24.2.dev0-0.editable-py3-none-any.whl size=9633 sha256=ee68c183a99b2e54100600272d5340fcf701e747379917d6e609123361bb5615
  Stored in directory: /tmp/pip-ephem-wheel-cache-5tlhi9f3/wheels/74/89/b1/b2dda733bdd1d7513ad1e2f926bd41e01be53b3862742ca12b
Successfully built pip
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 24.2.dev0
    Uninstalling pip-24.2.dev0:
      Successfully uninstalled pip-24.2.dev0
Successfully installed pip-24.2.dev0
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/damian/opensource/support/pip/pip/.venv/lib/python3.12/site-packages/pip/__main__.py", line 24, in <module>
  File "/home/damian/opensource/support/pip/pip/.venv/lib/python3.12/site-packages/pip/_internal/cli/main.py", line 80, in main
  File "/home/damian/opensource/support/pip/pip/.venv/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 101, in main
  File "/home/damian/opensource/support/pip/pip/.venv/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 236, in _main
  File "/home/damian/opensource/support/pip/pip/.venv/lib/python3.12/site-packages/pip/_internal/cli/index_command.py", line 160, in handle_pip_version_check
  File "/home/damian/opensource/support/pip/pip/.venv/lib/python3.12/site-packages/pip/_internal/cli/index_command.py", line 95, in _build_session
  File "/home/damian/opensource/support/pip/pip/.venv/lib/python3.12/site-packages/pip/_internal/cli/index_command.py", line 46, in _create_truststore_ssl_context
  File "/home/damian/opensource/support/pip/pip/.venv/lib/python3.12/site-packages/pip/_vendor/truststore/_api.py", line 135, in load_verify_locations
FileNotFoundError: [Errno 2] No such file or directory

Code of Conduct

Metadata

Metadata

Assignees

Labels

type: bugA confirmed bug or unintended behavior

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions