bitaps-com / pybtc

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

windows not be supported? #16

Open youngqqcn opened 4 years ago

youngqqcn commented 4 years ago

I install pybtc on windows failed

C:\Users\Administrator>pip install pybtc
Looking in indexes: https://pypi.doubanio.com/simple
Collecting pybtc
  Using cached https://pypi.doubanio.com/packages/a1/66/1f3c4ae65452d8e84f1524b7
97dcee919794f449ce912c730dd1e45e0008/pybtc-2.0.9-py3-none-any.whl
Collecting secp256k1 (from pybtc)
  Using cached https://pypi.doubanio.com/packages/52/62/d7bf3829e126e517e253d2e2
2a63511c54bbaac34d7ddea316cde040fc49/secp256k1-0.13.2.tar.gz
    ERROR: Command errored out with exit status 1:
     command: 'd:\python37_x64\python.exe' -c 'import sys, setuptools, tokenize;
 sys.argv[0] = '"'"'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-dxt4o
bbz\\secp256k1\\setup.py'"'"'; __file__='"'"'C:\\Users\\ADMINI~1\\AppData\\Local
\\Temp\\pip-install-dxt4obbz\\secp256k1\\setup.py'"'"';f=getattr(tokenize, '"'"'
open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f
.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-
egg-info
         cwd: C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-dxt4obbz\secp256k
1\
    Complete output (1 lines):
    'pkg-config' is required to install this package. Please see the README for
details.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check th
e logs for full command output.

C:\Users\Administrator>
4tochka commented 4 years ago

Try install from Github repository pip install git+https://github.com/bitaps-com/pybtc

ghost commented 4 years ago

Same problem. And when installing from github

Cloning https://github.com/bitaps-com/pybtc to c:\users\pk\appdata\local\temp\pip-req-build-x65bxtru
  Running command git clone -q https://github.com/bitaps-com/pybtc 'C:\Users\pk\AppData\Local\Temp\pip-req-build-x65bxtru'
Building wheels for collected packages: pybtc
  Building wheel for pybtc (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\pk\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\pk\\AppData\\Local\\Temp\\pip-req-build-x65bxtru\\setup.py'"'"'; __file__='"'"'C:\\Users\\pk\\AppData\\Local\\Temp\\pip-req-build-x65bxtru\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\pk\AppData\Local\Temp\pip-wheel-vp49568c'
       cwd: C:\Users\pk\AppData\Local\Temp\pip-req-build-x65bxtru\
  Complete output (67 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win32-3.7
  creating build\lib.win32-3.7\pybtc
  copying pybtc\address.py -> build\lib.win32-3.7\pybtc
  copying pybtc\block.py -> build\lib.win32-3.7\pybtc
  copying pybtc\consensus.py -> build\lib.win32-3.7\pybtc
  copying pybtc\constants.py -> build\lib.win32-3.7\pybtc
  copying pybtc\crypto.py -> build\lib.win32-3.7\pybtc
  copying pybtc\opcodes.py -> build\lib.win32-3.7\pybtc
  copying pybtc\transaction.py -> build\lib.win32-3.7\pybtc
  copying pybtc\wallet.py -> build\lib.win32-3.7\pybtc
  copying pybtc\__init__.py -> build\lib.win32-3.7\pybtc
  copying pybtc\__to_remove_blockchain__.py -> build\lib.win32-3.7\pybtc
  creating build\lib.win32-3.7\pybtc\bitarray
  copying pybtc\bitarray\__init__.py -> build\lib.win32-3.7\pybtc\bitarray
  creating build\lib.win32-3.7\pybtc\connector
  copying pybtc\connector\block_loader.py -> build\lib.win32-3.7\pybtc\connector
  copying pybtc\connector\connector.py -> build\lib.win32-3.7\pybtc\connector
  copying pybtc\connector\utils.py -> build\lib.win32-3.7\pybtc\connector
  copying pybtc\connector\utxo.py -> build\lib.win32-3.7\pybtc\connector
  copying pybtc\connector\__init__.py -> build\lib.win32-3.7\pybtc\connector
  creating build\lib.win32-3.7\pybtc\functions
  copying pybtc\functions\address.py -> build\lib.win32-3.7\pybtc\functions
  copying pybtc\functions\bip32.py -> build\lib.win32-3.7\pybtc\functions
  copying pybtc\functions\bip39_mnemonic.py -> build\lib.win32-3.7\pybtc\functions
  copying pybtc\functions\block.py -> build\lib.win32-3.7\pybtc\functions
  copying pybtc\functions\encode.py -> build\lib.win32-3.7\pybtc\functions
  copying pybtc\functions\filters.py -> build\lib.win32-3.7\pybtc\functions
  copying pybtc\functions\hash.py -> build\lib.win32-3.7\pybtc\functions
  copying pybtc\functions\key.py -> build\lib.win32-3.7\pybtc\functions
  copying pybtc\functions\script.py -> build\lib.win32-3.7\pybtc\functions
  copying pybtc\functions\shamir.py -> build\lib.win32-3.7\pybtc\functions
  copying pybtc\functions\tools.py -> build\lib.win32-3.7\pybtc\functions
  copying pybtc\functions\__init__.py -> build\lib.win32-3.7\pybtc\functions
  creating build\lib.win32-3.7\pybtc\test
  copying pybtc\test\address_class.py -> build\lib.win32-3.7\pybtc\test
  copying pybtc\test\address_functions.py -> build\lib.win32-3.7\pybtc\test
  copying pybtc\test\block.py -> build\lib.win32-3.7\pybtc\test
  copying pybtc\test\create_transaction.py -> build\lib.win32-3.7\pybtc\test
  copying pybtc\test\ecdsa.py -> build\lib.win32-3.7\pybtc\test
  copying pybtc\test\filters.py -> build\lib.win32-3.7\pybtc\test
  copying pybtc\test\hash_functions.py -> build\lib.win32-3.7\pybtc\test
  copying pybtc\test\integer.py -> build\lib.win32-3.7\pybtc\test
  copying pybtc\test\mnemonic.py -> build\lib.win32-3.7\pybtc\test
  copying pybtc\test\script_deserialize.py -> build\lib.win32-3.7\pybtc\test
  copying pybtc\test\script_functions.py -> build\lib.win32-3.7\pybtc\test
  copying pybtc\test\shamir.py -> build\lib.win32-3.7\pybtc\test
  copying pybtc\test\sighash.py -> build\lib.win32-3.7\pybtc\test
  copying pybtc\test\transaction_constructor.py -> build\lib.win32-3.7\pybtc\test
  copying pybtc\test\transaction_deserialize.py -> build\lib.win32-3.7\pybtc\test
  copying pybtc\test\wallet_class.py -> build\lib.win32-3.7\pybtc\test
  copying pybtc\test\__init__.py -> build\lib.win32-3.7\pybtc\test
  creating build\lib.win32-3.7\pybtc\bip39_word_list
  copying pybtc\bip39_word_list\chinese_simplified.txt -> build\lib.win32-3.7\pybtc\bip39_word_list
  copying pybtc\bip39_word_list\chinese_traditional.txt -> build\lib.win32-3.7\pybtc\bip39_word_list
  copying pybtc\bip39_word_list\english.txt -> build\lib.win32-3.7\pybtc\bip39_word_list
  copying pybtc\bip39_word_list\french.txt -> build\lib.win32-3.7\pybtc\bip39_word_list
  copying pybtc\bip39_word_list\italian.txt -> build\lib.win32-3.7\pybtc\bip39_word_list
  copying pybtc\bip39_word_list\japanese.txt -> build\lib.win32-3.7\pybtc\bip39_word_list
  copying pybtc\bip39_word_list\korean.txt -> build\lib.win32-3.7\pybtc\bip39_word_list
  copying pybtc\bip39_word_list\spanish.txt -> build\lib.win32-3.7\pybtc\bip39_word_list
  copying pybtc\test\raw_block.txt -> build\lib.win32-3.7\pybtc\test
  running build_clib
  error: [WinError 193] %1 не является приложением Win32
  ----------------------------------------
  ERROR: Failed building wheel for pybtc

I will try to install earlier commits.

RozMakc commented 3 years ago

Same problem. And when installing from github

error: [WinError 193] %1 не является приложением Win32