New submission from Julien Palard <julien+pyt...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue45667>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to