I read this: Connecting to local database via Python Bolt
I am new to neo4j and am struggling to connect to a local neo4j DB.
I was able to set a new password for the neo4j
What am I doing wrong?
When I run this:
from neo4j import GraphDatabase, basic_auth
_driver = GraphDatabase.driver('bolt://localhost:7687', auth=basic_auth('neo4j', 'pwd'))
print('hurray; connected!')
I get this:
Traceback (most recent call last):
File "just.py", line 3, in <module>
_driver = GraphDatabase.driver('bolt://localhost:7687', auth=basic_auth('neo4j', 'pwd'))
File "C:\Users\Lee\Documents\coding\Environments\OpalDesk\lib\site-packages\neo4j\__init__.py", line 120, in driver
return Driver(uri, **config)
File "C:\Users\Lee\Documents\coding\Environments\OpalDesk\lib\site-packages\neo4j\__init__.py", line 161, in __new__
return subclass(uri, **config)
File "C:\Users\Lee\Documents\coding\Environments\OpalDesk\lib\site-packages\neo4j\__init__.py", line 235, in __new__
pool.release(pool.acquire())
File "C:\Users\Lee\Documents\coding\Environments\OpalDesk\lib\site-packages\neobolt\direct.py", line 715, in acquire
return self.acquire_direct(self.address)
File "C:\Users\Lee\Documents\coding\Environments\OpalDesk\lib\site-packages\neobolt\direct.py", line 608, in acquire_direct
connection = self.connector(address, error_handler=self.connection_error_handler)
File "C:\Users\Lee\Documents\coding\Environments\OpalDesk\lib\site-packages\neo4j\__init__.py", line 232, in connector
return connect(address, **dict(config, **kwargs))
File "C:\Users\Lee\Documents\coding\Environments\OpalDesk\lib\site-packages\neobolt\direct.py", line 972, in connect
raise last_error
File "C:\Users\Lee\Documents\coding\Environments\OpalDesk\lib\site-packages\neobolt\direct.py", line 963, in connect
s, der_encoded_server_certificate = _secure(s, host, security_plan.ssl_context, **config)
File "C:\Users\Lee\Documents\coding\Environments\OpalDesk\lib\site-packages\neobolt\direct.py", line 854, in _secure
s = ssl_context.wrap_socket(s, server_hostname=host if HAS_SNI and host else None)
File "c:\users\lee\appdata\local\programs\python\python37\Lib\ssl.py", line 412, in wrap_socket
session=session
File "c:\users\lee\appdata\local\programs\python\python37\Lib\ssl.py", line 853, in _create
self.do_handshake()
File "c:\users\lee\appdata\local\programs\python\python37\Lib\ssl.py", line 1117, in do_handshake
self._sslobj.do_handshake()
OSError: [Errno 0] Error