Bitcoin Forum

Bitcoin => Armory => Topic started by: faxxxik on July 25, 2018, 09:59:39 PM



Title: Is Armory scripting broken?
Post by: faxxxik on July 25, 2018, 09:59:39 PM
Today I tried to automate some task within Armory and learnt a bit about scripting.

However, none of what I tried (e.g. extras/BDMbasics_listUTXOs.py) worked.

Specifically, no matter what I did (ran scripts stand-alone, started ArmoryDB or Armory), self.cppWallet was always None, so most of the functions didn't work.
Code:
Traceback (most recent call last):
  File "extras/BDMbasics_listUTXOs.py", line 50, in <module>
    wlt.registerWallet(isNew=False)
  File "/home/faxik/workspace/BitcoinArmory/armoryengine/PyBtcWallet.py", line 285, in registerWallet
    raise Exception('invalid cppWallet object')
Exception: invalid cppWallet object

I did all the tests (which were never updated in the last 3 years) on the current master branch. Is the scripting broken? Or the examples are outdated? Or maybe I'm missing something?

P.s. I'll hope to find time to play with older (0.93 maybe) version of Armory which would require rebuilding the database.

Please, advise! Thanks!


Title: Re: Is Armory scripting broken?
Post by: goatpig on July 26, 2018, 12:25:01 AM
These scripts are ancient and were never updated. Look at armoryd if you want to build automation.