blocksmith icon indicating copy to clipboard operation
blocksmith copied to clipboard

No module named secrets

Open maxcado opened this issue 6 years ago • 3 comments

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'.

maxcado avatar Mar 21 '19 18:03 maxcado

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.

JRafiei avatar Mar 25 '19 07:03 JRafiei

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'

maxcado avatar Mar 26 '19 13:03 maxcado

   root@localhost:/sdcard/blocksmith/blocksmith# sudo pip install secrets                            

falcon141 avatar Jun 17 '21 15:06 falcon141