Skip to content

auto-detect python virtual environment#1235

Open
lorepap wants to merge 1 commit into
mininet:masterfrom
lorepap:master
Open

auto-detect python virtual environment#1235
lorepap wants to merge 1 commit into
mininet:masterfrom
lorepap:master

Conversation

@lorepap

@lorepap lorepap commented Nov 13, 2024

Copy link
Copy Markdown

The current installation script for Ubuntu distributions doesn't support installing mininet within a python virtual environment. The solution would be setting the PYTHON path to the current python venv, then running the script.
Also, when trying to install mininet with sudo permissions the system defaults to the system's python. It need some adjustment to the python path of the root user.

I've added a python virtual environment auto-detection - for a regular user - to the install.sh script to address the issue. Tested on Ubuntu 20.04 distro and python3-venv.

Comment thread util/install.sh

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've had a similar issue using mininet, I think this change definitely deserves a check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants