xeroc / piston-cli

Command line tool to interact with the STEEM network
MIT License
74 stars 33 forks source link

error in voting using command line #91

Closed btcre closed 7 years ago

btcre commented 7 years ago

Hi, I'm getting an error in voting, before it works okay.
After the node connection problem I upgraded the piston and now this is the error in voting.

piston upvote --voter btcre @irawandedy/make-sticky-rice-bulukat-acehnese-and-wrapping-techniques

Traceback (most recent call last): File "/home/btcre/.local/bin/piston", line 11, in sys.exit(main()) File "/home/btcre/.local/lib/python3.5/site-packages/steem_piston-0.3-py3.5.egg/piston/main.py", line 833, in main voter=args.voter File "/home/btcre/.local/lib/python3.5/site-packages/steem_piston-0.3-py3.5.egg/piston/steem.py", line 529, in vote return self.executeOp(op, wif) File "/home/btcre/.local/lib/python3.5/site-packages/steem_piston-0.3-py3.5.egg/piston/steem.py", line 340, in executeOp tx = transactions.JsonObj(tx) AttributeError: module 'steembase.transactions' has no attribute 'JsonObj'

xeroc commented 7 years ago

That is weird, it shouldn't happen, can you please run

pip3 install steem-piston --upgrade

to make sure the dependencies are updated aswell?

btcre commented 7 years ago

Ok upgraded, I got the same error message.

xeroc commented 7 years ago

hmm .. well .. the most recent version of piston doesn't use piston/steem.py .. something must be weird with your installation.

can you try to uninstall with pip3 uninstall steem-piston first?

btcre commented 7 years ago

Hi Xeroc, I unstalled and then installed it again, but once I run piston command I got this error message

Traceback (most recent call last): File "/home/btcre/.local/bin/piston", line 7, in from piston.main import main File "/home/btcre/.local/lib/python3.5/site-packages/piston/main.py", line 40, in from steem.steem import AccountDoesNotExistsException ImportError: cannot import name 'AccountDoesNotExistsException'

On Tue, Mar 7, 2017 at 4:36 PM, Fabian Schuh notifications@github.com wrote:

hmm .. well .. the most recent version of piston doesn't use piston/steem.py .. something must be weird with your installation.

can you try to uninstall with pip3 uninstall steem-piston first?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xeroc/piston-cli/issues/91#issuecomment-284656336, or mute the thread https://github.com/notifications/unsubscribe-auth/AGD1Eb8Nz9F7kbfJIa5Hrm1ABuS32LwJks5rjRccgaJpZM4MSSn4 .

btcre commented 7 years ago

Hi, I reinstall my server and reinstall piston and upgraded, every piston commands works fine except to the vote command, this is the new error I'm getting, please need feedback and thank you.

-- Traceback (most recent call last): File "/home/btcre/.local/bin/piston", line 11, in sys.exit(main()) File "/home/btcre/.local/lib/python3.5/site-packages/pistoncli/main.py", line 1533, in main post = Post(args.post) File "/home/btcre/.local/lib/python3.5/site-packages/piston/post.py", line 47, in init self.refresh() File "/home/btcre/.local/lib/python3.5/site-packages/piston/post.py", line 81, in refresh Amount(post.get("total_pending_payout_value", "0 %s" % self.steem.symbol("SBD"))) File "/home/btcre/.local/lib/python3.5/site-packages/piston/amount.py", line 59, in add assert other["asset"] == self["asset"] AssertionError

xeroc commented 7 years ago

Yhea .. the backend has changed a couple things and I coudn't catch up .. please install piston-cli 0.5.1(!)