gqlalchemy: [BUG] : undefined symbol: `EVP_PKEY_base_id` (in `mgclient.cpython-39-x86_64-linux-gnu.so`)
Memgraph version
v2.11.0
Environment
- Linux 20.04 LTS,
- conda with pip, clean environment with the only thing installed being gqlalchemy (using
pip install gqlalchemy
) - memgraph running in docker (
docker run --name memgraph -p 7687:7687 -p 7444:7444 -p 3000:3000 memgraph/memgraph-platform
)
Describe the bug
Fail to import, see log below; same thing happens whether memgraph is running or not.
To Reproduce
import gqlalchemy
Expected behavior
To import.
Logs
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[4], line 1
----> 1 import gqlalchemy
File ~/miniconda3/envs/memgraph/lib/python3.9/site-packages/gqlalchemy/__init__.py:34
19 from gqlalchemy.models import ( # noqa F401
20 MemgraphConstraintExists,
21 MemgraphConstraintUnique,
(...)
31 Field,
32 )
33 from gqlalchemy.disk_storage import SQLitePropertyDatabase # noqa F401
---> 34 from gqlalchemy.instance_runner import ( # noqa F401
35 DockerImage,
36 MemgraphInstanceBinary,
37 MemgraphInstanceDocker,
38 wait_for_docker_container,
39 wait_for_port,
40 )
41 from gqlalchemy.exceptions import GQLAlchemyError, GQLAlchemyWarning # noqa F401
43 from gqlalchemy.query_builders import ( # noqa F401
44 neo4j_query_builder,
45 memgraph_query_builder,
46 memgraph_query_builder as query_builder,
47 )
File ~/miniconda3/envs/memgraph/lib/python3.9/site-packages/gqlalchemy/instance_runner.py:35
27 import psutil
29 from gqlalchemy.exceptions import (
30 GQLAlchemyWaitForConnectionError,
31 GQLAlchemyWaitForDockerError,
32 GQLAlchemyWaitForPortError,
33 raise_if_not_imported,
34 )
---> 35 from gqlalchemy.vendors.memgraph import Memgraph
38 MEMGRAPH_DEFAULT_BINARY_PATH = "/usr/lib/memgraph/memgraph"
39 MEMGRAPH_DEFAULT_PORT = 7687
File ~/miniconda3/envs/memgraph/lib/python3.9/site-packages/gqlalchemy/vendors/memgraph.py:19
16 import sqlite3
17 from typing import List, Optional, Union
---> 19 from gqlalchemy.connection import Connection, MemgraphConnection
20 from gqlalchemy.disk_storage import OnDiskPropertyDatabase
21 from gqlalchemy.exceptions import (
22 GQLAlchemyError,
23 GQLAlchemyFileNotFoundError,
24 GQLAlchemyOnDiskPropertyDatabaseNotDefinedError,
25 GQLAlchemyUniquenessConstraintError,
26 )
File ~/miniconda3/envs/memgraph/lib/python3.9/site-packages/gqlalchemy/connection.py:18
15 from abc import ABC, abstractmethod
16 from typing import Any, Dict, Iterator, Optional
---> 18 import mgclient
19 from neo4j import GraphDatabase
20 from neo4j.graph import Node as Neo4jNode
ImportError: /home/t/miniconda3/envs/memgraph/lib/python3.9/site-packages/mgclient.cpython-39-x86_64-linux-gnu.so: undefined symbol: EVP_PKEY_base_id
Additional context Add any other context about the problem here.
About this issue
- Original URL
- State: open
- Created 9 months ago
- Comments: 19 (11 by maintainers)
Can you try installing gqlalchemy without conda, to verify the assumption?