SSLError from APIO and tinyprog (MacOS 10.13)


#1
~ apio install system scons icestorm iverilog
HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/FPGAwars/tools-system/releases (Caused by SSLError(SSLError(1, u'[SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661)'),))

I am not sure where to go with this.

Also when I run the Tiny bootloader update I get this:

~ tinyprog --update-bootloader

    TinyProg CLI
    ------------
    Using device id 1d50:6130
    Only one board with active bootloader, using it.
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/bin/tinyprog", line 11, in <module>
    sys.exit(main())
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tinyprog/__main__.py", line 282, in main
    perform_bootloader_update(port)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tinyprog/__main__.py", line 96, in perform_bootloader_update
    bootloader_update_info = json.loads(urlopen(m[u"bootmeta"][u"update"] + "/bootloader.json").read())
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1241, in https_open
    context=self._context)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1198, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661)>

I am running a 2017 27” iMac with High Sierra 10.13.6

All help appreciated.


#2

Hey @JesusArroyo, have you seen this before? It’s an SSLError Python exception coming from both apio and tinyprog when they try to access GitHub on @Macca45’s machine. This is the first time I’ve seen it.


#3

Hi. I haven’t seen it before. It seems to be related to python and pip. @Macca45 could you try to execute: curl https://bootstrap.pypa.io/get-pip.py | python?