-
Notifications
You must be signed in to change notification settings - Fork 204
Closed
Labels
Description
This is a crash that's occurring when I try to run a statement using a session, like so:
from neo4j.v1 import basic_auth
from neo4j.v1 import GraphDatabase
driver = GraphDatabase.driver(f'{protocol}://{host}:{port}', auth=basic_auth('neo4j', 'password'))
with driver.session() as session:
result = session.run('MATCH (a:Actor) RETURN a')
return result
With the following stack trace:
/usr/local/lib/python3.6/site-packages/neo4j/v1/api.py in __exit__(self, exc_type, exc_value, traceback)
227
228 def __exit__(self, exc_type, exc_value, traceback):
--> 229 self.close()
230
231 def _connect(self, access_mode=None):
/usr/local/lib/python3.6/site-packages/neo4j/v1/api.py in close(self)
259 finally:
260 self._closed = True
--> 261 self._disconnect(sync=True)
262
263 def closed(self):
/usr/local/lib/python3.6/site-packages/neo4j/v1/api.py in _disconnect(self, sync)
243 if sync:
244 self._connection.sync()
--> 245 self._connection.in_use = False
246 self._connection = None
247 self._connection_access_mode = None
AttributeError: 'NoneType' object has no attribute 'in_use'
Using Python 3.6 and neo4j-driver 1.2.0.