I try: ledger python demo.py
with content:
import ledger
for xact in ledger.read_journal("drewr3.dat").xacts:
for post in xact.posts:
print "Transferring %s to/from %s" % (post.amount, post.account)
and get:
Traceback (most recent call last):
File "demo.py", line 3, in <module>
for xact in ledger.read_journal("drewr3.dat").xacts:
TypeError: 'instancemethod' object is not iterable
terminate called after throwing an instance of 'int'
Aborted
what should i do?
thank before
--
---
You received this message because you are subscribed to the Google Groups
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.