Closed
Description
when I run python start.py
(python2.7, no errors with python3 ), got this error:
Exception AttributeError: AttributeError("'NoneType' object has no attribute 'close'",) in <bound method DirectDriver.__del__ of <neo4j.v1.direct.DirectDriver object at 0x108923ed0>> ignored
Exception AttributeError: "'NoneType' object has no attribute 'close'" in <bound method Connection.__del__ of <neo4j.bolt.connection.Connection object at 0x109972b90>> ignored
my project structure:
neo4j_test
start.py
neo4j_test
__init__.py
db.py
start.py:
from neo4j_test import db
db.py:
from neo4j.v1 import GraphDatabase
neo4j_driver = GraphDatabase.driver('bolt://localhost:7687', auth=('neo4j', 'password'))
I found while calling close
method from neo4j.bolt.connection.Connection
, log_info
is None
.
my version info
- python 2.7.10
- neo4j 3.2.0
- neo4j-driver 1.3.1
A similar case (saved as test.py):
import logging
log = logging.getLogger("neo4j.bolt")
log_info = log.info
class Test(object):
def __del__(self):
self.close()
def close(self):
log_info("~~ [CLOSE]")
t = Test()
>>> python test.py
Exception TypeError: "'NoneType' object is not callable" in <bound method Test.__del__ of <__main__.Test object at 0x103cdb910>> ignored
>>> python3 test.py
Metadata
Metadata
Assignees
Labels
No labels