Connection problems (maybe) due to neo4j-driver==1.1.0
See original GitHub issueHi,
I have found an error when trying to connect to neo4j, I don’t know exactly why it happens because I haven’t had any time to debug it, but my guess is it could be related either to the sockets library or to the neo4j driver. The error is:
db.set_connection(neo4j_uri) File "/home/devel/anaconda3/lib/python3.6/site-packages/neomodel/util.py", line 63, in set_connection self.refresh_connection() File "/home/devel/anaconda3/lib/python3.6/site-packages/neomodel/util.py", line 28, in wrapper return func(self, *args, **kwargs) File "/home/devel/anaconda3/lib/python3.6/site-packages/neomodel/util.py", line 70, in refresh_connection self._session = self.driver.session() File "/home/devel/anaconda3/lib/python3.6/site-packages/neo4j/v1/bolt.py", line 51, in session return BoltSession(self.pool.acquire(self.address)) File "/home/devel/anaconda3/lib/python3.6/site-packages/neo4j/bolt/connection.py", line 459, in acquire connection = self.connector(address) File "/home/devel/anaconda3/lib/python3.6/site-packages/neo4j/v1/bolt.py", line 46, in <lambda> pool = ConnectionPool(lambda a: connect(a, security_plan.ssl_context, **config)) File "/home/devel/anaconda3/lib/python3.6/site-packages/neo4j/bolt/connection.py", line 615, in connect return Connection(s, der_encoded_server_certificate=der_encoded_server_certificate, **config) File "/home/devel/anaconda3/lib/python3.6/site-packages/neo4j/bolt/connection.py", line 256, in __init__ self.buffering_socket = BufferingSocket(self) File "/home/devel/anaconda3/lib/python3.6/site-packages/neo4j/bolt/connection.py", line 99, in __init__ self.address = Address(*self.socket.getpeername()) TypeError: __new__() takes 3 positional arguments but 5 were given
A fast solution I have found is to force neomodel to use neo4j-driver==1.2.0.
I have posted this issue so that you could be aware of this kind of problem, but I haven’t checked if you already were. Feel free to delete this if this is redundant/inappropiate information.
Best regards!
Issue Analytics
- State:
- Created 6 years ago
- Comments:7
Hello,
I have fixed this locally unfortunately it will be a couple of weeks before i push as I am on vacation.
On 23 May 2017 11:52, “Rolf Håvard Blindheim” notifications@github.com wrote:
Fixed