Open ghost opened 8 years ago
Hi! Re- run this commands
cd /srv/webvirtcloud
source venv/bin/activate
sudo chown -R www-data:www-data /srv/webvirtcloud/venv
If does not help,
cd /srv/webvirtcloud
source venv/bin/activate
which python
Thank you so much, but it doesn't help. I get another error:
root@vmhost:/srv/webvirtcloud# virtualenv venv
Running virtualenv with interpreter /usr/bin/python2
New python executable in /srv/webvirtcloud/venv/bin/python2
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtualenv.py", line 2363, in
Original exception was:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtualenv.py", line 2363, in
python3 https://www.phoronix.com/scan.php?page=news_item&px=Ubuntu-16.04-Python-3-Hopes
I have not tried to work without python2. Try it completely removed from the system if it is not needed . Make a clean installation of WVC
http://askubuntu.com/questions/761106/how-to-remove-python-2-in-16-04 to completely remove Python2 and everything that depends on it.
sudo apt purge python2.7-minimal
And re-install dependency and WVC-core
sudo apt-get -y install --reinstall git python-virtualenv python-dev libxml2-dev libvirt-dev zlib1g-dev nginx supervisor libsasl2-modules
clear virtualenv
rm -rf /srv/webvirtcloud/venv
install
cd /srv/webvirtcloud
virtualenv venv
source venv/bin/activate
pip install -r conf/requirements.txt
python manage.py migrate
sudo chown -R www-data:www-data /srv/webvirtcloud
sudo service nginx restart
sudo service supervisor restart
Nope.... Get this:
(venv)root@vmhost:/srv/webvirtcloud# virtualenv venv
Running virtualenv with interpreter /usr/bin/python2
New python executable in /srv/webvirtcloud/venv/bin/python2
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtualenv.py", line 2363, in
any idea? Ubuntu released 16.04.01 LTS..... And I still can not start WebVirtCloud...
I just upgrade from ubuntu 14.04 to 16.04 and WVC stop working. I update all sturtup scripts to systemd. So... When I run manualy: /srv/webvirtcloud/venv/bin/gunicorn webvirtcloud.wsgi:application -c /srv/webvirtcloud/gunicorn.conf.py
I get this one: bash: /srv/webvirtcloud/venv/bin/gunicorn: /srv/webvirtcloud/venv/bin/python: bad interpreter: Too many levels of symbolic links