8000 auto-detect python virtual environment by lorepap · Pull Request #1235 · mininet/mininet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

auto-detect python virtual environment #1235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lorepap
Copy link
@lorepap lorepap commented Nov 13, 2024

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.

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
0