Cannot install sickrage - fails on Ubuntu

I am running Ubuntu 18.04.1 LTS
I ran
PIP install -U sickrage
The install fails with a Segmentation fault (core dumped)
This is doing a fresh install.

Installing collected packages: hachoir-parser, profilehooks, Send2Trash, ipaddress, six, configobj, idna, urllib3, certifi, chardet, requests, futures, pyxdg, webencodings, html5lib, lockfile, MarkupSafe, Mako, hachoir-metadata, bencode, gntp, appdirs, pytz, pysrt, enzyme, babelfish, click, beautifulsoup4, pbr, stevedore, rarfile, dogpile.cache, rebulk, python-dateutil, guessit, subliminal, future, pyasn1, rsa, ecdsa, python-jose, python-keycloak-client, unidecode, oauthlib, requests-oauthlib, python-twitter, pycparser, cffi, xmltodict, cfscrape, enum34, asn1crypto, cryptography, pyopenssl, attrs, pyasn1-modules, service-identity, tzlocal, feedparser, markdown2, arrow, fake-useragent, setuptools, funcsigs, APScheduler, lxml, PyJWT, twilio, py-unrar2, hachoir-core, psutil, singledispatch, backports-abc, tornado, msgpack-python, CacheControl, pynzb, contextlib2, raven, codernitydb, httplib2, oauth2, simplejson, jsonrpclib, MultipartPostHandler, sickrage
Successfully installed APScheduler-3.5.0 CacheControl-0.12.3 Mako-1.0.7 MarkupSafe-1.0 MultipartPostHandler-0.1.0 PyJWT-1.6.4 Send2Trash-1.4.2 appdirs-1.4.3 arrow-0.10.0 asn1crypto-0.24.0 attrs-18.2.0 babelfish-0.5.5 backports-abc-0.5 beautifulsoup4-4.6.0 bencode-1.0 certifi-2018.10.15 cffi-1.11.5 cfscrape-1.9.5 chardet-3.0.4 click-7.0 codernitydb-0.5.0 configobj-5.0.6 contextlib2-0.5.5 cryptography-2.3.1 dogpile.cache-0.6.7 ecdsa-0.13 enum34-1.1.6 enzyme-0.4.1 fake-useragent-0.1.8 feedparser-5.2.1 funcsigs-1.0.2 future-0.16.0 futures-3.2.0 gntp-1.0.3 guessit-2.1.4 hachoir-core-1.3.3 hachoir-metadata-1.3.3 hachoir-parser-1.3.4 html5lib-1.0.1 httplib2-0.11.3 idna-2.6 ipaddress-1.0.22 jsonrpclib-0.1.7 lockfile-0.12.2 lxml-4.2.5 markdown2-2.3.3 msgpack-python-0.5.6 oauth2-1.9.0.post1 oauthlib-2.1.0 pbr-5.1.0 profilehooks-1.9.0 psutil-5.4.7 py-unrar2-0.99.6 pyasn1-0.4.4 pyasn1-modules-0.2.2 pycparser-2.19 pynzb-0.1.0 pyopenssl-18.0.0 pysrt-1.1.1 python-dateutil-2.6.0 python-jose-3.0.1 python-keycloak-client-0.1.3 python-twitter-3.3 pytz-2017.3 pyxdg-0.25 rarfile-3.0 raven-6.7.0 rebulk-1.0.0 requests-2.18.4 requests-oauthlib-1.0.0 rsa-4.0 service-identity-17.0.0 setuptools-40.4.3 sickrage-9.3.99 simplejson-3.15.0 singledispatch- six-1.11.0 stevedore-1.30.0 subliminal-2.0.5 tornado-4.5.2 twilio-6.10.0 tzlocal-1.5.1 unidecode-0.4.21 urllib3-1.22 webencodings-0.5.1 xmltodict-0.11.0
Segmentation fault (core dumped)

Try pip install -U pip first

Did that, but then it gets a different error

pip install -U pip
Collecting pip
Downloading (1.3MB)
100% |████████████████████████████████| 1.3MB 552kB/s
Installing collected packages: pip
Successfully installed pip-18.1

pip install -U sickrage
Traceback (most recent call last):
File “/usr/bin/pip”, line 9, in
from pip import main
ImportError: cannot import name main

I rebooted the PC and now pip is working.
sickrage installed OK and is now running

1 Like

I had a similar issue under ubuntu (18.04.2 LTS) … it appears that ubuntu is somewhat confused with several versions of Python installed. Here is what I did to get things to work:

Follow the instructions as suggested for Linux except:

for #6 in the instructions ( Run from SiCKRAGE install folder pip3 install -r requirements.txt) I had to do this:

python3 -m pip install -r requirements.txt

I would imagine that if the ubuntu system only had Python3 installed, you would not need this step, but my system still runs Python 2 (for Couch Potato).

Hope this helps anyone having issues with their Ubuntu installs.

I also see that Sickrage starts up considerably faster in the Python 3 environment - not sure why, but thanks to the developers!

1 Like