question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unable to import aerospike

See original GitHub issue

After 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:closed
  • Created 5 years ago
  • Comments:20 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
aerospikerobertmarkscommented, Apr 30, 2018

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 library make

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

1reaction
dwelch-spikecommented, Feb 13, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found