Running Jupyter 1.0.0 with Neo4j 2.3.1 on Windows. When I run the following query:
Format: (http|https)://username:password@hostname:port/db/name
---------------------------------------------------------------------------
SSLError Traceback (most recent call last)
c:\users\jan\venvs\jupyter\lib\site-packages\requests\packages\urllib3\connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, **response_kw)
558 timeout=timeout_obj,
--> 559 body=body, headers=headers)
560
c:\users\jan\venvs\jupyter\lib\site-packages\requests\packages\urllib3\connectionpool.py in _make_request(self, conn, method, url, timeout, **httplib_request_kw)
344 try:
--> 345 self._validate_conn(conn)
346 except (SocketTimeout, BaseSSLError) as e:
c:\users\jan\venvs\jupyter\lib\site-packages\requests\packages\urllib3\connectionpool.py in _validate_conn(self, conn)
783 if not getattr(conn, 'sock', None): # AppEngine might not have `.sock`
--> 784 conn.connect()
785
c:\users\jan\venvs\jupyter\lib\site-packages\requests\packages\urllib3\connection.py in connect(self)
251 server_hostname=hostname,
--> 252 ssl_version=resolved_ssl_version)
253
c:\users\jan\venvs\jupyter\lib\site-packages\requests\packages\urllib3\util\ssl_.py in ssl_wrap_socket(sock, keyfile, certfile, cert_reqs, ca_certs, server_hostname, ssl_version, ciphers, ssl_context, ca_cert_dir)
304 if HAS_SNI: # Platform-specific: OpenSSL with enabled SNI
--> 305 return context.wrap_socket(sock, server_hostname=server_hostname)
306
c:\python34\Lib\ssl.py in wrap_socket(self, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname)
364 server_hostname=server_hostname,
--> 365 _context=self)
366
c:\python34\Lib\ssl.py in __init__(self, sock, keyfile, certfile, server_side, cert_reqs, ssl_version, ca_certs, do_handshake_on_connect, family, type, proto, fileno, suppress_ragged_eofs, npn_protocols, ciphers, server_hostname, _context)
582 raise ValueError("do_handshake_on_connect should not be specified for non-blocking sockets")
--> 583 self.do_handshake()
584
c:\python34\Lib\ssl.py in do_handshake(self, block)
809 self.settimeout(None)
--> 810 self._sslobj.do_handshake()
811 finally:
SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:600)
During handling of the above exception, another exception occurred:
SSLError Traceback (most recent call last)
c:\users\jan\venvs\jupyter\lib\site-packages\requests\adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
375 retries=self.max_retries,
--> 376 timeout=timeout
377 )
c:\users\jan\venvs\jupyter\lib\site-packages\requests\packages\urllib3\connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, **response_kw)
587 release_conn = True
--> 588 raise SSLError(e)
589
SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:600)
During handling of the above exception, another exception occurred:
SSLError Traceback (most recent call last)
<ipython-input-14-bf5e4cff3852> in <module>()
----> 1 get_ipython().run_cell_magic('cypher', 'https://neo4j:password@localhost:7474/db/data', 'MATCH (person:Person)-[:LIKES]->(drink:Drink)\nRETURN person.name, drink.name, drink.calories')
c:\users\jan\venvs\jupyter\lib\site-packages\IPython\core\interactiveshell.py in run_cell_magic(self, magic_name, line, cell)
2291 magic_arg_s = self.var_expand(line, stack_depth)
2292 with self.builtin_trap:
-> 2293 result = fn(magic_arg_s, cell)
2294 return result
2295
<decorator-gen-359> in execute(self, line, cell, local_ns)
c:\users\jan\venvs\jupyter\lib\site-packages\IPython\core\magic.py in <lambda>(f, *a, **k)
191 # but it's overkill for just that one bit of state.
192 def magic_deco(arg):
--> 193 call = lambda f, *a, **k: f(*a, **k)
194
195 if callable(arg):
<decorator-gen-358> in execute(self, line, cell, local_ns)
c:\users\jan\venvs\jupyter\lib\site-packages\IPython\core\magic.py in <lambda>(f, *a, **k)
191 # but it's overkill for just that one bit of state.
192 def magic_deco(arg):
--> 193 call = lambda f, *a, **k: f(*a, **k)
194
195 if callable(arg):
c:\users\jan\venvs\jupyter\lib\site-packages\cypher\magic.py in execute(self, line, cell, local_ns)
101 user_ns.update(local_ns)
102 parsed = parse("""{0}\n{1}""".format(line, cell), self)
--> 103 conn = Connection.get(parsed['as'] or parsed['uri'])
104 first_word = parsed['cypher'].split(None, 1)[:1]
105 if first_word and first_word[0].lower() == 'persist':
c:\users\jan\venvs\jupyter\lib\site-packages\cypher\connection.py in get(cls, descriptor)
45 cls.current = conn
46 else:
---> 47 cls.current = Connection(descriptor)
48 if cls.current:
49 return cls.current
c:\users\jan\venvs\jupyter\lib\site-packages\cypher\connection.py in __init__(self, connect_str, alias)
24 gdb = GraphDatabase(self.connections[connect_str])
25 else:
---> 26 gdb = GraphDatabase(connect_str)
27 alias = connect_str
28 except:
c:\users\jan\venvs\jupyter\lib\site-packages\neo4jrestclient\client.py in __init__(self, url, username, password, cert_file, key_file)
77 else:
78 self.url = "%s/" % url
---> 79 response = Request(**self._auth).get(self.url)
80 if response.status_code == 200:
81 response_json = response.json()
c:\users\jan\venvs\jupyter\lib\site-packages\neo4jrestclient\request.py in get(self, url, headers)
61 Returns the response object.
62 """
---> 63 return self._request('GET', url, headers=headers)
64
65 def post(self, url, data, headers=None):
c:\users\jan\venvs\jupyter\lib\site-packages\neo4jrestclient\request.py in _request(self, method, url, data, headers)
196 response = getattr(session, method)(root_uri, headers=headers,
197 data=data, cert=cert,
--> 198 auth=auth, verify=verify)
199 if response.status_code == 401:
200 raise StatusException(401, "Authorization Required")
c:\users\jan\venvs\jupyter\lib\site-packages\requests\sessions.py in get(self, url, **kwargs)
478
479 kwargs.setdefault('allow_redirects', True)
--> 480 return self.request('GET', url, **kwargs)
481
482 def options(self, url, **kwargs):
c:\users\jan\venvs\jupyter\lib\site-packages\requests\sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
466 }
467 send_kwargs.update(settings)
--> 468 resp = self.send(prep, **send_kwargs)
469
470 return resp
c:\users\jan\venvs\jupyter\lib\site-packages\requests\sessions.py in send(self, request, **kwargs)
574
575 # Send the request
--> 576 r = adapter.send(request, **kwargs)
577
578 # Total elapsed time of the request (approximately)
c:\users\jan\venvs\jupyter\lib\site-packages\requests\adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
445 except (_SSLError, _HTTPError) as e:
446 if isinstance(e, _SSLError):
--> 447 raise SSLError(e, request=request)
448 elif isinstance(e, ReadTimeoutError):
449 raise ReadTimeout(e, request=request)
SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:600)