Ubuntu Server - Installation Issue


#1

Hi,

I am having trouble installing Sickrage on my Ubuntu server (18.10).

I have followed the instruction but I seem to have trouble with keycloak.

When running Sickrage I get the following error :

Traceback (most recent call last):
  File "/opt/sickrage/sickrage/__init__.py", line 220, in main
    from sickrage.core import Core
  File "/opt/sickrage/sickrage/core/__init__.py", line 39, in <module>
    from keycloak.realm import KeycloakRealm
ImportError: No module named realm
Failed to import required libs, please run "pip install -r /opt/sickrage/require                                                                                                                                                             ments.txt" from console

Return of pip install -r /opt/sickrage/require ments.txt is :

Collecting python-keycloak-client==0.2.1 (from -r /opt/sickrage/requirements.txt (line 44))
  Downloading https://files.pythonhosted.org/packages/23/7a/88f316bd737392f52329542ff86aa3a02ffcd79d9ed44e16efeb410bb320/python-keycloak-client-0.2.1.tar.gz
    Complete output from command python setup.py egg_info:
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
      warnings.warn(msg)
    zip_safe flag not set; analyzing archive contents...

    Installed /tmp/pip-install-5orgRc/python-keycloak-client/.eggs/pytest_runner-4.4-py2.7.egg
    error in python-keycloak-client setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-5orgRc/python-keycloak-client/

I have been stuck on that for some time now, can anyone point me in the right direction ?

Cheers


#2

Do you have python 2.7.15 installed, try replacing pip with pip2


#3

Thanks for your help but it did not work.

