Error installing latest python SDK

Second attempt to install on Pi Zero using
curl -L | bash

Fails near end of packages
> Requirement already satisfied: pycrypto==2.6.1 in /usr/lib/python2.7/dist-packag

es (from python-sdk-auth==0.2.1->hologram-python)
Collecting idna<2.6,>=2.5 (from requests==2.18.3->hologram-python)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/", line 215, in main
    status =, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/", line 353, in
  File "/usr/lib/python2.7/dist-packages/pip/", line 749, in build
  File "/usr/lib/python2.7/dist-packages/pip/req/", line 380, in prepa
  File "/usr/lib/python2.7/dist-packages/pip/req/", line 554, in _prep
  File "/usr/lib/python2.7/dist-packages/pip/req/", line 278, in p
opulate_link = finder.find_requirement(self, upgrade)
  File "/usr/lib/python2.7/dist-packages/pip/", line 465, in find_requir
    all_candidates = self.find_all_candidates(
  File "/usr/lib/python2.7/dist-packages/pip/", line 423, in find_all_ca
    for page in self._get_pages(url_locations, project_name):
  File "/usr/lib/python2.7/dist-packages/pip/", line 568, in _get_pages
    page = self._get_page(location)
  File "/usr/lib/python2.7/dist-packages/pip/", line 683, in _get_page
    return HTMLPage.get_page(link, session=self.session)
  File "/usr/lib/python2.7/dist-packages/pip/", 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/s", line 501, in get
    return self.request('GET', url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pip/", 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/s", 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/s", line 609, in send
    r = adapter.send(request, **kwargs)
  File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachec
ontrol/", 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/a", line 423, in send
  File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/con", line 643, in urlopen
  File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/uti
l/", line 315, in increment
    total -= 1
TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

I had the same situation 3 days ago and found no resolution or even a clue on the internet. As a last ditch effort I ran the batch file a second time with the thought that I had nothing to lose. It whizzed past the code where it hung and completed successfully. And after verifying the version and using the location function successfully I sent a simple message and it showed up in the Hologram dashboard.

Now if I could only figure out how to make this thing work using IBM’s Node-Red, I’d be home free.

Best of Luck

Thanks Garry - I’ll keep trying I guess.

I know my satellite internet is not good right now so maybe I’ll wait for a better connection to try again.

Hi @Don_Mitchinson

How did you get to posting what you did.

i know you may not be a python expert but why do you think relevant information like what version of raspbian and what version of python you have would not be useful?

I find that there is a trend of forums where pasting the error log file without supporting information is deemed enough. This is not the case.

Below are some pointers on where the problem could be:

@Garry_Grube - not sure what the confusion about making Hologram and NodeRED work together is? The APIs are well documented :smiley:


Version 2.7 python (see error log)
Raspberry Pi Zero (see top of message)
Latest Raspbian Stretch Lite - nothing to do with Azure or Microsoft

Will try again as Garry suggested

if you put the error message in to google TypeError: unsupported operand type(s) for -=: ‘Retry’ and ‘int’

3 likely candidates crop up

A) Bad network connection
B) Python library conflicts (URL LIB)
C) not enough processing power to install