Giter VIP home page Giter VIP logo

Comments (19)

katarinasupe avatar katarinasupe commented on August 17, 2024 1

Can you try installing gqlalchemy without conda, to verify the assumption?

from gqlalchemy.

katarinasupe avatar katarinasupe commented on August 17, 2024

Hi @Tim-K-DFW, can you try pip install GQLAlchemy==1.4.1 until we detect if this is a bug related to latest release?
Btw as far as I can see, you're using Python 3.9?

from gqlalchemy.

Tim-K-DFW avatar Tim-K-DFW commented on August 17, 2024

Hi Katarina, thank you for the quick response!

  • Same result with 1.4.1
  • Yes, python 3.9.16.

from gqlalchemy.

katarinasupe avatar katarinasupe commented on August 17, 2024

Did you experience any issues when installing with pip?
Also when you installed can you confirm installation is okay by running pip show gqlalchemy and provide output?
P.S. I see you are using Linux OS but is this a virtual machine or not? Wondering about your device architecture, is it ARM or AMD?

from gqlalchemy.

Tim-K-DFW avatar Tim-K-DFW commented on August 17, 2024
  1. The only issue first time was pip complaining of cmake missing, so I installed that, and then gqlalchemy installed with no problems.

  2. pip show gqlalchemy gives:

Python 3.9.16
(memgraph) t@DESKTOP-KHJBONB:~/ro5_wsl/memgraph$ pip show gqlalchemy
Name: gqlalchemy
Version: 1.4.1
Summary: GQLAlchemy is a library developed to assist with writing and running queries in Memgraph.
Home-page: https://github.com/memgraph/gqlalchemy
Author: Bruno Sacaric
Author-email: [email protected]
License: Apache-2.0
Location: /home/t/miniconda3/envs/memgraph/lib/python3.9/site-packages
Requires: adlfs, dacite, docker, neo4j, networkx, numpy, psutil, pydantic, pymgclient
Required-by:
(memgraph) t@DESKTOP-KHJBONB:~/ro5_wsl/memgraph$
  1. This is WSL2 on a Windows 10 machine, standard Intel CPU (AMD architecture as I understand).

from gqlalchemy.

katarinasupe avatar katarinasupe commented on August 17, 2024

Can you remove that installation, install all necessary prerequisites for GQLAlchemy (that is, pymgclient) and then try reinstalling it?

from gqlalchemy.

Tim-K-DFW avatar Tim-K-DFW commented on August 17, 2024

I did:

  • new conda env with python 3.9.16
  • sudo apt install python3-dev cmake make gcc g++ libssl-dev (from your link)
  • pip3 install --user pymgclient (from your link)
  • pip install GQLAlchemy==1.4.1

Same result:

$ python
Python 3.9.16 (main, May 15 2023, 23:46:34)
[GCC 11.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gqlalchemy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/t/miniconda3/envs/memgraph/lib/python3.9/site-packages/gqlalchemy/__init__.py", line 34, in <module>
    from gqlalchemy.instance_runner import (  # noqa F401
  File "/home/t/miniconda3/envs/memgraph/lib/python3.9/site-packages/gqlalchemy/instance_runner.py", line 31, in <module>
    from gqlalchemy.vendors.memgraph import Memgraph
  File "/home/t/miniconda3/envs/memgraph/lib/python3.9/site-packages/gqlalchemy/vendors/memgraph.py", line 19, in <module>
    from gqlalchemy.connection import Connection, MemgraphConnection
  File "/home/t/miniconda3/envs/memgraph/lib/python3.9/site-packages/gqlalchemy/connection.py", line 18, in <module>
    import mgclient
ImportError: /home/t/.local/lib/python3.9/site-packages/mgclient.cpython-39-x86_64-linux-gnu.so: undefined symbol: EVP_PKEY_base_id
>>>

from gqlalchemy.

katarinasupe avatar katarinasupe commented on August 17, 2024

I think that might be related to the mismatch of the OpenSSL version. Can you tell me which version you have?

from gqlalchemy.

Tim-K-DFW avatar Tim-K-DFW commented on August 17, 2024

image

from gqlalchemy.

katarinasupe avatar katarinasupe commented on August 17, 2024

Are you sure that conda env uses that OpenSSL by default? This reminds me of the closed issue on the pymgclient repository.

from gqlalchemy.

Tim-K-DFW avatar Tim-K-DFW commented on August 17, 2024

Do you happen to know how I can check this?

from gqlalchemy.

Tim-K-DFW avatar Tim-K-DFW commented on August 17, 2024

(I mean, pip show openssl in this environment doesn't show any versions of openssl installed).

image

from gqlalchemy.

katarinasupe avatar katarinasupe commented on August 17, 2024

Can you try installing the pymgclient prerequisites in conda env with pip? The steps in conda env would be:

pip3 install python3-dev cmake make gcc g++ libssl-dev
pip3 install pymgclient
pip3 install gqlalchemy==1.4.1

from gqlalchemy.

Tim-K-DFW avatar Tim-K-DFW commented on August 17, 2024

ERROR: Invalid requirement: 'g++' 😬 I googled a few solution options but not sure what exactly you had in mind.

from gqlalchemy.

katarinasupe avatar katarinasupe commented on August 17, 2024

My mistake on pip side. But the issue you're facing should be related to conda. I will do more research on what happened tomorrow and get back to you. Meanwhile, I recommend you read the issue I provided that might help and see why OpenSSL is not visible in your conda env.

from gqlalchemy.

Tim-K-DFW avatar Tim-K-DFW commented on August 17, 2024

YES! In vanilla python, it's importing with no issues. This has to be some Conda stuff. Thank you so much!

from gqlalchemy.

katarinasupe avatar katarinasupe commented on August 17, 2024

No problem, I'm glad to help and happy it's working for you now! I will leave this issue open to resolve conda issues 😄

from gqlalchemy.

as51340 avatar as51340 commented on August 17, 2024

Investigated the issue, you are probably having locally old version of pymgclient. Clean pymgclient from global path (pip uninstall pymgclient gqlalchemy), activate your conda environmen and install ONLY gqlalchemy (pip install gqlalchemy). You should see that pymgclient 1.3.1 is being built while installing gqlalchemy. No need to install pymgclient before gqlalchemy, we have wrong instructions in README, we will fix it.

from gqlalchemy.

katarinasupe avatar katarinasupe commented on August 17, 2024

@Tim-K-DFW let us know if you decide to try out Conda env again and verify if what @as51340 provided fixes the issue 😄 Thanks!

from gqlalchemy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.