Skip to content

support for Bolt protocols ('3.0', '4.1', '4.2', '4.3', '4.4', '5.0', '5.1', '5.2', '5.3', '5.4') - exception connecting with python neo4j #106

@brunocek

Description

@brunocek

Hello.

I am trying to connect using a python script, and I am getting the bellow message:

neo4j._exceptions.BoltHandshakeError: The neo4j server does not support communication with this driver. This driver has support for Bolt protocols ('3.0', '4.1', '4.2', '4.3', '4.4', '5.0', '5.1', '5.2', '5.3', '5.4').

Are we completely out of compatibility with all these Bolt protocol versions? Is there an easy and accessible way to connect python to the ongdb backend, please?


Note: It seems related to this jira issue, but the server is down and archive.org has no record of it:
[ONGDB-223] – Bolt version needs to be compatible with driver checks

( https://graphfoundation.org/ongdb/1.0.0-alpha01/ )

details to reproduce the error

  1. Create a python script file script.py:
# script.py
from neo4j import GraphDatabase

uri = 'bolt://localhost:7687' # or neo4j://localhost
auth = ('ongdb', 'ongdb')

with GraphDatabase.driver(uri, auth=auth) as driver:
    driver.verify_connectivity()

  1. Install python3 and pipenv (debian):
sudo apt-get install python3 pipenv
  1. Create an environment on the same directory where the script.py lives, install neo4j python library and run the script:
pipenv shell
pipenv install neo4j
python script.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions