You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi team I am using python 3.6.6 in windows 10 os (64 bit version). I am able to successfully install snips_nlu using pip but downloading en laguage package is causing openssl failure. Here is the complete stack trace :
C:\Users\vbanagiri>python -m snips_nlu download en
Traceback (most recent call last):
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\contrib\pyopenssl.py", line 441, in wrap_socket
cnx.do_handshake()
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\OpenSSL\SSL.py", line 1907, in do_handshake
self._raise_ssl_error(self._ssl, result)
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\OpenSSL\SSL.py", line 1639, in _raise_ssl_error
_raise_current_error()
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\OpenSSL\_util.py", line 54, in exception_from_error_queue
raise exception_type(errors)
OpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen
chunked=chunked)
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 346, in _make_request
self._validate_conn(conn)
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 850, in _validate_conn
conn.connect()
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connection.py", line 326, in connect
ssl_context=context)
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\util\ssl_.py", line 329, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\contrib\pyopenssl.py", line 448, in wrap_socket
raise ssl.SSLError('bad handshake: %r' % e)
ssl.SSLError: ("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\adapters.py", line 440, in send
timeout=timeout
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\util\retry.py", line 388, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /snipsco/snips-nlu-language-resources/master/shortcuts.json (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\snips_nlu\__main__.py", line 36, in <module>
main()
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\snips_nlu\__main__.py", line 29, in main
plac.call(commands[command], sys.argv[1:])
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\plac_core.py", line 328, in call
cmd, result = parser.consume(arglist)
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\plac_core.py", line 207, in consume
return cmd, self.func(*(args + varargs + extraopts), **kwargs)
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\snips_nlu\cli\download.py", line 27, in download
shortcuts = get_json(__about__.__shortcuts__, "Resource shortcuts")
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\snips_nlu\cli\utils.py", line 26, in get_json
r = requests.get(url)
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "C:\Users\vbanagiri\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\adapters.py", line 506, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /snipsco/snips-nlu-language-resources/master/shortcuts.json (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))
Could you create a new virtualenv, pip install pyopenssl requests inside it, and then run python -c "import requests;data = requests.get('https://raw.githubusercontent.com/rc0r/afl-fuzz/master/dictionaries/jpeg.dict');print(data.content)" and see if that works? I did this on a Windows machine just now and it worked fine.
Hi team I am using python 3.6.6 in windows 10 os (64 bit version). I am able to successfully install snips_nlu using pip but downloading en laguage package is causing openssl failure. Here is the complete stack trace :
Here is the pip freeze of my machine :
The text was updated successfully, but these errors were encountered: