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

Problems with secp256k1 #7

Closed
maxcado opened this issue Oct 15, 2018 · 9 comments
Closed

Problems with secp256k1 #7

maxcado opened this issue Oct 15, 2018 · 9 comments

Comments

@maxcado
Copy link

maxcado commented Oct 15, 2018

Hello,
I'm trying to use your code. It looks pretty well organized. Thanks for sharing. I've installed it on a linux and Windows machine but had some issues installing on Windows. There were errors regarding no secp256k1 and no pkg-config. I managed to get it installed but now when I use some code taken from
https://pybtc.readthedocs.io/en/master/_modules/pybtc/functions/bip32.html#private_from_xprivate_key I get the following message:

Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\pybtc-2.0-py3.7.egg\pybtc\xprv-to-prvkey.py", line 4, in
from secp256k1 import ffi
ModuleNotFoundError: No module named 'secp256k1'

How can I effectively manage pybtc to get all modules working properly so I can make use of the code.

@4tochka
Copy link
Contributor

4tochka commented Oct 17, 2018

Please install secp256k1 module:
pip3 install secp256k1

@maxcado
Copy link
Author

maxcado commented Oct 21, 2018

I've tried installing the module secp256k1 using pip3 and I get this message:
'pkg-config' is required to install this package. Please see the README for
details.

What is pkg-config?

@4tochka
Copy link
Contributor

4tochka commented Oct 22, 2018

For Ubuntu/Debian OS,

apt-get install -y pkg-config

For Redhat/Yum OS,

yum install -y pkgconfig

@4tochka
Copy link
Contributor

4tochka commented Oct 22, 2018

Mac OS
brew install pkg-config

@maxcado
Copy link
Author

maxcado commented Oct 22, 2018

What about the Windows platform? That is where the problem with installation occurred.

@maxcado maxcado closed this as completed Oct 22, 2018
@maxcado
Copy link
Author

maxcado commented Oct 22, 2018 via email

@maxcado
Copy link
Author

maxcado commented Oct 22, 2018 via email

@lyonLeeLPL
Copy link

i meet the same question.for help

@zjlywjh001
Copy link

zjlywjh001 commented Apr 10, 2023

Sorry for bothering, I meet the same problem. But it seemed that install msys2 or mingw-w64 on windows and install pkg-config package in mingw-w64 will solve this issue on windows.

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

4 participants