Python usuable in nightly build?

Hi with latest nightly build python does not look fully set up:

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 install python3.11-venv

You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.

Failing command: /home/jkoorts/rvas-router/.venv/bin/python3

And then,

jkoorts@vyos:~/rvas-router$ pip3 install -r requirements.txt

Invalid command: [pip3]

jkoorts@vyos:~/rvas-router$

jkoorts@vyos:~/rvas-router$ sudo apt install python3.11-venv
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Package python3.11-venv is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘python3.11-venv’ has no installation candidate

Was pip available by default before?

VyOS has no repos for apt in sources.list but they can be manually re-added. For testing and dev work, I’ve got an Ansible playbook that drops a config into /etc/apt/sources.list.d/, along the lines of:

deb http://deb.debian.org/debian bookworm main non-free-firmware
deb http://deb.debian.org/debian-security/ bookworm-security main non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main non-free-firmware

I also add the VyOS repos, but don’t recommend this for normal use - you do not want those packages to update outside of a complete image upgrade.

Keep in mind that most changes outside VyOS config are persistent only to a particular installed firmware image, if you upgrade to a different firmware image, the changes are left behind (still consuming disk space).

Thanks that did the trick.

I was expecting too much ‘python’ to work because of the VyMGMT support.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.