Evernight / lazy-beancount

Beancount accounting system packaged in a Docker image together with a few libraries and some additional UIs.
https://lazy-beancount.xyz/
GNU General Public License v2.0
10 stars 1 forks source link

beancount_import fails with example_data #3

Open ccdunder opened 9 hours ago

ccdunder commented 9 hours ago

Error on startup:

Starting Fava on http://0.0.0.0:5000
INFO    : Initializing
INFO    : Loading journal
Listening at http://0.0.0.0:8101
INFO    : Matching source data
INFO    : preparing source beancount.ingest.importers.csv.Importer: "Assets:Monzo:Cash"
INFO    : prepare for beancount.ingest.importers.csv.Importer: "Assets:Monzo:Cash"
INFO    : preparing source beancount.ingest.importers.csv.Importer: "Assets:Revolut:Cash"
INFO    : prepare for beancount.ingest.importers.csv.Importer: "Assets:Revolut:Cash"
INFO    : preparing source beancount.ingest.importers.csv.Importer: "Assets:Revolut:Cash"
INFO    : prepare for beancount.ingest.importers.csv.Importer: "Assets:Revolut:Cash"
INFO    : preparing source beancount.ingest.importers.csv.Importer: "Assets:Revolut:Cash"
INFO    : prepare for beancount.ingest.importers.csv.Importer: "Assets:Revolut:Cash"
INFO    : preparing source beancount.ingest.importers.csv.Importer: "Assets:Wise:Cash"
INFO    : prepare for beancount.ingest.importers.csv.Importer: "Assets:Wise:Cash"
INFO    : preparing source beancount.ingest.importers.csv.Importer: "Assets:Wise:Cash"
INFO    : prepare for beancount.ingest.importers.csv.Importer: "Assets:Wise:Cash"
INFO    : preparing source beancount.ingest.importers.csv.Importer: "Assets:Wise:Cash"
INFO    : prepare for beancount.ingest.importers.csv.Importer: "Assets:Wise:Cash"
INFO    : preparing source uabean.importers.ibkr.Importer
INFO    : prepare for uabean.importers.ibkr.Importer
INFO    : preparing source uabean.importers.kraken.Importer
INFO    : prepare for uabean.importers.kraken.Importer
INFO    : preparing source uabean.importers.binance.Importer
INFO    : prepare for uabean.importers.binance.Importer
Traceback (most recent call last):
  File "/opt/venv/lib/python3.12/site-packages/beancount_import/webserver.py", line 514, in _handle_reconciler_loaded
    loaded_reconciler = loaded_future.result()
                        ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/opt/venv/lib/python3.12/site-packages/beancount_import/thread_helpers.py", line 13, in wrapper
    f.set_result(fn(*args, **kwargs))
                 ^^^^^^^^^^^^^^^^^^^
  File "/opt/venv/lib/python3.12/site-packages/beancount_import/reconcile.py", line 399, in __init__
    all_source_results = self._prepare_sources()
                         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/venv/lib/python3.12/site-packages/beancount_import/reconcile.py", line 524, in _prepare_sources
    source.prepare(self.editor, source_results)
  File "/opt/venv/lib/python3.12/site-packages/beancount_import/source/generic_importer_source_beangulp.py", line 67, in prepare
    logging.info(f'from {f.name} extracted {len(f_entries)} entries')
                         ^^^^^^
AttributeError: 'str' object has no attribute 'name'
(Pdb) f
'/workspace/beancount_import_data/binance/example-binance.csv'
ccdunder commented 9 hours ago

Looks like beancount-imports pulls in a fork of beancount-import with a patch which added these logging lines.