Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-5670

[Crossbow] get_apache_mirror.py fails with TLS error on macOS with Python 3.5

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.14.0
    • None

    Description

      Currently the macOS python 3.5 is failing with

      Downloading Apache Thrift from Traceback (most recent call last):
        File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 1254, in do_open
          h.request(req.get_method(), req.selector, req.data, headers)
        File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1107, in request
          self._send_request(method, url, body, headers)
        File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1152, in _send_request
          self.endheaders(body)
        File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1103, in endheaders
          self._send_output(message_body)
        File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 934, in _send_output
          self.send(msg)
        File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 877, in send
          self.connect()
        File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1261, in connect
          server_hostname=server_hostname)
        File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 385, in wrap_socket
          _context=self)
        File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 760, in __init__
          self.do_handshake()
        File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 996, in do_handshake
          self._sslobj.do_handshake()
        File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 641, in do_handshake
          self._sslobj.do_handshake()
      ssl.SSLError: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:719)

      I've been looking into this error and will try to push a fix (the openssl version that is used with python 3.5 on macos is too old I think).

      Attachments

        Issue Links

          Activity

            People

              wesm Wes McKinney
              pcmoritz Philipp Moritz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m