bitaps-com / pybtc

Python bitcoin library
GNU General Public License v3.0
86 stars 35 forks source link

Problems with secp256k1 #7

Closed maxcado closed 5 years ago

maxcado commented 5 years ago

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 commented 5 years ago

Please install secp256k1 module: pip3 install secp256k1

maxcado commented 5 years ago

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 commented 5 years ago

For Ubuntu/Debian OS,

apt-get install -y pkg-config

For Redhat/Yum OS,

yum install -y pkgconfig

4tochka commented 5 years ago

Mac OS brew install pkg-config

maxcado commented 5 years ago

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

maxcado commented 5 years ago

What about the windows platform?

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐:

For Ubuntu/Debian OS,

apt-get install -y pkg-config

For Redhat/Yum OS,

yum install -y pkgconfig

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

maxcado commented 5 years ago

What about the windows platform?

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Monday, October 22, 2018 6:41 AM, Aleksey Karpov notifications@github.com wrote:

Mac OS brew install pkg-config

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

lyonLeeLPL commented 4 years ago

i meet the same question.for help

zjlywjh001 commented 1 year ago

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.