question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connection problems (maybe) due to neo4j-driver==1.1.0

See original GitHub issue

Hi,

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:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

3reactions
robinedwardscommented, May 24, 2017

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:

I’m having problems with the locked requirements for neo4j-driver==1.1.0 as well… Getting same error as @croccam https://github.com/croccam when running latest version on neomodel with 1.1.x version of neo4j-driver. Would be really awesome to be able to upgrade soon =)

Thanks for a great library, btw!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/robinedwards/neomodel/issues/251#issuecomment-303362491, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJ0YcnxD52h6hdN2t5sEW_dZA0qaYWUks5r8rpbgaJpZM4NKBV1 .

0reactions
robinedwardscommented, Jun 9, 2017

Fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Connection Issues in Neo4j Browser and ...
This page describes common issues users may encounter in connecting Neo4j Browser or cypher-shell to a Neo4j database, and how to address them....
Read more >
Unable to connect due a unexpected return value of socket ...
Hi, I have an issue connecting with the database using bolt, ... python: 3.5.2 neo4j-python-driver: 1.1.0 neo4j: 3.1.0 Code: from neo4j.v1 ...
Read more >
Using the Bolt protocol to make openCypher queries to Neptune
To connect to Neptune using Neo4j's Bolt drivers, simply replace the URL and Port number with your cluster endpoints using the bolt URI...
Read more >
neo4j-driver - PyPI
Neo4j Bolt driver for Python. ... Using the Python Driver 4.x and connecting to Neo4j 3.5 with default connection settings for Neo4j 3.5....
Read more >
Failed to establish connection to ('::1', 7687, 0, 0) (reason 99 ...
It's very handy that pandas can render the query result directly ... neo4j-driver 4.1.0rc2 neo4jrestclient 2.1.1 neobolt 1.7.17 pandas 1.1.0.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found