You are viewing a single comment's thread from:

RE: Piston - The Swiss army knife for STEEM

in #piston7 years ago

I'm trying to run a python bot on Heroku that uses piston but I'm having trouble getting the imports correct. From the project I cloned, there is an import:

 from piston.steem import Steem

this resulted in missing modules so I played around and finally got past that with:

    from steem.steem import * 

However, I am now getting a not found on steem.storage:

Traceback (most recent call last): File "/app/.heroku/python/bin/piston", line 7, in <module> from piston.__main__ import main File "/app/.heroku/python/lib/python3.6/site-packages/piston/__main__.py", line 11, in <module> from steem.storage import configStorage as config ModuleNotFoundError: No module named 'steem.storage' Traceback (most recent call last): File "/app/.heroku/python/bin/piston", line 7, in <module> from piston.__main__ import main File "/app/.heroku/python/lib/python3.6/site-packages/piston/__main__.py", line 11, in <module> from steem.storage import configStorage as config ModuleNotFoundError: No module named 'steem.storage'

from the line:

subprocess.call(['piston', 'set', 'default_voter', steemAccountName])

Any help would be greatly appreciated.

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.028
BTC 54518.65
ETH 2301.02
USDT 1.00
SBD 2.33