Giter Site home page Giter Site logo

Comments (5)

pch957 avatar pch957 commented on July 28, 2024

seems you don't have command 'make'
try install make

from secp256k1-py.

ppitonak avatar ppitonak commented on July 28, 2024

make is available. It seems that this package cannot be installed using Python 3.6 (default) but it works with 3.5

from secp256k1-py.

Wallacoloo avatar Wallacoloo commented on July 28, 2024

I can confirm this bug on Arch Linux. Installing this library via pip on Python3.5 succeeds, presumably because it uses a prebuilt package as stated in the Readme, but installing via pip on Python3.6 triggers a build of the C library which fails as shown above by @ppitonak.

$ gcc --version
gcc (GCC) 7.2.1 20171224
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

To highlight the build error:

    /tmp/pip-build-p8qbm3sp/secp256k1/libsecp256k1/src/tests.c: In function ‘test_ecdsa_der_parse’:
    /tmp/pip-build-p8qbm3sp/secp256k1/libsecp256k1/src/tests.c:3702:52: error: dereferencing pointer to incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
             valid_openssl = !BN_is_negative(sig_openssl->r) && !BN_is_negative(sig_openssl->s) && BN_num_bits(sig_openssl->r) > 0 && BN_num_bits(sig_openssl->r) <= 256 && BN_num_bits(sig_openssl->s) > 0 && BN_num_bits(sig_openssl->s) <= 256;

I wouldn't be surprised if it's somehow tied to us using a newer version of gcc than the libsecp256k1 devs which handles this error differently.

from secp256k1-py.

Uxio0 avatar Uxio0 commented on July 28, 2024

I see that there are recompiled binary wheels available for Python 2.7, 3.3, 3.4, and 3.5 on Linux. Would be awesome to have it too for Python 3.6

from secp256k1-py.

xjia1 avatar xjia1 commented on July 28, 2024

Please see #24 (comment) for a workaround.

from secp256k1-py.

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.