venv doesn't work

Bug #1968755 reported by Nico Schlömer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python3.10 (Ubuntu)
New
Undecided
Unassigned

Bug Description

There's something wrong with Python 3.10 on Ubuntu 22.04. I'm pulling my hair out, but can't figure out what's going wrong. I condensed it to

```
virtualenv venv
venv/bin/python --version
```

This should work, but only gives

```
created virtual environment CPython3.10.4.final.0-64 in 130ms
  creator CPython3Posix(dest=/home/nschloe/software/meshpro/meshio-dev/venv, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/nschloe/.local/share/virtualenv)
    added seed packages: pip==22.0.4, setuptools==60.9.3, wheel==0.37.1
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
❯ venv/bin/python --version
zsh: no such file or directory: venv/bin/python
```

Let me know what else I can do to debug.

Revision history for this message
Nils Büchner (n.buechner) wrote :

can't reproduce this really.

> uname -a
Linux xxxxx 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

> virtualenv venv
created virtual environment CPython3.10.4.final.0-64 in 120ms
  creator CPython3Posix(dest=/home/ravage/Downloads/venv, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/ravage/.local/share/virtualenv)
    added seed packages: pip==22.0.2, setuptools==59.6.0, wheel==0.37.1
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

> venv/bin/python --version
Python 3.10.4

Revision history for this message
Nico Schlömer (nschloe) wrote :

I tried again and still have the same issue. The problem is that python is in
```
venv/local/bin/python
```
and not
```
venv/bin/python
```

Revision history for this message
Nico Schlömer (nschloe) wrote :

The issue is also discussed in https://github.com/pypa/virtualenv/issues/2340.

Revision history for this message
Nico Schlömer (nschloe) wrote :

A workaround by https://askubuntu.com/a/1415153/75918:

export DEB_PYTHON_INSTALL_LAYOUT='deb'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.