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

Blockchain.stream_from expects get_config to have "STEEM_BLOCK_INTERVAL" but it is None #235

Open
cyon1c opened this issue May 7, 2018 · 0 comments

Comments

@cyon1c
Copy link
Contributor

cyon1c commented May 7, 2018

Version of Python you are running

2.7

Version of steem-python you are running

1.0.0 (master once PR #234 is merged).

Expected Behavior

"STEEM_BLOCK_INTERVAL" should return some value.

Actual Behavior

"STEEM_BLOCK_INTERVAL" is None

Steps to reproduce

This script will repro the error

from steem.blockchain import Blockchain
from steem.steem import Steem

s = Steem(nodes='https://api.steemit.com')

b = Blockchain(s)

for post in b.stream():
    print(post)

Stack Trace

Traceback (most recent call last):
  File "/Users/jw/Desktop/stream_nodes.py", line 8, in <module>
    for post in b.stream():
  File "/Users/jw/Documents/repos/steem-python/steem/blockchain.py", line 234, in stream
    for ops in self.stream_from(*args, **kwargs):
  File "/Users/jw/Documents/repos/steem-python/steem/blockchain.py", line 105, in stream_from
    time.sleep(block_interval)
TypeError: a float is required
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

1 participant