steemit / steem-python

The official Python (3) library for the Steem Blockchain.
https://steem.io
MIT License
153 stars 99 forks source link

Crypto.Util.py3compat cannot import name 'byte_string' #175

Closed puzzledbytheweb closed 6 years ago

puzzledbytheweb commented 6 years ago

I have this simple code:

from steem import Steem

s = Steem();

balance = s.get_account('puzzledbytheweb')['sbd_balance']

print(balance)

Error appears here

File "C:\Program Files\Microsoft Visual Studio\Shared\Python36_86\lib\site-packages\Crypto\Util\_raw_api.py", line 32, in <module>
    from Crypto.Util.py3compat import byte_string
ImportError: cannot import name 'byte_string'

Any idea on how to solve this issue?

Thanks!!

bobinson commented 6 years ago

I think you managed to fix by re-installing ?

puzzledbytheweb commented 6 years ago

Hey! Ok, I will try. The installation so far as been a pain (in windows 7) with problems with pycrypto and python version (I'm using 3.6). This afternoon I will reinstall and hopefully everything will go as planned!

cyon1c commented 6 years ago

@puzzledbytheweb apologies for the problems installing the library.

I would highly recommend trying to install with pipenv . I can't speak to it's ease of setup on Windows, but it should give you a deterministic environment to install and run Python code.