I'm fairly new to Neo4j. I've been using the official Neo4j driver for Python in my work for some months now without issue. Just this week, I started to notice a warning message when the driver is installed, as can be seen below. I still manage to install the driver and create a connection to a database but I'm wondering if anyone can shed any light on why this warning is suddenly being generated and whether it's something to be concerned about.
hm this looks odd indeed. Can you please share the output of a few commands with me so that I can try to reproduce it?
python -VV
pip -VV
pip install -v --no-cache-dir --force neo4j
pip freeze --all
Finally, what plattform/OS are you running on? Even though, this is a different issue, homebrew on macOS sometimes struggles a little with getting Python installations right https://github.com/neo4j/neo4j-python-driver/issues/871
Hi there. Thanks for the reply. I'm using Jupyter notebook via Google Colab for this task so I'm not on my machine's OS. The notebook is running Python 3.8.16.
Installing the driver is the first line of code in this notebook. I run the following pip install, which then generates the warnings as part of the build process:
I was about to despair as I didn't understand why the installation process was failing for the newer drivers (5.3.0 and up). Seems like google colab is shipping with a non-up-to-date pip (v. 22.0.4 from March 2022). If you run
If you do that before installing the driver with !pip install neo4j the warning should disappear and pip should install version 5.4.0 (or whatever is the latest version) instead of falling back to 5.2.1. If you have installed the driver already, you can ask pip to attempt an update with !pip install -U neo4j instead.
Semi-related bonus tip: even though you are running on Google Colab, you can still get the host's OS and other information with a cell like this (assuming the notebook is running on a Linux machine)