then create a file called dex_bug.py (the example shown above) and execute it with
$ (env) python dex_bug.py
Operating system: Ubuntu 16.04
How to solve it?
I have submitted a pull request on the official steem-python GitHub, which can be found here. You can either use my branch to install steem-python with a working dex.py, or manually edit your local one by copying from here.
Changes made
The changes I made to dex.py to fix it can be seen below
When using the functions
buy()
,sell()
andcancel()
fromdex.py
/ theDex
class it returns the following errorExpected behavior
When executing the following example program
dex_bug.py
you expect it to place an order on the marketwhich would look like this
Actual behavior
When executing
dex_bug.py
you get the following outputHow to reproduce
An easy way to reproduce this error is to have Python3.6 installed and do the following
then create a file called
dex_bug.py
(the example shown above) and execute it withHow to solve it?
I have submitted a pull request on the official steem-python GitHub, which can be found here. You can either use my branch to install
steem-python
with a workingdex.py
, or manually edit your local one by copying from here.Changes made
The changes I made to
dex.py
to fix it can be seen belowPosted on Utopian.io - Rewarding Open Source Contributors