Giter Club home page Giter Club logo

Comments (3)

Paulius-Maruska avatar Paulius-Maruska commented on July 26, 2024

So the problem seems to be, that the package is trying to download file:

https://artifacts.aerospike.com/aerospike-client-c/4.6.10/aerospike-client-c-devel-4.6.10.ubuntu20.04.x86_64.deb
                                                                                                ^^^^^

But on the official C library download page the latest ubuntu version seems to be 18.04 (which is what I tried to install manually into my system).

So there is no 20.04 version. Which probably means that all your releases will break on any new version of linux that you did not build for at the time of release?

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?

from aerospike-client-python.

Paulius-Maruska avatar Paulius-Maruska commented on July 26, 2024

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:

# this is the default location
PREFIX=/usr

# disable any attempts to download packages from the internet
DOWNLOAD_C_CLIENT=-1

In other words - installation works, when I run:

$ PREFIX=/usr DOWNLOAD_C_CLIENT=-1 pip install aerospike==3.10.0

from aerospike-client-python.

dwelch-spike avatar dwelch-spike commented on July 26, 2024

Hi @Paulius-Maruska

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.

from aerospike-client-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.