Comments (19)
Can you try installing gqlalchemy without conda, to verify the assumption?
from gqlalchemy.
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.
Hi Katarina, thank you for the quick response!
- Same result with 1.4.1
- Yes, python 3.9.16.
from gqlalchemy.
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.
-
The only issue first time was pip complaining of
cmake
missing, so I installed that, and then gqlalchemy installed with no problems. -
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$
- This is WSL2 on a Windows 10 machine, standard Intel CPU (AMD architecture as I understand).
from gqlalchemy.
Can you remove that installation, install all necessary prerequisites for GQLAlchemy (that is, pymgclient) and then try reinstalling it?
from gqlalchemy.
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.
I think that might be related to the mismatch of the OpenSSL version. Can you tell me which version you have?
from gqlalchemy.
from gqlalchemy.
Are you sure that conda env uses that OpenSSL by default? This reminds me of the closed issue on the pymgclient repository.
from gqlalchemy.
Do you happen to know how I can check this?
from gqlalchemy.
(I mean, pip show openssl
in this environment doesn't show any versions of openssl installed).
from gqlalchemy.
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.
ERROR: Invalid requirement: 'g++'
😬 I googled a few solution options but not sure what exactly you had in mind.
from gqlalchemy.
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.
YES! In vanilla python, it's importing with no issues. This has to be some Conda stuff. Thank you so much!
from gqlalchemy.
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.
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.
@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)
- Add SHOW BUILD INFO query to query builder
- Keep MAGE procedures up to date HOT 1
- Upgrade to pydantic v2 HOT 10
- Migrate docs from Memgraph docs repo to GQLAlchemy repo
- [BUG] Inclusion of the docker dependency bring in pywin32 which has an outstanding vulnerability HOT 1
- [BUG] Relax neo4j dependency version
- Expand LOAD CSV with remote CSV location HOT 2
- [BUG] Missing Cypher operators HOT 2
- Markdown lists in the documentation are not always rendered in the correct way
- Missing documentation section on execute() HOT 1
- GQLAlchemy can't be installed on Windows with Python 3.11 HOT 2
- Propagate autocommit flag from pymgclient to gqlalchemy
- Support: Confusion over usage of `Field` class HOT 8
- Add IS NOT NULL to query builder
- undefined symbol: SSL_get1_peer_certificate HOT 10
- Pydantic version HOT 11
- Docs needed for connecting to Memgraph from gqlalchemy HOT 1
- [BUG] CSVLocalFileSystemImporter can't load datetime from csv HOT 17
- [Feature Request] Please allow add edge properties in Loaders HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gqlalchemy.