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.

Reply via email to