-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to import aerospike #214
Comments
Thanks for reporting this, we're looking into the issue. |
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) Install the dependencies mentioned in the readme for that repo: https://github.com/aerospike/aerospike-client-c#build-prerequisites
From the C client directory, pip install the aerospike python client, making sure not to use the cached version. It's somewhat involved, but it should work. Let me know if the doesn't fix the issue |
With version 3.3.0, released on pip today, installation should work via |
Thank you for the help. |
Thank you for letting us know about the problem, it's always helpful to hear about issues. |
Occuring on Fedora 29 on Python 3.x+. I performed the above from @aerospikerobertmarks aerospikerobertmarks, (built from source) but the problem still exists. in Fedora libssl -> openssl-devel SSLv23_client_method I think that there was some depreciation of methods between versions of openssl. Please check that out. [jon2kx@pc-local checkairospike]$ ./checkairospikedata.py |
@aerospikerobertmarks I can confirm this is still an issue in Fedora 29. @jon2kx the workaround of compiling the C client and using it in the Python client setup is working for me on Fedora 29. Are you sure you compiled the C client correctly AND did the pip install from the C client directory? For Python 3 in a virtual environment:
For Python 3 at the system level use
You should see the python setup find the compiled C client you checked out:
And you should NOT see the python setup using the downloaded C client:
|
That worked after all. I'm not sure what happened the first time around, but probably safe to say user error on my part. |
Workaround setup is not working for me on CentOS 7.6 for python3.x+ . Tried installing from the c client directory itself but still getting the same error |
Make sure you have the python-devel package installed for the version you
are using, and you need to be in the build directory as well post build
…On Thu, Feb 14, 2019 at 6:17 AM ankur-chouragade ***@***.***> wrote:
Workaround setup is not working for me on CentOS 7.6 for python3.x+ .
Tried installing from the c client directory itself but still getting the
same error
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#214 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXieCWmRSXN_Rz-1hsUz_RWGd_qeyJWOks5vNUXRgaJpZM4TrbKe>
.
|
any chance to get this issue solved in a better way? |
With pip (>=19.0) and latest python client (>=3.8.0), you should be able to install on linux without needing to clone the c client or install any other dependencies anymore Can you please try again with this setup? |
Hey, @marknaero the issue still exists under Fedora 31 pip freeze | grep aero |
@alon-dotan-starkware Thanks for trying. As Dylan pointed out to me this morning, we don't officially support python 3.7 yet, so we did not update pypi with a 3.7 manylinux2010 wheel. We'll get back to you soon with a possible step to try in the meantime. |
@marknaero |
The latest version of the python client is uploaded to pip. We are working on official python3.7 support for the client. When it is released, we will post it to the production pip repo. Thank you for your patience. |
Tried installing the python client on my system. Collecting aerospike |
Cuirious if you have you tried this with python 3.7? I see that the error
states that the OS is not supported, but do give it a try with 3.6 or 3.7.
…On Thu, Feb 13, 2020, 4:55 AM pravin1406 ***@***.***> wrote:
Tried installing the python client on my system.
Tried various solutions but nothing seems to work
Collecting aerospike
Using cached
https://files.pythonhosted.org/packages/62/e1/b33a0bcbb1f223fecb22bcfa70fd7add740ab96cc6ce1d083f14a429f2ca/aerospike-3.10.0.tar.gz
ERROR: Command errored out with exit status 8:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -c
'import sys, setuptools, tokenize; sys.argv[0] =
'"'"'/private/var/folders/r8/839_4ptd2pq2c6s1z7gfdvbr0000gp/T/pip-install-4myvi98j/aerospike/setup.py'"'"';
*file*='"'"'/private/var/folders/r8/839_4ptd2pq2c6s1z7gfdvbr0000gp/T/pip-install-4myvi98j/aerospike/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(*file*);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, *file*, '"'"'exec'"'"'))'
egg_info --egg-base
/private/var/folders/r8/839_4ptd2pq2c6s1z7gfdvbr0000gp/T/pip-install-4myvi98j/aerospike/pip-egg-info
cwd:
/private/var/folders/r8/839_4ptd2pq2c6s1z7gfdvbr0000gp/T/pip-install-4myvi98j/aerospike/
Complete output (1 lines):
error: OS not supported: macOS-10.14.6-x86_64-i386-64bit
----------------------------------------
ERROR: Command errored out with exit status 8: python setup.py egg_info
Check the logs for full command output.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#214?email_source=notifications&email_token=AF4J4CNFORDWJA4PURIYYB3RCUKKRA5CNFSM4E5NWKPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELUDPMY#issuecomment-585643955>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF4J4CIJPTHS7GDT7VEYYTTRCUKKRANCNFSM4E5NWKPA>
.
|
Thanks. It works fine with 3.7. I had 3.8.1 |
The python client does not officially support python 3.8 yet. The origin of the "OS not supported" error can be seen here #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 #255. Thanks. |
After installing python client for aerospike, I am unable to import it.
I am using the openssl 1.1.0g on ubuntu 18.04.
The text was updated successfully, but these errors were encountered: