python3.8-venv should depend on python3-distutils
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python3.8 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Originally reported here: https:/
I'm also surprised to see a package added to LTS so late in the game, is there a change in policy around new packages / feature bumps that I missed?
Here's a reproduction using docker:
```
FROM ubuntu:bionic
RUN apt-get update && apt-get install -yq python3.8-venv
RUN python3.8 -m venv /venv
```
```
Step 3/3 : RUN python3.8 -m venv /venv
---> Running in 41a792e03c49
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.
apt-get install python3-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
Failing command: ['/venv/
The command '/bin/sh -c python3.8 -m venv /venv' returned a non-zero code: 1
```
The inner (hidden) error:
```
root@f806220c24
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.
apt-get install python3-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
Failing command: ['/venv/
root@f806220c24
Traceback (most recent call last):
File "/usr/lib/
import pip._internal
File "<frozen zipimport>", line 259, in load_module
File "/tmp/tmpmmf52d
File "<frozen zipimport>", line 259, in load_module
File "/tmp/tmpmmf52d
File "<frozen zipimport>", line 259, in load_module
File "/tmp/tmpmmf52d
ImportError: cannot import name 'sysconfig' from 'distutils' (/usr/lib/
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
return _run_code(code, main_globals, None,
File "/usr/lib/
exec(code, run_globals)
File "/usr/lib/
sys.
File "/usr/lib/
return _bootstrap(
File "/usr/lib/
return _run_pip(args + _PROJECTS, additional_paths)
File "/usr/lib/
import pip
File "<frozen zipimport>", line 259, in load_module
File "/venv/
File "<frozen zipimport>", line 259, in load_module
File "/venv/
File "<frozen zipimport>", line 259, in load_module
File "/venv/
ImportError: cannot import name 'sysconfig' from 'distutils' (/usr/lib/
```
Status changed to 'Confirmed' because the bug affects multiple users.