unable to import aerospike
See original GitHub issueAfter installing python client for aerospike, I am unable to import it. I am using the openssl 1.1.0g on ubuntu 18.04.
>>> import aerospike
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /usr/local/lib/python3.6/dist-packages/aerospike.cpython-36m-x86_64-linux-gnu.so: undefined symbol: SSLv23_client_method
Issue Analytics
- State:
- Created 5 years ago
- Comments:20 (8 by maintainers)
Top Results From Across the Web
Unable to import aerospike in python 3.7 - Stack Overflow
I was trying to import aerospike after downloading it using pip and I am getting this error. I tried reinstalling the python using...
Read more >unable to import python client · Issue #255 - GitHub
Hey @evstratbg ,. The Python Client currently supports openssl1.1.1 on Linux through our manylinux builds https://discuss.aerospike.com/t/python-client- ...
Read more >Python client error when doing import
I am on a Macbook, Yosemite with lua51 installed via brew. I did pip install. However I cant get the client to load....
Read more >[Example code]-Unable to import aerospike in python 3.7
The Aerospike python client is most likely failing on import because of a missing openssl dependency. I would recommend installing openssl brew install...
Read more >exception - Aerospike documentation
This is a simple example on how to catch an exception thrown by the Aerospike client: import aerospike from aerospike import exception as...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @tarinders23, We don’t have a perfect solution yet, but are working on it.
For now, I would recommend manually building the C client: https://github.com/aerospike/aerospike-client-c which the Python client depends upon, and then installing the python client:
For safety first remove the current version of the python client, (Assuming it was installed with pip)
pip uninstall aerospike
git clone https://github.com/aerospike/aerospike-client-c.git
cd aerospike-client-c/
Install the dependencies mentioned in the readme for that repo: https://github.com/aerospike/aerospike-client-c#build-prerequisites
git submodule update --init
Build the C client librarymake
From the C client directory, pip install the aerospike python client, making sure not to use the cached version.
AEROSPIKE_C_HOME=$PWD DOWNLOAD_C_CLIENT=0 pip install --no-cache-dir aerospike
It’s somewhat involved, but it should work. Let me know if the doesn’t fix the issue
The python client does not officially support python 3.8 yet. The origin of the “OS not supported” error can be seen here https://github.com/aerospike/aerospike-client-python/issues/250. You can get around this by manually building and installing the client via these directions.
Since this issue is closed please continue discussion at the open issue https://github.com/aerospike/aerospike-client-python/issues/255.
Thanks.