Installing requirements.txt fails on Raspbian


#1

I followed the installation how to here:

After performing this step “sudo pip install -r /opt/sickrage/requirements.txt”
I get the following errors:
Collecting tornado==5.1.1 (from -r /opt/sickrage/requirements.txt (line 20))
Exception:
Traceback (most recent call last):
_ File “/usr/lib/python2.7/dist-packages/pip/basecommand.py”, line 215, in main_
_ status = self.run(options, args)_
_ File “/usr/lib/python2.7/dist-packages/pip/commands/install.py”, line 353, in run_
_ wb.build(autobuilding=True)_
_ File “/usr/lib/python2.7/dist-packages/pip/wheel.py”, line 749, in build_
_ self.requirement_set.prepare_files(self.finder)_
_ File “/usr/lib/python2.7/dist-packages/pip/req/req_set.py”, line 380, in prepare_files_
_ ignore_dependencies=self.ignore_dependencies))_
_ File “/usr/lib/python2.7/dist-packages/pip/req/req_set.py”, line 554, in prepare_file
_ require_hashes_
_ File “/usr/lib/python2.7/dist-packages/pip/req/req_install.py”, line 278, in populate_link_
_ self.link = finder.find_requirement(self, upgrade)_
_ File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 465, in find_requirement_
_ all_candidates = self.find_all_candidates(req.name)_
_ File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 423, in find_all_candidates_
_ for page in self.get_pages(url_locations, project_name):
_ File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 568, in get_pages
_ page = self.get_page(location)
_ File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 683, in get_page
_ return HTMLPage.get_page(link, session=self.session)_
_ File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 792, in get_page_
_ “Cache-Control”: “max-age=600”,_
_ File “/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py”, line 501, in get_
_ return self.request(‘GET’, url, **kwargs)_
_ File “/usr/lib/python2.7/dist-packages/pip/download.py”, line 386, in request_
_ return super(PipSession, self).request(method, url, *args, **kwargs)_
_ File “/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py”, line 488, in request_
_ resp = self.send(prep, **send_kwargs)_
_ File “/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py”, line 609, in send_
_ r = adapter.send(request, **kwargs)_
_ File “/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py”, line 47, in send_
_ resp = super(CacheControlAdapter, self).send(request, **kw)_
_ File “/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py”, line 423, in send_
_ timeout=timeout_
_ File “/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py”, line 643, in urlopen_
_ stacktrace=sys.exc_info()[2])
_ File “/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py”, line 315, in increment_
_ total -= 1_
TypeError: unsupported operand type(s) for -=: ‘Retry’ and ‘int’

What should I do now?


#2

try pip2 instead of pip