Simple ingesting tools for Beancount (plain text, double entry accounting software). More importantly, a framework to allow you to easily write your own importers.
GNU General Public License v3.0
114
stars
38
forks
source link
Statement' object has no attribute 'balance. (example) #13
but transactions.qfx fails:
bean-extract my-smart.import -f my.beancount transactions.qfx
result:
ERROR:root:Importer beancount_reds_importers.ally.Importer.extract() raised an unexpected error: 'Statement' object has no attribute 'balance'
ERROR:root:Traceback: Traceback (most recent call last):
File "c:\users\btycoon\appdata\local\programs\python\python38\lib\site-packages\beancount\ingest\extract.py", line 186, in extract
new_entries = extract_from_file(
File "c:\users\btycoon\appdata\local\programs\python\python38\lib\site-packages\beancount\ingest\extract.py", line 69, in extract_from_file
new_entries = importer.extract(file, **kwargs)
File "c:\users\btycoon\appdata\local\programs\python\python38\lib\site-packages\smart_importer\hooks.py", line 41, in patched_extract_method
imported_entries = unpatched_extract(file, existing_entries)
File "c:\users\btycoon\appdata\local\programs\python\python38\lib\site-packages\beancount_reds_importers\libtransactionbuilder\banking.py", line 97, in extract
new_entries += self.extract_balance(file, counter)
File "c:\users\btycoon\appdata\local\programs\python\python38\lib\site-packages\beancount_reds_importers\libtransactionbuilder\banking.py", line 60, in extract_balance
for bal in self.get_balance_statement():
File "c:\users\btycoon\appdata\local\programs\python\python38\lib\site-packages\beancount_reds_importers\libreader\ofxreader.py", line 52, in get_balance_statement
yield Balance(date, self.ofx_account.statement.balance)
AttributeError: 'Statement' object has no attribute 'balance'
;; -*- mode: beancount -*-
(i am using master, bean-extract works for both files)
When extracting example files
OfxDownload.qfx
works fine:bean-extract my.import -f my.beancount OfxDownload.qfx
result:
but transactions.qfx fails:
bean-extract my-smart.import -f my.beancount transactions.qfx
result:
(i am using master, bean-extract works for both files)