steemit / steem-python

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

Fail to import steem, SyntaxError: invalid syntax #140

Closed mostar closed 6 years ago

mostar commented 6 years ago

Hello,

After fresh install following "Installation with pipenv"

I fail to run the example scripts in: http://steem.readthedocs.io/en/latest/examples.html

all fail on

from steem import Steem

python Python 3.4.5 (default, May 29 2017, 15:17:55) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux Type "help", "copyright", "credits" or "license" for more information.

from steem import Steem

Traceback (most recent call last): File "", line 1, in File "/home/osboxes/steem-python/steem/init.py", line 2, in from .steem import Steem File "/home/osboxes/steem-python/steem/steem.py", line 1, in from .commit import Commit File "/home/osboxes/steem-python/steem/commit.py", line 15, in from .account import Account File "/home/osboxes/steem-python/steem/account.py", line 237 **self, ^ SyntaxError: invalid syntax

cyon1c commented 6 years ago

You are using Python 3.4.5 - try upgrading your environment to use 3.6.4. Development is currently in progress to bring compatibility across Python versions.

cyon1c commented 6 years ago

steem-python now supports Python 2.7 and Python 3.6. Closing this issue.