You are viewing a single comment's thread from:

RE: Creating Your First Program On The Steemit Network Using Steem-Python #BeginnerMode - TUTORIAL

in #steemdev7 years ago

Hey @benniebanana, there's a typo in your code within the post (not the code that's in the image, fortunately) -- you need "[" and "]" around the keys themselves, so it should read:

s = Steem(keys=['your-private-posting-key', 'your-private-active-key'])

instead of:
s = Steem(keys='your-private-posting-key', 'your-private-active-key')

Thanks again for your help! I'm slowly making progress. :)

Sort:  

Once I got past that, it gave this error:

ValueError: You need to provide a voter account

I checked back all the steps above, in this post, to ensure I didn't make a mistake. Looks like I'm going to need to read the documentation... :)

Did you ever get this figured out? Thats the step I am stuck on!

Yeah, but I've forgotten most of it (still recovering from multiple concussions, although doing better lately). Plus I reinstalled the tower I had it on, so it's gone.

Thanks for pointing it out. When I created this I was still in the learning phase so mistakes were inevitable haha. Think I'll be doing an updated one today. Will tag you when I'm done.

Cool thanks!

You are welcome Master.

Am I talking to two different people, or merely two different accounts? :)

Um no I'm only talkong to you.

I meant, does @benniebanana own both?

It seems from your previous comment "When I created this I was still in the learning phase..." that you seem to believe that you have created this post, when, it is attributed to @benniebanana...

ValueError: You need to provide a voter account

Solution:

vote(self, identifier, weight, account=None):

Vote function requires the account name, so modify the code as shown below,

s.vote('@benniebanana/creating-your-first-program-on-the-steemit-network-using-steem-python-beginnermode-tutorial', 100.0,'xyz')

where 'xyz' is the voter's account name.