Error installing latest python SDK

Second attempt to install on Pi Zero using
curl -L hologram.io/python-install | 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)
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 prepa
re_files
    ignore_dependencies=self.ignore_dependencies))
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 554, in _prep
are_file
    require_hashes
  File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 278, in p
opulate_link
    self.link = finder.find_requirement(self, upgrade)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 465, in find_requir
ement
    all_candidates = self.find_all_candidates(req.name)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 423, in find_all_ca
ndidates
    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/s
essions.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/s
essions.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/s
essions.py", 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/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/a
dapters.py", line 423, in send
    timeout=timeout
  File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/con
nectionpool.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/uti
l/retry.py", 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
Garry

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:

Andrei

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