Hi Sumit,

I think it is unrelated to the PR tool. Please check the below link:

https://stackoverflow.com/questions/44316292/ssl-sslerror-tlsv1-alert-protocol-version

Try running: pip install requests[security]

Regards,
Kaxil

On 15/05/2018, 07:46, "Sumit Maheshwari" <msu...@apache.org> wrote:

    Hi folks,
    
    I am getting *SSL: TLSV1_ALERT_PROTOCOL_VERSION* errors when running
    dev/airflow-pr tool. My pip version is 10.0.1 and python version is 2.7.10.
    Please let me know if anyone has any pointers to fix that.
    
    
    
    $ python
    Python 2.7.10 (default, Feb  7 2017, 00:08:15)
    [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
    
    $ pip -V
    pip 10.0.1 from
    /Users/sumitm/work/incubator-airflow/venv/lib/python2.7/site-packages/pip
    (python 2.7)
    
    $ pip list |grep urllib3
    urllib3           1.22
    
    
    $ dev/airflow-pr merge 3300
    >> Running command: git rev-parse --abbrev-ref HEAD
    Resetting git to remove any changes
    >> Running command: git reset --hard
    Restoring head pointer to master
    >> Running command: git checkout master
    Already on 'master'
    >> Running command: git branch
    Traceback (most recent call last):
      File "dev/airflow-pr", line 1084, in <module>
        cli()
      File
    
"/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py",
    line 722, in __call__
        return self.main(*args, **kwargs)
      File
    
"/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py",
    line 697, in main
        rv = self.invoke(ctx)
      File
    
"/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py",
    line 1066, in invoke
        return _process_result(sub_ctx.command.invoke(sub_ctx))
      File
    
"/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py",
    line 895, in invoke
        return ctx.invoke(self.callback, **ctx.params)
      File
    
"/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py",
    line 535, in invoke
        return callback(*args, **kwargs)
      File "dev/airflow-pr", line 1018, in merge
        main(pr_num, local=False)
      File "dev/airflow-pr", line 829, in main
        branches = get_json("%s/branches" % GITHUB_API_BASE)
      File "dev/airflow-pr", line 115, in get_json
        response = urllib.urlopen(request).read().decode('utf-8')
      File
    
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
    line 154, in urlopen
        return opener.open(url, data, timeout)
      File
    
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
    line 431, in open
        response = self._open(req, data)
      File
    
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
    line 449, in _open
        '_open', req)
      File
    
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
    line 409, in _call_chain
        result = func(*args)
      File
    
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
    line 1240, in https_open
        context=self._context)
      File
    
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
    line 1197, in do_open
        raise URLError(err)
    urllib2.URLError: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1
    alert protocol version (_ssl.c:590)>
    
    
    
    Thanks,
    Sumit
    



Kaxil Naik 

Data Reply
2nd Floor, Nova South
160 Victoria Street, Westminster
London SW1E 5LB - UK 
phone: +44 (0)20 7730 6000
k.n...@reply.com
www.reply.com

Reply via email to