strongswan / strongMan

Management UI for strongSwan
https://www.strongswan.org/
Other
117 stars 39 forks source link

Virtualenv is required and not installed. #125

Closed githubuser00 closed 3 years ago

githubuser00 commented 3 years ago

Virtualenv is required and not installed ubuntu@swan:~$ pip install virtualenv Requirement already satisfied: virtualenv in ./.local/lib/python3.9/site-packages (20.4.6) Requirement already satisfied: six<2,>=1.9.0 in /usr/lib/python3/dist-packages (from virtualenv) (1.15.0) Requirement already satisfied: filelock<4,>=3.0.0 in ./.local/lib/python3.9/site-packages (from virtualenv) (3.0.12) Requirement already satisfied: appdirs<2,>=1.4.3 in ./.local/lib/python3.9/site-packages (from virtualenv) (1.4.4) Requirement already satisfied: distlib<1,>=0.3.1 in ./.local/lib/python3.9/site-packages (from virtualenv) (0.3.1) ubuntu@swan:~$ cd strongMan-master/ ubuntu@swan:~/strongMan-master$ sudo ./setup.py install [sudo] password for ubuntu: [Errno 2] No such file or directory Virtualenv is required and not installed. ubuntu@swan:~/strongMan-master$

tobiasbrunner commented 3 years ago

The root user probably does not have that executable in its PATH. Looks like pip installed stuff in your home directory (see the ./.local path), did you try running that as root too?

Glujaz commented 3 years ago

Hello, I'm reoppening this, as I have the same issue. I'm doing this as root, and installed Python 3 (version 3.7), with pip3 and Virtualenv.

It seems really to be installed, so I'm definitly lost here...

` python3 -m venv -h usage: venv [-h] [--system-site-packages] [--symlinks | --copies] [--clear] [--upgrade] [--without-pip] [--prompt PROMPT] ENV_DIR [ENV_DIR ...]

Creates virtual Python environments in one or more target directories.

positional arguments: ENV_DIR A directory to create the environment in.

optional arguments: -h, --help show this help message and exit --system-site-packages Give the virtual environment access to the system site-packages dir. --symlinks Try to use symlinks rather than copies, when symlinks are not the default for the platform. --copies Try to use copies rather than symlinks, even when symlinks are the default for the platform. --clear Delete the contents of the environment directory if it already exists, before environment creation. --upgrade Upgrade the environment directory to use this version of Python, assuming Python has been upgraded in-place. --without-pip Skips installing or upgrading pip in the virtual environment (pip is bootstrapped by default) --prompt PROMPT Provides an alternative prompt prefix for this environment.

Once an environment has been created, you may wish to activate it, e.g. by sourcing an activate script in its bin directory. `

tobiasbrunner commented 3 years ago

What exactly is the problem/error? (Note that this is the issue tracker for strongMan, not for general virtualenv/venv/pip issues.)