Author Topic: python bitshare i have some error sell command  (Read 2389 times)

0 Members and 1 Guest are viewing this topic.

Offline oddhome

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc

This could be fixed by running

  pip3 install secp256k1

as root.

Also, can you please create an issue on github for this? Thanks

Offline oddhome

i can run on my desktop work successful and upload to server run fail please help

Traceback (most recent call last):
  File "/var/web/tools/", line 65, in <module>
    print(market.sell(bid, amount))
  File "/usr/local/lib/python3.5/dist-packages/bitshares/", line 513, in sell
    tx = self.bitshares.finalizeOp(order, account["name"], "active")
  File "/usr/local/lib/python3.5/dist-packages/bitshares/", line 292, in finalizeOp
  File "/usr/local/lib/python3.5/dist-packages/bitshares/", line 347, in sign
    signedtx.sign(self.wifs, chain=self.bitshares.rpc.chain_params)
  File "/usr/local/lib/python3.5/dist-packages/bitsharesbase/", line 21, in sign
    return super(Signed_Transaction, self).sign(wifkeys, chain)
  File "/usr/local/lib/python3.5/dist-packages/graphenebase/", line 186, in sign
    signature = sign_message(self.message, wif)
  File "/usr/local/lib/python3.5/dist-packages/graphenebase/", line 180, in sign_message
    private_key = ec.derive_private_key(int(repr(priv_key), 16), ec.SECP256K1(), default_backend())
AttributeError: module '' has no attribute 'derive_private_key'