memgraph / gqlalchemy

GQLAlchemy is a library developed with the purpose of assisting in writing and running queries on Memgraph. GQLAlchemy supports high-level connection to Memgraph as well as modular query builder.

Home Page:https://pypi.org/project/gqlalchemy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] AttributeError: module 'gqlalchemy.connection' has no attribute 'Neo4jConnection'

pwna5aurus opened this issue · comments

Memgraph version current stable as of 1/8/23

Environment Memgraph Docker container (latest) on Win10, x64, Python 3.10.7
gqlalchemy version == gqlalchemy-1.1.5 (the highest version I can install on my machine via Pip for some reason?

Describe the bug

from gqlalchemy import connection
[...]
Traceback (most recent call last):
  File "c:\Users\Jammin\Documents\code\gitlab_ingestor.py", line 16, in <module>
    db = connection.Neo4jConnection(host='127.0.0.1', port=7687, username='neo4j', password='<pw>', encrypted=False)

To Reproduce See above. The Neo4jConnection object seems to be missing from the "pip install gqlalchemy" on Windows
When you try to instantiate it, it fails. Checked the code and it is indeed missing for some reason, although it is present in the Github latest release code? gqlalchemy version==gqlalchemy-1.1.5

Expected behavior Instantiates Neo4jConnection

Hi @pwna5aurus, thanks for reporting this, we will check it and get back to you!