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

No module named secrets #5

Open
maxcado opened this issue Mar 21, 2019 · 3 comments
Open

No module named secrets #5

maxcado opened this issue Mar 21, 2019 · 3 comments

Comments

@maxcado
Copy link

maxcado commented Mar 21, 2019

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
Copy link

JRafiei commented Mar 25, 2019

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
Copy link
Author

maxcado commented Mar 26, 2019

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
Copy link

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

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

3 participants