I think you're using some obsolete code. I don't see this on the master branch.
On Sun, Dec 1, 2024 at 4:05 PM fin <f...@anthive.com> wrote: > > Hello all, > > > I'm trying to get this script to run and getting errors > > > For version from 2.3.6 I get: > > > (bc) me@ant(14)~/fin/beancount/stmon$ python export.py ledger.bc -c fin > INFO : Operating currency: USD > Traceback (most recent call last): > File "/home/me/fin/beancount/stmon/export.py", line 373, in <module> > main() > File "/home/me/fin/beancount/stmon/export.py", line 359, in main > final_table = reorder_columns(joined_table, headers) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/home/me/fin/beancount/stmon/export.py", line 247, in > reorder_columns > rows = [[row[index] for index in indexes] for row in table.rows] > ~~~^^^^^^^ > IndexError: list index out of range > > > For version from current master (3.1.0.dev0) I get: > > > (bc) me@ant(17)~/fin/beancount/stmon$ python export.py ledger.bc -c fin > Traceback (most recent call last): > File "/home/me/fin/beancount/stmon/export.py", line 373, in <module> > main() > File "/home/me/fin/beancount/stmon/export.py", line 300, in main > validate_entries(entries) > File "/home/me/fin/beancount/stmon/export.py", line 48, in > validate_entries > if entry.flag == flags.FLAG_UNREALIZED: > ^^^^^^^^^^^^^^^^^^^^^ > AttributeError: module 'beancount.core.flags' has no attribute > 'FLAG_UNREALIZED' > > > In either case I'm not a python guru yet enough to figure out > what I am up against. When I examine indexes and table.rows things > look ok to me. > > Thanks for any clues. > > > fin > > -- > You received this message because you are subscribed to the Google Groups > "Beancount" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to beancount+unsubscr...@googlegroups.com. > To view this discussion visit > https://groups.google.com/d/msgid/beancount/bjvu1l-75k.ln1%40anthive.com. > -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/beancount/CAK21%2BhOpTmwt_NXotobGfZOrgLdb4LWd%2BPZJZxUzx8rCjpiEag%40mail.gmail.com.