Return :

  DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
    The directory '/home/ploutos/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
    The directory '/home/ploutos/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
    Collecting APScheduler==3.5.3 (from -r /opt/sickrage/requirements.txt (line 1))
      Downloading https://files.pythonhosted.org/packages/97/3a/fa3213cc325091b7729616594611fff31d72c2d4d590418c3efdf7424ae2/APScheduler-3.5.3-py2.py3-none-any.whl (57kB)
        100% |████████████████████████████████| 61kB 9.9MB/s
    Requirement already satisfied: babelfish==0.5.5 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 2)) (0.5.5)
    Requirement already satisfied: bencode==1.0 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 3)) (1.0)
    Collecting CacheControl==0.12.5 (from -r /opt/sickrage/requirements.txt (line 4))
      Downloading https://files.pythonhosted.org/packages/5e/f0/2c193ed1f17c97ae539da7e1c2d48b80d8cccb1917163b26a91ca4355aa6/CacheControl-0.12.5.tar.gz
    Collecting cfscrape==1.9.5 (from -r /opt/sickrage/requirements.txt (line 5))
      Downloading https://files.pythonhosted.org/packages/ee/5e/6f36d5305b4c5abe793a7a057003f342300e9b853384a11fee8dc58e6816/cfscrape-1.9.5.tar.gz
    Requirement already satisfied: configobj==5.0.6 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 6)) (5.0.6)
    Requirement already satisfied: feedparser==5.2.1 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 7)) (5.2.1)
    Collecting guessit==3.0.3 (from -r /opt/sickrage/requirements.txt (line 8))
      Downloading https://files.pythonhosted.org/packages/da/b6/8948ebd60686263b23d96ad7246b3f39b7033ea45bde9fa1e38d0eedc351/guessit-3.0.3.tar.gz (137kB)
        100% |████████████████████████████████| 143kB 10.2MB/s
    Requirement already satisfied: hachoir_core==1.3.3 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 9)) (1.3.3)
    Requirement already satisfied: hachoir_metadata==1.3.3 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 10)) (1.3.3)
    Requirement already satisfied: hachoir_parser==1.3.4 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 11)) (1.3.4)
    Requirement already satisfied: jsonrpclib==0.1.7 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 12)) (0.1.7)
    Collecting Mako==1.0.7 (from -r /opt/sickrage/requirements.txt (line 13))
      Downloading https://files.pythonhosted.org/packages/eb/f3/67579bb486517c0d49547f9697e36582cd19dafb5df9e687ed8e22de57fa/Mako-1.0.7.tar.gz (564kB)
        100% |████████████████████████████████| 573kB 15.0MB/s
    Collecting markdown2==2.3.6 (from -r /opt/sickrage/requirements.txt (line 14))
      Downloading https://files.pythonhosted.org/packages/7f/1b/ab4a20ef6f1cac5f39c1d70fa5124d1a6005d8d43677d3cfdf1dd501e626/markdown2-2.3.6.zip (166kB)
        100% |████████████████████████████████| 174kB 23.5MB/s
    Requirement already satisfied: oauth2==1.9.0.post1 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 15)) (1.9.0.post1)
    Collecting profilehooks==1.10.0 (from -r /opt/sickrage/requirements.txt (line 16))
      Downloading https://files.pythonhosted.org/packages/b6/b2/d2dfe3bab029df73991a3ba244d94c24d4a96e2fa2aabe6bca85fcc67304/profilehooks-1.10.0-py2.py3-none-any.whl
    Collecting Send2Trash==1.5.0 (from -r /opt/sickrage/requirements.txt (line 17))
      Downloading https://files.pythonhosted.org/packages/13/2e/ea40de0304bb1dc4eb309de90aeec39871b9b7c4bd30f1a3cdcb3496f5c0/Send2Trash-1.5.0.tar.gz
    Collecting six==1.11.0 (from -r /opt/sickrage/requirements.txt (line 18))
      Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
    Collecting subliminal==2.0.5 (from -r /opt/sickrage/requirements.txt (line 19))
      Downloading https://files.pythonhosted.org/packages/00/3d/0961c76f6ebf649e967f50d48b3db5c78a800c1758dbde17546456d46c4a/subliminal-2.0.5-py2-none-any.whl (67kB)
        100% |████████████████████████████████| 71kB 41.1MB/s
    Collecting tornado==5.1.1 (from -r /opt/sickrage/requirements.txt (line 20))
      Downloading https://files.pythonhosted.org/packages/e6/78/6e7b5af12c12bdf38ca9bfe863fcaf53dc10430a312d0324e76c1e5ca426/tornado-5.1.1.tar.gz (516kB)
        100% |████████████████████████████████| 522kB 24.7MB/s
    Collecting xmltodict==0.11.0 (from -r /opt/sickrage/requirements.txt (line 21))
      Downloading https://files.pythonhosted.org/packages/42/a9/7e99652c6bc619d19d58cdd8c47560730eb5825d43a7e25db2e1d776ceb7/xmltodict-0.11.0-py2.py3-none-any.whl
    Requirement already satisfied: MultipartPostHandler==0.1.0 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 22)) (0.1.0)
    Collecting beautifulsoup4==4.6.3 (from -r /opt/sickrage/requirements.txt (line 23))
      Downloading https://files.pythonhosted.org/packages/f8/c7/741c97d7366f4779ca73d244904978b43a81fd37d85fcf05ad19d472c1ce/beautifulsoup4-4.6.3-py2-none-any.whl (90kB)
        100% |████████████████████████████████| 92kB 24.4MB/s
    Collecting python_dateutil==2.7.5 (from -r /opt/sickrage/requirements.txt (line 24))
      Downloading https://files.pythonhosted.org/packages/74/68/d87d9b36af36f44254a8d512cbfc48369103a3b9e474be9bdfe536abfc45/python_dateutil-2.7.5-py2.py3-none-any.whl (225kB)
        100% |████████████████████████████████| 235kB 33.1MB/s
    Collecting pynzb==0.1.0 (from -r /opt/sickrage/requirements.txt (line 25))
      Downloading https://files.pythonhosted.org/packages/b1/90/b71ca66e2fee3f46281b3ecc853abe407a5ecd0cb4898af5bab48af63590/pynzb-0.1.0.tar.gz
    Collecting futures==3.2.0 (from -r /opt/sickrage/requirements.txt (line 26))
      Downloading https://files.pythonhosted.org/packages/2d/99/b2c4e9d5a30f6471e410a146232b4118e697fa3ffc06d6a65efde84debd0/futures-3.2.0-py2-none-any.whl
    Requirement already satisfied: gntp==1.0.3 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 27)) (1.0.3)
    Collecting python_twitter==3.5 (from -r /opt/sickrage/requirements.txt (line 28))
      Downloading https://files.pythonhosted.org/packages/b3/a9/2eb36853d8ca49a70482e2332aa5082e09b3180391671101b1612e3aeaf1/python_twitter-3.5-py2.py3-none-any.whl (67kB)
        100% |████████████████████████████████| 71kB 39.0MB/s
    Collecting pyxdg==0.26 (from -r /opt/sickrage/requirements.txt (line 29))
      Downloading https://files.pythonhosted.org/packages/39/03/12eb9062f43adb94e30f366743cb5c83fd15fef026500cd4de42c7c12280/pyxdg-0.26-py2.py3-none-any.whl (40kB)
        100% |████████████████████████████████| 40kB 29.9MB/s
    Collecting urllib3==1.24.1 (from -r /opt/sickrage/requirements.txt (line 30))
      Downloading https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl (118kB)
        100% |████████████████████████████████| 122kB 35.3MB/s
    Requirement already satisfied: py-unrar2==0.99.6 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 31)) (0.99.6)
    Requirement already satisfied: lockfile==0.12.2 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 32)) (0.12.2)
    Collecting requests==2.20.1 (from -r /opt/sickrage/requirements.txt (line 33))
      Downloading https://files.pythonhosted.org/packages/ff/17/5cbb026005115301a8fb2f9b0e3e8d32313142fe8b617070e7baad20554f/requests-2.20.1-py2.py3-none-any.whl (57kB)
        100% |████████████████████████████████| 61kB 43.0MB/s
    Collecting codernitydb==0.5.0 (from -r /opt/sickrage/requirements.txt (line 34))
      Downloading https://files.pythonhosted.org/packages/fb/14/ab1cdd890e93d4bb916fff9ea7482b88f1b4409e524cec5ec55188dd422a/CodernityDB-0.5.0.tar.gz (45kB)
        100% |████████████████████████████████| 51kB 39.5MB/s
    Requirement already satisfied: fake-useragent==0.1.11 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 35)) (0.1.11)
    Collecting html5lib==1.0.1 (from -r /opt/sickrage/requirements.txt (line 36))
      Downloading https://files.pythonhosted.org/packages/a5/62/bbd2be0e7943ec8504b517e62bab011b4946e1258842bc159e5dfde15b96/html5lib-1.0.1-py2.py3-none-any.whl (117kB)
        100% |████████████████████████████████| 122kB 36.2MB/s
    Collecting arrow==0.12.1 (from -r /opt/sickrage/requirements.txt (line 37))
      Downloading https://files.pythonhosted.org/packages/e0/86/4eb5228a43042e9a80fe8c84093a8a36f5db34a3767ebd5e1e7729864e7b/arrow-0.12.1.tar.gz (65kB)
        100% |████████████████████████████████| 71kB 41.3MB/s
    Collecting unidecode==1.0.23 (from -r /opt/sickrage/requirements.txt (line 38))
      Downloading https://files.pythonhosted.org/packages/31/39/53096f9217b057cb049fe872b7fc7ce799a1a89b76cf917d9639e7a558b5/Unidecode-1.0.23-py2.py3-none-any.whl (237kB)
        100% |████████████████████████████████| 245kB 30.0MB/s
    Collecting twilio==6.21.0 (from -r /opt/sickrage/requirements.txt (line 39))
      Downloading https://files.pythonhosted.org/packages/db/b5/278588b3a10aca78fea3795b8099e74e4be5b50cd779bd4accbfaac1ec48/twilio-6.21.0-py2.py3-none-any.whl (929kB)
        100% |████████████████████████████████| 931kB 20.1MB/s
    Requirement already satisfied: chardet==3.0.4 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 40)) (3.0.4)
    Collecting pytz==2018.7 (from -r /opt/sickrage/requirements.txt (line 41))
      Downloading https://files.pythonhosted.org/packages/f8/0e/2365ddc010afb3d79147f1dd544e5ee24bf4ece58ab99b16fbb465ce6dc0/pytz-2018.7-py2.py3-none-any.whl (506kB)
        100% |████████████████████████████████| 512kB 27.6MB/s
    Collecting tzlocal==2.0.0b1 (from -r /opt/sickrage/requirements.txt (line 42))
      Downloading https://files.pythonhosted.org/packages/a1/c8/85c53d4e45ab2a7494ff014782dee01d1fdf261baa357f459ce4a6963c21/tzlocal-2.0.0b1-py2.py3-none-any.whl
    Collecting raven==6.9.0 (from -r /opt/sickrage/requirements.txt (line 43))
      Downloading https://files.pythonhosted.org/packages/11/3a/b3e46b279b8bdd9eb55857d0e95044cad31732c80f628bb75e1e9e881a32/raven-6.9.0-py2.py3-none-any.whl (287kB)
        100% |████████████████████████████████| 296kB 19.0MB/s
    Collecting python-keycloak-client==0.2.1 (from -r /opt/sickrage/requirements.txt (line 44))
      Downloading https://files.pythonhosted.org/packages/23/7a/88f316bd737392f52329542ff86aa3a02ffcd79d9ed44e16efeb410bb320/python-keycloak-client-0.2.1.tar.gz
        Complete output from command python setup.py egg_info:
        /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
          warnings.warn(msg)
        zip_safe flag not set; analyzing archive contents...

        Installed /tmp/pip-install-Fw9rZw/python-keycloak-client/.eggs/pytest_runner-4.4-py2.7.egg
        error in python-keycloak-client setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.

        ----------------------------------------
    Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-Fw9rZw/python-keycloak-client/

#4

Are you running the pip command as root ?


#5

Yes
sudo pip2 install -r /opt/sickrage/requirements.txt


#6

try pip2 install -U pip then after try installing requirements


#7

Also try pip2 install -U setuptools distutils


#8

pip2 install -U pip returns :

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
The directory '/home/ploutos/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/ploutos/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages (19.0.3)

Returns in error :

Collecting setuptools
Downloading https://files.pythonhosted.org/packages/d1/6a/4b2fcefd2ea0868810e92d519dacac1ddc64a2e53ba9e3422c3b62b378a6/setuptools-40.8.0-py2.py3-none-any.whl (575kB)
100% |████████████████████████████████| 583kB 13.3MB/s
Collecting distutils
Could not find a version that satisfies the requirement distutils (from versions: )
No matching distribution found for distutils


#9

Ok, just do pip2 install -U setuptools then after thats finished try and install requirements.


#10

I did it, I got a new error when trying to launch sickrage :

Traceback (most recent call last):
  File "/opt/sickrage/sickrage/__init__.py", line 220, in main
    from sickrage.core import Core
  File "/opt/sickrage/sickrage/core/__init__.py", line 39, in <module>
    from keycloak.realm import KeycloakRealm
  File "/usr/local/lib/python2.7/dist-packages/keycloak/realm.py", line 2, in <module>
    from keycloak.authz import KeycloakAuthz
  File "/usr/local/lib/python2.7/dist-packages/keycloak/authz.py", line 11, in <module>
    from keycloak.exceptions import KeycloakClientError
ImportError: cannot import name KeycloakClientError
Failed to import required libs, please run "pip install -r /opt/sickrage/requirements.txt" from console

#11

What happens when you run pip2 install -r /opt/sickrage/requirements.txt


#12

Everything seems ok :

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
The directory '/home/ploutos/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/ploutos/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: APScheduler==3.5.3 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 1)) (3.5.3)
Requirement already satisfied: babelfish==0.5.5 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 2)) (0.5.5)
Requirement already satisfied: bencode==1.0 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 3)) (1.0)
Requirement already satisfied: CacheControl==0.12.5 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 4)) (0.12.5)
Requirement already satisfied: cfscrape==1.9.5 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 5)) (1.9.5)
Requirement already satisfied: configobj==5.0.6 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 6)) (5.0.6)
Requirement already satisfied: feedparser==5.2.1 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 7)) (5.2.1)
Requirement already satisfied: guessit==3.0.3 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 8)) (3.0.3)
Requirement already satisfied: hachoir_core==1.3.3 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 9)) (1.3.3)
Requirement already satisfied: hachoir_metadata==1.3.3 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 10)) (1.3.3)
Requirement already satisfied: hachoir_parser==1.3.4 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 11)) (1.3.4)
Requirement already satisfied: jsonrpclib==0.1.7 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 12)) (0.1.7)
Requirement already satisfied: Mako==1.0.7 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 13)) (1.0.7)
Requirement already satisfied: markdown2==2.3.6 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 14)) (2.3.6)
Requirement already satisfied: oauth2==1.9.0.post1 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 15)) (1.9.0.post1)
Requirement already satisfied: profilehooks==1.10.0 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 16)) (1.10.0)
Requirement already satisfied: Send2Trash==1.5.0 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 17)) (1.5.0)
Requirement already satisfied: six==1.11.0 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 18)) (1.11.0)
Requirement already satisfied: subliminal==2.0.5 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 19)) (2.0.5)
Requirement already satisfied: tornado==5.1.1 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 20)) (5.1.1)
Requirement already satisfied: xmltodict==0.11.0 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 21)) (0.11.0)
Requirement already satisfied: MultipartPostHandler==0.1.0 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 22)) (0.1.0)
Requirement already satisfied: beautifulsoup4==4.6.3 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 23)) (4.6.3)
Requirement already satisfied: python_dateutil==2.7.5 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 24)) (2.7.5)
Requirement already satisfied: pynzb==0.1.0 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 25)) (0.1.0)
Requirement already satisfied: futures==3.2.0 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 26)) (3.2.0)
Requirement already satisfied: gntp==1.0.3 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 27)) (1.0.3)
Requirement already satisfied: python_twitter==3.5 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 28)) (3.5)
Requirement already satisfied: pyxdg==0.26 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 29)) (0.26)
Requirement already satisfied: urllib3==1.24.1 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 30)) (1.24.1)
Requirement already satisfied: py-unrar2==0.99.6 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 31)) (0.99.6)
Requirement already satisfied: lockfile==0.12.2 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 32)) (0.12.2)
Requirement already satisfied: requests==2.20.1 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 33)) (2.20.1)
Requirement already satisfied: codernitydb==0.5.0 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 34)) (0.5.0)
Requirement already satisfied: fake-useragent==0.1.11 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 35)) (0.1.11)
Requirement already satisfied: html5lib==1.0.1 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 36)) (1.0.1)
Requirement already satisfied: arrow==0.12.1 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 37)) (0.12.1)
Requirement already satisfied: unidecode==1.0.23 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 38)) (1.0.23)
Requirement already satisfied: twilio==6.21.0 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 39)) (6.21.0)
Requirement already satisfied: chardet==3.0.4 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 40)) (3.0.4)
Requirement already satisfied: pytz==2018.7 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 41)) (2018.7)
Requirement already satisfied: tzlocal==2.0.0b1 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 42)) (2.0.0b1)
Requirement already satisfied: raven==6.9.0 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 43)) (6.9.0)
Requirement already satisfied: python-keycloak-client==0.2.1 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 44)) (0.2.1)
Requirement already satisfied: simplejson==3.16.0 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 45)) (3.16.0)
Requirement already satisfied: service_identity==17.0.0 in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 46)) (17.0.0)
Requirement already satisfied: certifi in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 47)) (2018.11.29)
Requirement already satisfied: pyasn1 in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 48)) (0.1.9)
Requirement already satisfied: lxml in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 49)) (4.3.2)
Requirement already satisfied: ipaddress in /home/ploutos/.local/lib/python2.7/site-packages (from -r /opt/sickrage/requirements.txt (line 50)) (1.0.16)
Requirement already satisfied: psutil in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 51)) (5.5.1)
Requirement already satisfied: cffi in /usr/local/lib/python2.7/dist-packages (from -r /opt/sickrage/requirements.txt (line 52)) (1.12.2)
Requirement already satisfied: funcsigs; python_version == "2.7" in /usr/local/lib/python2.7/dist-packages (from APScheduler==3.5.3->-r /opt/sickrage/requirements.txt (line 1)) (1.0.2)
Requirement already satisfied: setuptools>=0.7 in /usr/local/lib/python2.7/dist-packages (from APScheduler==3.5.3->-r /opt/sickrage/requirements.txt (line 1)) (40.8.0)
Requirement already satisfied: msgpack in /usr/local/lib/python2.7/dist-packages (from CacheControl==0.12.5->-r /opt/sickrage/requirements.txt (line 4)) (0.6.1)
Requirement already satisfied: rebulk in /usr/local/lib/python2.7/dist-packages (from guessit==3.0.3->-r /opt/sickrage/requirements.txt (line 8)) (1.0.0)
Requirement already satisfied: MarkupSafe>=0.9.2 in /home/ploutos/.local/lib/python2.7/site-packages (from Mako==1.0.7->-r /opt/sickrage/requirements.txt (line 13)) (0.23)
Requirement already satisfied: httplib2 in /home/ploutos/.local/lib/python2.7/site-packages (from oauth2==1.9.0.post1->-r /opt/sickrage/requirements.txt (line 15)) (0.9.2)
Requirement already satisfied: dogpile.cache>=0.6.0 in /usr/local/lib/python2.7/dist-packages (from subliminal==2.0.5->-r /opt/sickrage/requirements.txt (line 19)) (0.7.1)
Requirement already satisfied: rarfile>=2.7 in /usr/local/lib/python2.7/dist-packages (from subliminal==2.0.5->-r /opt/sickrage/requirements.txt (line 19)) (3.0)
Requirement already satisfied: pysrt>=1.0.1 in /home/ploutos/.local/lib/python2.7/site-packages (from subliminal==2.0.5->-r /opt/sickrage/requirements.txt (line 19)) (1.1.0)
Requirement already satisfied: enzyme>=0.4.1 in /home/ploutos/.local/lib/python2.7/site-packages (from subliminal==2.0.5->-r /opt/sickrage/requirements.txt (line 19)) (0.4.1)
Requirement already satisfied: stevedore>=1.0.0 in /home/ploutos/.local/lib/python2.7/site-packages (from subliminal==2.0.5->-r /opt/sickrage/requirements.txt (line 19)) (1.12.0)
Requirement already satisfied: click>=4.0 in /home/ploutos/.local/lib/python2.7/site-packages (from subliminal==2.0.5->-r /opt/sickrage/requirements.txt (line 19)) (6.4)
Requirement already satisfied: appdirs>=1.3 in /usr/local/lib/python2.7/dist-packages (from subliminal==2.0.5->-r /opt/sickrage/requirements.txt (line 19)) (1.4.3)
Requirement already satisfied: singledispatch in /home/ploutos/.local/lib/python2.7/site-packages (from tornado==5.1.1->-r /opt/sickrage/requirements.txt (line 20)) (3.4.0.3)
Requirement already satisfied: backports_abc>=0.4 in /home/ploutos/.local/lib/python2.7/site-packages (from tornado==5.1.1->-r /opt/sickrage/requirements.txt (line 20)) (0.4)
Requirement already satisfied: future in /home/ploutos/.local/lib/python2.7/site-packages (from python_twitter==3.5->-r /opt/sickrage/requirements.txt (line 28)) (0.15.2)
Requirement already satisfied: requests-oauthlib in /home/ploutos/.local/lib/python2.7/site-packages (from python_twitter==3.5->-r /opt/sickrage/requirements.txt (line 28)) (0.6.1)
Requirement already satisfied: idna<2.8,>=2.5 in /usr/local/lib/python2.7/dist-packages (from requests==2.20.1->-r /opt/sickrage/requirements.txt (line 33)) (2.7)
Requirement already satisfied: webencodings in /usr/local/lib/python2.7/dist-packages (from html5lib==1.0.1->-r /opt/sickrage/requirements.txt (line 36)) (0.5.1)
Requirement already satisfied: backports.functools_lru_cache>=1.2.1 in /usr/local/lib/python2.7/dist-packages (from arrow==0.12.1->-r /opt/sickrage/requirements.txt (line 37)) (1.5)
Requirement already satisfied: PyJWT>=1.4.2 in /usr/local/lib/python2.7/dist-packages (from twilio==6.21.0->-r /opt/sickrage/requirements.txt (line 39)) (1.7.1)
Requirement already satisfied: contextlib2; python_version < "3.2" in /usr/local/lib/python2.7/dist-packages (from raven==6.9.0->-r /opt/sickrage/requirements.txt (line 43)) (0.5.5)
Requirement already satisfied: python-jose in /usr/local/lib/python2.7/dist-packages (from python-keycloak-client==0.2.1->-r /opt/sickrage/requirements.txt (line 44)) (3.0.1)
Requirement already satisfied: attrs in /usr/lib/python2.7/dist-packages (from service_identity==17.0.0->-r /opt/sickrage/requirements.txt (line 46)) (17.4.0)
Requirement already satisfied: pyasn1-modules in /usr/lib/python2.7/dist-packages (from service_identity==17.0.0->-r /opt/sickrage/requirements.txt (line 46)) (0.2.1)
Requirement already satisfied: pyopenssl>=0.12 in /usr/lib/python2.7/dist-packages (from service_identity==17.0.0->-r /opt/sickrage/requirements.txt (line 46)) (18.0.0)
Requirement already satisfied: pycparser in /home/ploutos/.local/lib/python2.7/site-packages (from cffi->-r /opt/sickrage/requirements.txt (line 52)) (2.14)
Requirement already satisfied: decorator in /home/ploutos/.local/lib/python2.7/site-packages (from dogpile.cache>=0.6.0->subliminal==2.0.5->-r /opt/sickrage/requirements.txt (line 19)) (4.0.9)
Requirement already satisfied: pbr>=1.6 in /home/ploutos/.local/lib/python2.7/site-packages (from stevedore>=1.0.0->subliminal==2.0.5->-r /opt/sickrage/requirements.txt (line 19)) (1.8.1)
Requirement already satisfied: oauthlib>=0.6.2 in /home/ploutos/.local/lib/python2.7/site-packages (from requests-oauthlib->python_twitter==3.5->-r /opt/sickrage/requirements.txt (line 28)) (1.0.3)
Requirement already satisfied: ecdsa<1.0 in /usr/local/lib/python2.7/dist-packages (from python-jose->python-keycloak-client==0.2.1->-r /opt/sickrage/requirements.txt (line 44)) (0.13)
Requirement already satisfied: rsa in /usr/local/lib/python2.7/dist-packages (from python-jose->python-keycloak-client==0.2.1->-r /opt/sickrage/requirements.txt (line 44)) (4.0)

#13

OK, try installing the requirements now but using the same user you run the app as if its not root


#14

Hi,

Tried it same result:

Traceback (most recent call last):

File “/opt/sickrage/sickrage/init.py”, line 220, in main

from sickrage.core import Core

File “/opt/sickrage/sickrage/core/init.py”, line 39, in

from keycloak.realm import KeycloakRealm

File “/usr/local/lib/python2.7/dist-packages/keycloak/realm.py”, line 2, in

from keycloak.authz import KeycloakAuthz

File “/usr/local/lib/python2.7/dist-packages/keycloak/authz.py”, line 11, in

from keycloak.exceptions import KeycloakClientError

ImportError: cannot import name KeycloakClientError

Failed to import required libs, please run “pip install -r /opt/sickrage/requirements.txt” from consol


#15

Have you tried git pull ?


#16

First I would like thank you for your time and help!

I tried git pull with success, I still have the same error though.


#17

Can.you grant me SSH access ? Just pm me login details


#18

Have you found a solution to this? I am running into a very similar issue with keycloak, mine is saying no Module named uma1. I have also tried all of the steps listed here, but when trying to install requirements it also shows all requirements satisfied.

Traceback (most recent call last):
File “~/.sickrage/sickrage/init.py”, line 220, in main
from sickrage.core import Core
File “~/.sickrage/sickrage/core/init.py”, line 39, in
from keycloak.realm import KeycloakRealm
File “~/.local/lib/python2.7/site-packages/keycloak/realm.py”, line 6, in
from keycloak.uma1 import KeycloakUMA1
ImportError: No module named uma1
Failed to import required libs, please run “pip install -r ~/.sickrage/requirements.txt” from console


#19

Try pip insall -U python-keycloak-client