Skip to content

installing sci wms with anaconda

Rich Signell edited this page Nov 4, 2015 · 4 revisions

Removing my existing sci-wms environment, sci-wms installation and starting fresh:

sudo rm -rf /home/usgs/miniconda/envs/sci-wms
sudo rm -rf /home/usgs/python/sci-wms

Installing using Conda:

# execute as user with sudo rights 
sudo supervisorctl start sciwms

# switch to user running sci-wms
sudo su - usgs
source activate ioos
conda create -n sci-wms python=3.4
source activate sci-wms
# cd to directory where you want sci-wms installed:
cd /home/usgs/python
git clone https://github.com/sci-wms/sci-wms.git
cd sci-wms
# install the sci-wms requirements from conda
conda install sci-wms

# downgrade libspatialindex from 1.8.5 to 1.8.0
conda install --channel rustychris libspatialindex==1.8.0

export DJANGO_SETTINGS_MODULE="sciwms.settings.prod"
python manage.py migrate
python manage.py createsuperuser
python manage.py collectstatic
py.test -rxs --verbose

# switch back to user with sudo rights
exit
sudo supervisorctl start sciwms