Skip to content

Instantly share code, notes, and snippets.

@ressu
Last active January 30, 2016 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ressu/0e246c9bb4df160d29f8 to your computer and use it in GitHub Desktop.
Save ressu/0e246c9bb4df160d29f8 to your computer and use it in GitHub Desktop.

SickGear Wiki: Reporting Issues | Frequently Answered Questions | Install Guides

Pyenv : SickGear Install Guide


Python development dependencies

``` You need to install the development dependencies for python manually. This guide doesn't cover those. Usually this means that you need a working compiler and standard headers. ```

Installation

Clone the repository to where you want to install it, in this case /opt/SickGear Please update the commands with the user you wish to run SickGear as. In this case it's going to be user1.

The commands below are run as as user1.

sudo git clone https://github.com/SickGear/SickGear.git /opt/SickGear
sudo chown user1 -R /opt/SickGear

Install pyenv

git clone https://github.com/yyuu/pyenv /opt/SickGear/.pyenv

Install the desired python version

PYENV_ROOT=/opt/SickGear/.pyenv /opt/SickGear/.pyenv/bin/pyenv install 2.7.10

Install SickGear dependencies

cd /opt/SickGear && /opt/SickGear/.pyenv/versions/2.7.10/bin/pip install -r requirements.txt

Start SickGear

/opt/SickGear/.pyenv/versions/2.7.10/bin/python /opt/SickGear/SickBeard.py

You should be able to access SickGear at http://localhost:8081.

If you want SickGear to start at boot.

sudo cp /opt/SickGear/init-scripts/init.ubuntu /etc/init.d/sickgear
echo "PYTHON_BIN=/opt/SickGear/.pyenv/versions/2.7.10/bin/python" | sudo tee /etc/default/sickgear
echo "RUN_AS=user1" | sudo tee -a /etc/default/sickgear
update-rc.d sickgear defaults

Now make sure SickGear isn't running and start the service.

Run the service

sudo service SickGear start

All done, you can access SickGear at http://localhost:8081


#!/bin/sh
cd /opt
git clone https://github.com/SickGear/SickGear SickGear
cd SickGear
git clone https://github.com/yyuu/pyenv .pyenv
/opt/SickGear/.pyenv/bin/pyenv install 2.7.10
pyenv local 2.7.10
/opt/SickGear/.pyenv/shims/pip install -f requirements.txt
/opt/SickGear/.pyenv/shims/python2.7 ./SickBeard.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment