Error installing requirements

I’m trying to install on a freshly installed Armbian system.

I follow

  • Install Python 3.7 from https://www.python.org/downloads/ if on Windows or apt install python3.7 if on Linux
  • Run git clone https://git.sickrage.ca/sickrage/sickrage
  • Run from SiCKRAGE install folder python3 -m pip install -r requirements.txt

then

~/sickrage$ sudo python3 -m pip install -r requirements.txt
Collecting APScheduler==3.5.3 (from -r requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/97/3a/fa3213cc325091b7729616594611fff31d72c2d4d590418c3efdf7424ae2/APScheduler-3.5.3-py2.py3-none-any.whl
Collecting babelfish==0.5.5 (from -r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/34/b7/b36c651a9136990060ab4d6c9a32de81752123105b940b2f3b958e5c6cd0/babelfish-0.5.5.tar.gz
Collecting bencode3==0.1.0 (from -r requirements.txt (line 3))
Using cached https://files.pythonhosted.org/packages/71/39/35a61c2bbc00804951c3b134d9065336db13233b9fea79022c159ed4ff33/bencode3-0.1.0.tar.gz
Collecting CacheControl==0.12.5 (from -r requirements.txt (line 4))
Using cached https://files.pythonhosted.org/packages/5e/f0/2c193ed1f17c97ae539da7e1c2d48b80d8cccb1917163b26a91ca4355aa6/CacheControl-0.12.5.tar.gz
Collecting cfscrape==2.0.8 (from -r requirements.txt (line 5))
Using cached https://files.pythonhosted.org/packages/3e/56/099334794fb1aeedcb338ffbd83f5a6302a32b7961410918c8484493d142/cfscrape-2.0.8-py3-none-any.whl
Collecting configobj==5.0.6 (from -r requirements.txt (line 6))
Using cached https://files.pythonhosted.org/packages/64/61/079eb60459c44929e684fa7d9e2fdca403f67d64dd9dbac27296be2e0fab/configobj-5.0.6.tar.gz
Collecting feedparser==5.2.1 (from -r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/91/d8/7d37fec71ff7c9dbcdd80d2b48bcdd86d6af502156fc93846fb0102cb2c4/feedparser-5.2.1.tar.bz2
Collecting guessit==3.0.3 (from -r requirements.txt (line 8))
Using cached https://files.pythonhosted.org/packages/da/b6/8948ebd60686263b23d96ad7246b3f39b7033ea45bde9fa1e38d0eedc351/guessit-3.0.3.tar.gz
Collecting hachoir==3.0a5 (from -r requirements.txt (line 9))
Using cached https://files.pythonhosted.org/packages/e4/d3/af2a24dd2af22e199d57fa291cb23d357e816fca8a99ac02faaeae6dab21/hachoir-3.0a5-py3-none-any.whl
Collecting Mako==1.0.9 (from -r requirements.txt (line 10))
Using cached https://files.pythonhosted.org/packages/a1/bb/f4e5c056e883915c37bb5fb6fab7f00a923c395674f83bfb45c9ecf836b6/Mako-1.0.9.tar.gz
Collecting markdown2==2.3.6 (from -r requirements.txt (line 11))
Using cached https://files.pythonhosted.org/packages/7f/1b/ab4a20ef6f1cac5f39c1d70fa5124d1a6005d8d43677d3cfdf1dd501e626/markdown2-2.3.6.zip
Collecting oauth2==1.9.0.post1 (from -r requirements.txt (line 12))
Using cached https://files.pythonhosted.org/packages/a0/6f/86db603912ecd04109af952c38bc08928886cf0e34c723481fa7db98b4b5/oauth2-1.9.0.post1-py2.py3-none-any.whl
Collecting profilehooks==1.10.0 (from -r requirements.txt (line 13))
Using cached https://files.pythonhosted.org/packages/b6/b2/d2dfe3bab029df73991a3ba244d94c24d4a96e2fa2aabe6bca85fcc67304/profilehooks-1.10.0-py2.py3-none-any.whl
Collecting Send2Trash==1.5.0 (from -r requirements.txt (line 14))
Using cached https://files.pythonhosted.org/packages/49/46/c3dc27481d1cc57b9385aff41c474ceb7714f7935b1247194adae45db714/Send2Trash-1.5.0-py3-none-any.whl
Collecting six==1.11.0 (from -r requirements.txt (line 15))
Using cached https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting subliminal==2.0.5 (from -r requirements.txt (line 16))
Using cached https://files.pythonhosted.org/packages/ca/0e/acdebf8ecf30557206f2e3852c96564f7585d2f27f33f4fd5a608fcfdc2c/subliminal-2.0.5-py3-none-any.whl
Collecting tornado==6.0.3 (from -r requirements.txt (line 17))
Using cached https://files.pythonhosted.org/packages/30/78/2d2823598496127b21423baffaa186b668f73cd91887fcef78b6eade136b/tornado-6.0.3.tar.gz
Collecting xmltodict==0.11.0 (from -r requirements.txt (line 18))
Using cached https://files.pythonhosted.org/packages/42/a9/7e99652c6bc619d19d58cdd8c47560730eb5825d43a7e25db2e1d776ceb7/xmltodict-0.11.0-py2.py3-none-any.whl
Collecting MultipartPostHandler==0.1.0 (from -r requirements.txt (line 19))
Using cached https://files.pythonhosted.org/packages/18/48/ba7c00a469cc0a0a7c19deebff844f15779256c209a4992e06e0f511ae36/MultipartPostHandler-0.1.0.tar.gz
Collecting beautifulsoup4==4.6.3 (from -r requirements.txt (line 20))
Using cached https://files.pythonhosted.org/packages/21/0a/47fdf541c97fd9b6a610cb5fd518175308a7cc60569962e776ac52420387/beautifulsoup4-4.6.3-py3-none-any.whl
Collecting python_dateutil==2.7.5 (from -r requirements.txt (line 21))
Using cached https://files.pythonhosted.org/packages/74/68/d87d9b36af36f44254a8d512cbfc48369103a3b9e474be9bdfe536abfc45/python_dateutil-2.7.5-py2.py3-none-any.whl
Collecting pynzb==0.1.0 (from -r requirements.txt (line 22))
Using cached https://files.pythonhosted.org/packages/b1/90/b71ca66e2fee3f46281b3ecc853abe407a5ecd0cb4898af5bab48af63590/pynzb-0.1.0.tar.gz
Collecting future==0.17.1 (from -r requirements.txt (line 23))
Using cached https://files.pythonhosted.org/packages/90/52/e20466b85000a181e1e144fd8305caf2cf475e2f9674e797b222f8105f5f/future-0.17.1.tar.gz
Collecting gntp==1.0.3 (from -r requirements.txt (line 24))
Using cached https://files.pythonhosted.org/packages/a7/34/d94c3c9298d57dfcdbcd1f9412b9aa9818fdab53704dfc53d594df1c5830/gntp-1.0.3-py3-none-any.whl
Collecting python_twitter==3.5 (from -r requirements.txt (line 25))
Using cached https://files.pythonhosted.org/packages/b3/a9/2eb36853d8ca49a70482e2332aa5082e09b3180391671101b1612e3aeaf1/python_twitter-3.5-py2.py3-none-any.whl
Collecting pyxdg==0.26 (from -r requirements.txt (line 26))
Using cached https://files.pythonhosted.org/packages/39/03/12eb9062f43adb94e30f366743cb5c83fd15fef026500cd4de42c7c12280/pyxdg-0.26-py2.py3-none-any.whl
Requirement already satisfied: urllib3==1.24.1 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 27)) (1.24.1)
Collecting unrar==0.3 (from -r requirements.txt (line 28))
Using cached https://files.pythonhosted.org/packages/bc/cb/2e9dcc0632ea96c3618b47d30ec1d8bcb55e0f45137690c9f2dae4ece762/unrar-0.3.tar.gz
Collecting lockfile==0.12.2 (from -r requirements.txt (line 29))
Using cached https://files.pythonhosted.org/packages/c8/22/9460e311f340cb62d26a38c419b1381b8593b0bb6b5d1f056938b086d362/lockfile-0.12.2-py2.py3-none-any.whl
Requirement already satisfied: requests==2.21.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 30)) (2.21.0)
Collecting fake-useragent==0.1.11 (from -r requirements.txt (line 31))
Using cached https://files.pythonhosted.org/packages/d1/79/af647635d6968e2deb57a208d309f6069d31cb138066d7e821e575112a80/fake-useragent-0.1.11.tar.gz
Collecting html5lib==1.0.1 (from -r requirements.txt (line 32))
Using cached https://files.pythonhosted.org/packages/a5/62/bbd2be0e7943ec8504b517e62bab011b4946e1258842bc159e5dfde15b96/html5lib-1.0.1-py2.py3-none-any.whl
Collecting arrow==0.12.1 (from -r requirements.txt (line 33))
Using cached https://files.pythonhosted.org/packages/e0/86/4eb5228a43042e9a80fe8c84093a8a36f5db34a3767ebd5e1e7729864e7b/arrow-0.12.1.tar.gz
Collecting unidecode==1.0.23 (from -r requirements.txt (line 34))
Using cached https://files.pythonhosted.org/packages/31/39/53096f9217b057cb049fe872b7fc7ce799a1a89b76cf917d9639e7a558b5/Unidecode-1.0.23-py2.py3-none-any.whl
Collecting twilio==6.21.0 (from -r requirements.txt (line 35))
Using cached https://files.pythonhosted.org/packages/db/b5/278588b3a10aca78fea3795b8099e74e4be5b50cd779bd4accbfaac1ec48/twilio-6.21.0-py2.py3-none-any.whl
Requirement already satisfied: chardet==3.0.4 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 36)) (3.0.4)
Collecting pytz==2018.7 (from -r requirements.txt (line 37))
Using cached https://files.pythonhosted.org/packages/f8/0e/2365ddc010afb3d79147f1dd544e5ee24bf4ece58ab99b16fbb465ce6dc0/pytz-2018.7-py2.py3-none-any.whl
Collecting tzlocal==2.0.0b1 (from -r requirements.txt (line 38))
Using cached https://files.pythonhosted.org/packages/a1/c8/85c53d4e45ab2a7494ff014782dee01d1fdf261baa357f459ce4a6963c21/tzlocal-2.0.0b1-py2.py3-none-any.whl
Collecting raven==6.9.0 (from -r requirements.txt (line 39))
Using cached https://files.pythonhosted.org/packages/11/3a/b3e46b279b8bdd9eb55857d0e95044cad31732c80f628bb75e1e9e881a32/raven-6.9.0-py2.py3-none-any.whl
Collecting python-keycloak-client==0.2.2 (from -r requirements.txt (line 40))
Using cached https://files.pythonhosted.org/packages/8b/b7/da61548795d154d7ff4e41dcaa5615948efec78686eb5af84c3d5cca6550/python_keycloak_client-0.2.2-py3-none-any.whl
Collecting simplejson==3.16.0 (from -r requirements.txt (line 41))
Using cached https://files.pythonhosted.org/packages/e3/24/c35fb1c1c315fc0fffe61ea00d3f88e85469004713dab488dee4f35b0aff/simplejson-3.16.0.tar.gz
Collecting service_identity==17.0.0 (from -r requirements.txt (line 42))
Using cached https://files.pythonhosted.org/packages/29/fa/995e364220979e577e7ca232440961db0bf996b6edaf586a7d1bd14d81f1/service_identity-17.0.0-py2.py3-none-any.whl
Collecting knowit==0.2.4 (from -r requirements.txt (line 43))
Using cached https://files.pythonhosted.org/packages/be/75/bfe2ca625238f45789e00ed35bbd9a293d151eaf2a8cbe75c54bfc32ad56/knowit-0.2.4.tar.gz
Collecting sqlalchemy==1.3.2 (from -r requirements.txt (line 44))
Using cached https://files.pythonhosted.org/packages/2a/9b/9b8aa2d5dbe2e4052cb4c84b8cf5e31686943f24b0565f436439bdc343b5/SQLAlchemy-1.3.2.tar.gz
Collecting sqlalchemy-migrate==0.12.0 (from -r requirements.txt (line 45))
Using cached https://files.pythonhosted.org/packages/b5/99/92c4c90d5a22aac19554effd04789b78b5549c62fefbda1f42cc549b31b1/sqlalchemy_migrate-0.12.0-py2.py3-none-any.whl
Collecting mutagen==1.42.0 (from -r requirements.txt (line 46))
Using cached https://files.pythonhosted.org/packages/30/4c/5ad1a6e1ccbcfaf6462db727989c302d9d721beedd9b09c11e6f0c7065b0/mutagen-1.42.0.tar.gz
Collecting deluge-client==1.7.1 (from -r requirements.txt (line 47))
Using cached https://files.pythonhosted.org/packages/34/d2/dd6e73796a337a139948c072ba5b6e1b97d8bd2f620328c95cef4ac45e64/deluge_client-1.7.1-py2.py3-none-any.whl
Collecting PyMySQL (from -r requirements.txt (line 48))
Using cached https://files.pythonhosted.org/packages/ed/39/15045ae46f2a123019aa968dfcba0396c161c20f855f11dea6796bcaae95/PyMySQL-0.9.3-py2.py3-none-any.whl
Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from -r requirements.txt (line 49)) (2018.8.24)
Collecting pyasn1 (from -r requirements.txt (line 50))
Using cached https://files.pythonhosted.org/packages/62/1e/a94a8d635fa3ce4cfc7f506003548d0a2447ae76fd5ca53932970fe3053f/pyasn1-0.4.8-py2.py3-none-any.whl
Collecting lxml (from -r requirements.txt (line 51))
Using cached https://files.pythonhosted.org/packages/e4/19/8dfeef50623892577dc05245093e090bb2bab4c8aed5cad5b03208959563/lxml-4.4.2.tar.gz
Collecting ipaddress (from -r requirements.txt (line 52))
Using cached https://files.pythonhosted.org/packages/c2/f8/49697181b1651d8347d24c095ce46c7346c37335ddc7d255833e7cde674d/ipaddress-1.0.23-py2.py3-none-any.whl
Collecting psutil (from -r requirements.txt (line 53))
Using cached https://files.pythonhosted.org/packages/73/93/4f8213fbe66fc20cb904f35e6e04e20b47b85bee39845cc66a0bcf5ccdcb/psutil-5.6.7.tar.gz
Collecting cffi (from -r requirements.txt (line 54))
Using cached https://files.pythonhosted.org/packages/2d/bf/960e5a422db3ac1a5e612cb35ca436c3fc985ed4b7ed13a1b4879006f450/cffi-1.13.2.tar.gz
Collecting cryptography (from -r requirements.txt (line 55))
Using cached https://files.pythonhosted.org/packages/be/60/da377e1bed002716fb2d5d1d1cab720f298cb33ecff7bf7adea72788e4e4/cryptography-2.8.tar.gz
Installing build dependencies … error
Complete output from command /usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-9gh9_j3d --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple – setuptools>=40.6.0 wheel “cffi>=1.8,!=1.11.3; platform_python_implementation != ‘PyPy’”:
Collecting setuptools>=40.6.0
Using cached https://files.pythonhosted.org/packages/9e/d5/444a443d890f09fc1ca1a2c3c9fc7e84cb148177b05ac94fe5084e3d9abb/setuptools-42.0.1-py2.py3-none-any.whl
Collecting wheel
Using cached https://files.pythonhosted.org/packages/00/83/b4a77d044e78ad1a45610eb88f745be2fd2c6d658f9798a15e384b7d57c9/wheel-0.33.6-py2.py3-none-any.whl
Collecting cffi!=1.11.3,>=1.8
Using cached https://files.pythonhosted.org/packages/2d/bf/960e5a422db3ac1a5e612cb35ca436c3fc985ed4b7ed13a1b4879006f450/cffi-1.13.2.tar.gz
Collecting pycparser (from cffi!=1.11.3,>=1.8)
Using cached https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz
Building wheels for collected packages: cffi, pycparser
Running setup.py bdist_wheel for cffi: started
Running setup.py bdist_wheel for cffi: finished with status ‘error’
Complete output from command /usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-install-8ct7kvqy/cffi/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” bdist_wheel -d /tmp/pip-wheel-gl5pt5gv --python-tag cp37:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] …]
or: -c --help [cmd1 cmd2 …]
or: -c --help-commands
or: -c cmd --help

