Author

Topic: Is Armory scripting broken? (Read 126 times)

legendary
Activity: 3640
Merit: 1345
Armory Developer
July 25, 2018, 08:25:01 PM
#2
These scripts are ancient and were never updated. Look at armoryd if you want to build automation.
newbie
Activity: 3
Merit: 0
July 25, 2018, 05:59:39 PM
#1
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
    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!
Jump to: