[New-bugs-announce] [issue45667] Better error message on failing to create a venv due to failing ensurepip

Julien Palard report at bugs.python.org
Fri Oct 29 06:00:06 EDT 2021


New submission from Julien Palard <julien+python at palard.fr>:

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.)

----------
messages: 405297
nosy: mdk
priority: normal
severity: normal
status: open
title: Better error message on failing to create a venv due to failing ensurepip

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45667>
_______________________________________


More information about the New-bugs-announce mailing list