Skip to content
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

PyPy build issue on macOS #10

Open
zeropoid opened this issue Jan 3, 2018 · 21 comments
Open

PyPy build issue on macOS #10

zeropoid opened this issue Jan 3, 2018 · 21 comments

Comments

@zeropoid
Copy link

zeropoid commented Jan 3, 2018

How to fix this?

screenshot at jan 03 05-12-14

@ofek
Copy link
Owner

ofek commented Jan 3, 2018

@zeropoid
Copy link
Author

zeropoid commented Jan 3, 2018

it's not working exactly using https://github.com/ofek/coincurve#installation

@ofek
Copy link
Owner

ofek commented Jan 3, 2018

What command are you using to install?

@zeropoid
Copy link
Author

zeropoid commented Jan 3, 2018

sudo -H pypy -m pip install coincurve

@ofek
Copy link
Owner

ofek commented Jan 3, 2018

Can you please check if sudo -H pypy -m pip install https://files.pythonhosted.org/packages/bf/03/45fc216b065a11c142b96a857c40c39265b3c8a7d736d45d7fed5fc5edb6/coincurve-6.0.0-cp35-cp35m-macosx_10_6_intel.whl works?

@zeropoid
Copy link
Author

zeropoid commented Jan 3, 2018

Nope

@zeropoid
Copy link
Author

zeropoid commented Jan 3, 2018

With your command I am getting: coincurve-6.0.0-cp35-cp35m-macosx_10_6_intel.whl is not a supported wheel on this platform.

@zeropoid
Copy link
Author

zeropoid commented Jan 3, 2018

My platform is: macOS Hight Sierra 10.13.2 (17C88)

@jgraef
Copy link

jgraef commented Jan 29, 2018

I have the same issue when building from source. With CFLAGS=-I$(realpath libsecp256k1/src/) python3 setup.py install it works. I think somewhere it sets [...]/libsecp256k1 as include path (gcc flag -I) and misses that those headers are actually in [...]/libsecp256k1/src.

@ofek
Copy link
Owner

ofek commented Feb 1, 2018

bitcoin-core/secp256k1@f54c6c5 broke us I think

@jgraef Can you please try c120e8c ?

@zeropoid
Copy link
Author

zeropoid commented Feb 1, 2018

Okey, looks like I'v temporary solved this issue, by changing relative paths in the file _cffi_build/build.py, but after successful installation, I am facing another looks like related issue.
If now I am trying to lunch some python script using pypy, I am getting this:

screenshot at feb 01 21-12-25

And I think to myself.... What a wonderful world ;d

@ofek
Copy link
Owner

ofek commented Feb 1, 2018

Can you please try in a completely fresh env with version 7.0.0 released last night?

@zeropoid
Copy link
Author

The same problem persist even in version 7.1.0
screenshot at feb 13 00-00-56

@ofek
Copy link
Owner

ofek commented Feb 12, 2018

@ulope If you have time, can you please take a look at this? It must be an issue with PyPy on macOS.

@zeropoid
Copy link
Author

Where exactly... Would you be, so kind and be more specific on this?

@ofek ofek changed the title Unable to install PyPy build issue on macOS May 23, 2018
@vyomshm
Copy link

vyomshm commented Sep 11, 2018

I'm getting the same error when trying to install coincurve on a Raspberry pi.

I was trying to run microraiden's pi tutorial

@Sonixier
Copy link

Same problem on linux.

@ghost
Copy link

ghost commented Aug 9, 2019

It seems like the issue is related to secp256k1_ecdh being marked as an experimental module. Some OSes/distros compile that module in, while sometimes don't. In order to enable it during manual compilation of libsecp256k1, you have to add following options while executing ./configure:
--enable-experimental --enable-module-ecdh
After compiling it, the problem should disappear.

@ghost
Copy link

ghost commented Oct 12, 2020

Same problem on OpenBSD.

@gurukamath
Copy link

Is there any work-around here? I am facing the same issue on macOS Monterey with Apple M1

@RamirezAlex
Copy link

Is there any progress on this? I am having this issue with Apple Silicon M1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants