Destiner / blocksmith

Bitcoin/Ethereum key manipulation
Apache License 2.0
260 stars 92 forks source link

No module named secrets #5

Open maxcado opened 5 years ago

maxcado commented 5 years ago

Hello, this code looks interesting and potentially useful, however upon installing in python 2.7 on linux -- Ubuntu 18.1 there's the error No module names secrets. There an issue in line 1 of init.py - from.generator import KeyGenerator and line 3 of generator.py for import secrets.

Note that there were no errors during installation. It's just the above issues after trying to 'import blocksmith'.

JRafiei commented 5 years ago

Hi @maxcado. There is no secrets module in python 2.7. You should use this package on an environment with python 3.6 or above installed.

maxcado commented 5 years ago

Good day @JRafiei. I've installed using python 3.6 and get the following errors:

import blocksmith Traceback (most recent call last): File "", line 1, n File "/usr/local/lib/python3.6/dist-packages/blocksmith/init.py", line 3, in from.ethereum import EthereumWallet File "usr/local/lib/python3.6/dist-packages/blocksmith/ethereum.py", line 3, in from Crypto.Hash import keccak File "/home/maxcado/.local/lib/python3.6/site-packages/Crypto/Hash/keccak.py", line 33, in from Crypto.Util._raw_api import (load_pycrptodome_raw_lib, File "/home/maxcado/.local/lib/python3.6/site-packages/Crypto/Util/_raw_api.py", line 34, in from Crypto.Util.py3compat import byte_sring Import Error: cannot import name 'byte _string'

falcon141 commented 3 years ago
   root@localhost:/sdcard/blocksmith/blocksmith# sudo pip install secrets