primal100 / pybitcointools

Simple, common-sense Bitcoin-themed Python ECC library
Other
335 stars 151 forks source link

Error: name 'keystore' is not defined #20

Closed Zambi9 closed 1 year ago

Zambi9 commented 6 years ago

Followed the readme, "BIP39-BIP44 Standard Wallets" section, with the commands below, in IDLE:

>>> from cryptos import *
>>> words = entropy_to_words(os.urandom(16))
>>> words
'husband surface feel slice route air coin record want patient galaxy honey'
>>> keystore.bip39_is_checksum_valid(words)
Traceback (most recent call last):
  File "<pyshell#7>", line 1, in <module>
    keystore.bip39_is_checksum_valid(words)
NameError: name 'keystore' is not defined
>>> coin = Bitcoin()
>>> wallet = coin.wallet(words)
Traceback (most recent call last):
  File "<pyshell#9>", line 1, in <module>
    wallet = coin.wallet(words)
AttributeError: 'Bitcoin' object has no attribute 'wallet'
>>> 
Zambi9 commented 6 years ago

Ok, evidently I don't have keystore.py as well as a few other files. I used pip install cryptos for installation. I now tried to uninstall, download the zip and install that way, I got other errors. What is the current recommended way to install to have everything working as in the readme?

Zambi9 commented 6 years ago

Solved by downloading the zip (or using git clone), then pip install Pbkdf2 Will be great if you could update the package at PyPI (or revise installation instructions in the readme)

primal100 commented 1 year ago

Should be working in latest version 2.0.4.