The problem: I get an errno 111: no connection between the python client and the activated neo4j graph db. Same situation with both py2neo and neo4j python driver
The setup: WSL2 (build 22.214.171.124) with Ubuntu 18.04 LTS, on windows 10 Pro insider preview (build 20152.rs_prelease.200617-1502)
On WSL2, a conda env was created with py2neo, rapidsai, etc. On windows, neo4j and pycharm are installed. The code is written in pycharm and as an interpreter I use the conda env from WSL2. However, every time I'm trying to run a query, I get an errno 111 error message. Queries from the neo4j interface run smoothly.
Sounds like there is some sort of connectivity issue.
Do I understand it correctly if I think the database is running natively in Windows and your script in the WSL environment?
Not familiar with WSL at all but I would suspect that the localhost of WSL is a different one than the windows environment. Perhaps I am completely wrong though, haven't seen Windows from up close for over 15 years.
However that 111 error is a Python connection error, I would dig into that direction.
Hi @and_manousakis, at which environment you are getting this error ? on the WSL2 or on Windows ? Also, you mentioned py2neo is installed only in conda, but I am sure you have already installed in windows also.
Also, since you mentioned WSL2, I believe you have docker also installed. So, follow @FrederickEngelhardt steps, but be sure to mount the volume to persist the data. Since you are using Neo4j 3.5, feel free to download my image and the docker-compose file