error: invalid command 'bdist_wheel'

----------------------------------------
Failed building wheel for cffi
Running setup.py clean for cffi
Running setup.py bdist_wheel for pycparser: started
Running setup.py bdist_wheel for pycparser: finished with status 'error'
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-8ct7kvqy/pycparser/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-7vjma0re --python-tag cp37:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: -c --help [cmd1 cmd2 ...]
   or: -c --help-commands
   or: -c cmd --help

error: invalid command 'bdist_wheel'

----------------------------------------
Failed building wheel for pycparser
Running setup.py clean for pycparser

Failed to build cffi pycparser
Installing collected packages: setuptools, wheel, pycparser, cffi
Running setup.py install for pycparser: started
Running setup.py install for pycparser: finished with status ‘done’
Running setup.py install for cffi: started
Running setup.py install for cffi: finished with status ‘error’
Complete output from command /usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-install-8ct7kvqy/cffi/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-record-01lzwsmn/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-9gh9_j3d --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.7
creating build/lib.linux-aarch64-3.7/cffi
copying cffi/recompiler.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/verifier.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/init.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/lock.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/api.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/pkgconfig.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/cparser.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/error.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/commontypes.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/model.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-aarch64-3.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-aarch64-3.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-aarch64-3.7/cffi
copying cffi/_embedding.h -> build/lib.linux-aarch64-3.7/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-aarch64-3.7/cffi
running build_ext
building ‘_cffi_backend’ extension
creating build/temp.linux-aarch64-3.7
creating build/temp.linux-aarch64-3.7/c
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-aarch64-3.7/c/_cffi_backend.o
c/_cffi_backend.c:2:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command ‘aarch64-linux-gnu-gcc’ failed with exit status 1

  ----------------------------------------

Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-install-8ct7kvqy/cffi/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-record-01lzwsmn/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-9gh9_j3d --compile” failed with error code 1 in /tmp/pip-install-8ct7kvqy/cffi/


Command “/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-9gh9_j3d --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple – setuptools>=40.6.0 wheel “cffi>=1.8,!=1.11.3; platform_python_implementation != ‘PyPy’”” failed with error code 1 in None