memgraph / pymgclient

Python Memgraph Client
https://memgraph.github.io/pymgclient/
Apache License 2.0
43 stars 6 forks source link

pymgclient build/import issue #22

Closed stevemarin closed 1 year ago

stevemarin commented 2 years ago

I'm running memgraph-mage in a docker container and building pymgclient in another. The build process goes fine, but when I try to import pymgclient, I get an error that seems to have something to do with SSL, but I'm not quite sure.

import mgclient
ImportError: .../python3.9/site-packages/mgclient.cpython-39-x86_64-linux-gnu.so: undefined symbol: EVP_PKEY_base_id

Any ideas?

antaljanosbenjamin commented 2 years ago

Hi @stevemarin!

I think the issue is pymgclient is built using an older version of OpenSSL than the other machine has. If you check this commit from OpenSSL you will see it was renamed ~5 months ago (check in crypto/evp/p_lib.c). My first suggestion would be try to build pymgclient on the same machine as you are going to use it. If it is not possible, then try to sync the OpenSSL versions between the docker images. That way you should be able to transfer the built binaries.

katarinasupe commented 1 year ago

Cleaning up a bit... @stevemarin can this issue be closed? Btw. I know a bunch of time passed by, but did you end up using Memgraph?

stevemarin commented 1 year ago

Thank you for the response! Yeah, I can close it. We ended using Neo4J at the time, but we unfortunately had to set the project aside for other emergent work. I'll be happy to check out memgraph when we get back to it. Thanks again!

katarinasupe commented 1 year ago

Thank you for the quick response 😄 If you want to stay in touch, feel free to join our Discord community and let us know when you get back to your project :) By the way, what was your graph use case?