Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
05-15-2020 01:10 PM
I just switched from 3.5 to 4.0 and can visit it:
http://localhost:7474/browser/
However, my bolt api test failed, which worked in 3.5 previously:
from neo4j import GraphDatabase
uri = "bolt://localhost:7687"
driver = GraphDatabase.driver(uri, auth=("neo4j", "123456"))
The error message:
Traceback (most recent call last):
File "/my-env/data_collection/lib/python3.7/site-packages/neobolt/direct.py", line 831, in _connect
s.connect(resolved_address)
ConnectionRefusedError: [Errno 61] Connection refused
During handling of the above exception, another exception occurred:
...
File "/my-env/data_collection/lib/python3.7/site-packages/neobolt/direct.py", line 843, in _connect
raise ServiceUnavailable("Failed to establish connection to {!r} (reason {})".format(resolved_address, error))
neobolt.exceptions.ServiceUnavailable: Failed to establish connection to ('::1', 7687, 0, 0) (reason [Errno 61] Connection refused)
I followed the instruction: https://neo4j.com/docs/api/python-driver/current/
python -m pip install neo4j
However, this still installed the 'neo4j-driver==1.7.6' and 'neo4j==1.7.6'. The doc said that 4.0 works backward. How to get rid of the message?
Solved! Go to Solution.
05-15-2020 03:40 PM
05-15-2020 02:27 PM
BTW, I am on a Mac. I searched and some post said changing localhost to 127.0.0.1 worked, but it didn't work for me.
05-15-2020 02:45 PM
However, my command line works:
./cypher-shell -a 127.0.0.1 -u neo4j -p 1234
Connected to Neo4j 4.0.4 at bolt://127.0.0.1:7687 as user neo4j.
Type :help for a list of available commands or :exit to exit the shell.
05-15-2020 03:04 PM
Hello,
Can you try:
driver = GraphDatabase.driver(uri, auth=("neo4j", "123456"), encrypted=False))
and
uri = "bolt://localhost:7687"
05-15-2020 03:35 PM
It woked! and Thank you really.
05-15-2020 03:40 PM
A pleasure, if that's all, you can close this topic:)
05-15-2020 03:41 PM
Where is the button to close an issue?
05-15-2020 03:42 PM
Normally, on one of my post, you should be able to accept my answer 🙂
05-15-2020 03:44 PM
I clicked the 'Solution'. So that's 'closing'?
05-15-2020 03:44 PM
Yep normally:)
Have a good night 🙂
All the sessions of the conference are now available online