You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit calling into TransactionBuilder Python 2.7 str/unicode incompatibility #190
I can post content smoothly with python3.6, but when I change to post it with python2.7.14, I get a Error that is "Invalid TransactionBuilder Format".
I will simplify the problem into the following code:
from stee import Steem
s = Steem(...)
s.post(title='test', body='test', author='myname', tags=('steemtest',), permlink='ywqamoc1')
here is Error content:
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/site-packages/steem/commit.py", line 353, in post
return self.finalizeOp(ops, author, "posting")
File "/usr/local/lib/python2.7/site-packages/steem/commit.py", line 132, in finalizeOp
tx.sign()
File "/usr/local/lib/python2.7/site-packages/steem/transactionbuilder.py", line 118, in sign
raise ValueError("Invalid TransactionBuilder Format")
ValueError: Invalid TransactionBuilder Format
changed the title [-]when I post a something with python2.7.14, I get "Invalid TransactionBuilder Format" Error[/-][+]Commit.Post Python 2.7 str/unicode incompatibility[/+]on Mar 27, 2018
Activity
cyon1c commentedon Mar 27, 2018
The error raised masks the actual issue, which is unicode vs str handling in 2.7.
The actual error is
descriptor 'title' requires a 'str' object but received a 'unicode'.This appears to be a Python 2 bug only.
[-]when I post a something with python2.7.14, I get "Invalid TransactionBuilder Format" Error[/-][+]Commit.Post Python 2.7 str/unicode incompatibility[/+][-]Commit.Post Python 2.7 str/unicode incompatibility[/-][+]Commit calling into TransactionBuilder Python 2.7 str/unicode incompatibility[/+]cyon1c commentedon Apr 5, 2018
This should be resolved with #203 .