-
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 install older version of aerospike #268
Comments
So the problem seems to be, that the package is trying to download file:
But on the official C library download page the latest ubuntu version seems to be So there is no Is there an environment variable or a command line flag that I could specify to override what file your setup script should download? Or what version of linux it should use when constructing the download URL? Can I override any of it? |
Ok, so I figured this out myself, but I do think your installation instructions should mention this. In order for the python package to use a manually installed aerospike C library, you need to set 2 environment variables:
In other words - installation works, when I run:
|
There are a few things happening here. The Python client is normally installed with manylinux wheels that bundle dependencies, pypi has a manylinux wheel for each supported version of Python. However, Client 3.10.0 does not officially support Python 3.8, so there isn't a manylinux2010 wheel and pip defaults to a source install. As you observed, the setup.py looks for a corresponding C client artifact to download, since C client 4.6.10 did not support Ubu20, that artifact does not exist and the build fails. Documentation for building on unsupported distros is here, https://github.com/aerospike/aerospike-client-python/blob/master/BUILD.md#building-on-an-unsupported-linux-distro . Sorry you ran into this and thanks for sharing your solution. |
I'm using command:
Note: I'm trying to run an older project made by someone else, this is the version specified in the requirements file - I'm not at liberty to update this.
This is what I get:
According to installation instructions:
So, my pip is definitely newer, and I'm attempting to install 3.10 which is also newer than 3.8 - so my understanding that this should work?
I also attempted to download and install 4.6.10 version of the C library (both lib and devel deb files), but that had no effect.
EDIT: forgot to mention - I'm on
Ubuntu 20.04.2 LTS
The text was updated successfully, but these errors were encountered: