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] can not install gqlalchemy in python 3.11.1

seabnavin19 opened this issue · comments

I have create a virtual environment for my project but when I try to install gqlalchemy I got this error

Collecting pymgclient==1.2.0
  Using cached pymgclient-1.2.0.tar.gz (122 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\seab.navin\AppData\Local\Temp\3\pip-install-_egmworm\pymgclient_3144766b603c48ed8b97ca8896114966\setup.py", line 21, in <module>
          from distutils.core import DistutilsExecError, DistutilsPlatformError
      ImportError: cannot import name 'DistutilsExecError' from 'distutils.core' (D:\Development\memmmmmmgraph\Memgraph_Fruad_Detection\venv\Lib\site-packages\setuptools\_distutils\core.py)
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

Hi @seabnavin19, as noted in install prerequisites, GQLAlchemy currently can't be installed with Python 3.11. Please check the docs for the correct prerequisites to use GQLalchemy. Since you created a virtual environment, it's best you use Python 3.9 for Windows or Python 3.10 for other OS. I will leave this issue open as and link it to development as soon as we have this resolved.

Is this a blocker for you? What are you working on? Can you share more about the use case?

Thanks for your help, After I change python to version 3.9 it works fine