RE: Piston - The Swiss army knife for STEEM
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.