Bitcoin Forum
May 07, 2024, 07:46:13 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is Armory scripting broken?  (Read 126 times)
faxxxik (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
July 25, 2018, 09: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 <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!
1715111173
Hero Member
*
Offline Offline

Posts: 1715111173

View Profile Personal Message (Offline)

Ignore
1715111173
Reply with quote  #2

1715111173
Report to moderator
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
goatpig
Moderator
Legendary
*
Offline Offline

Activity: 3668
Merit: 1347

Armory Developer


View Profile
July 26, 2018, 12:25:01 AM
 #2

These scripts are ancient and were never updated. Look at armoryd if you want to build automation.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!