This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Better error message on failing to create a venv due to failing ensurepip
Type: Stage:
Components: Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: mdk
Priority: normal Keywords:

Created on 2021-10-29 10:00 by mdk, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg405297 - (view) Author: Julien Palard (mdk) * (Python committer) Date: 2021-10-29 10:00
Currently if ensurepip fails for a reason or another, for example if a wrong module gets imported:

$ touch http.py
$ python3.10 -m venv .venv
Error: Command '['/tmp/.venv/bin/python3.10', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.

the error is not helpfull. Maybe venv should just dump the stderr from ensurepip so we can learn a bit more about it (it's « understandable » in ensurepip traceback that it's in relation with http.py, in the given example.)
History
Date User Action Args
2022-04-11 14:59:51adminsetgithub: 89830
2021-10-29 10:00:06mdkcreate