(beancount-v2) ➜ finances git:(main) ✗ bean-identify -V
Beancount 2.3.5 (git:d8a45f5e; 2022-02-18)
(beancount-v2) ➜ finances git:(main) ✗ bean-identify config.py downloads
account = Assets:Chase:Checking name = Chase2818_Activity
**** /Users/bruceberk/work/finances/downloads/Chase2818_Activity_20220901.CSV
Traceback (most recent call last):
File "/Users/bruceberk/work/finances/venv/bin/bean-identify", line 8, in <module>
sys.exit(identify_main())
File "/Users/bruceberk/work/finances/venv/lib/python3.9/site-packages/beancount/ingest/scripts_utils.py", line 31, in identify_main
return trampoline_to_ingest(identify)
File "/Users/bruceberk/work/finances/venv/lib/python3.9/site-packages/beancount/ingest/scripts_utils.py", line 198, in trampoline_to_ingest
return run_import_script_and_ingest(parser)
File "/Users/bruceberk/work/finances/venv/lib/python3.9/site-packages/beancount/ingest/scripts_utils.py", line 246, in run_import_script_and_ingest
return ingest(importers_list)
File "/Users/bruceberk/work/finances/venv/lib/python3.9/site-packages/beancount/ingest/scripts_utils.py", line 140, in ingest
args.command(args, parser, importers_list, abs_downloads, hooks=hooks)
File "/Users/bruceberk/work/finances/venv/lib/python3.9/site-packages/beancount/ingest/identify.py", line 99, in run
return identify(importers_list, files_or_directories)
File "/Users/bruceberk/work/finances/venv/lib/python3.9/site-packages/beancount/ingest/identify.py", line 85, in identify
logfile.write('Importer: {}\n'.format(importer.name() if importer else '-'))
TypeError: 'str' object is not callable
The relevant part of my config file looks like:
CONFIG = [ChaseBankImporter("Assets:Chase:Checking", "Chase2818_Activity", "USD")]
My identify function is:
def identify(self, file):
# check file naming convention
return re.match(self.name, path.basename(file.name)) and\
re.match("Details,Posting Date,Description,Amount,Type,Balance,Check or Slip #",
file.head())
When I run
python3 -m beancount.scripts.deps
there is no output.
Any help as to what is going on would be greatly appreaciated.
Bruce
--
You received this message because you are subscribed to a topic in the Google Groups "Beancount" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beancount/N5fCig2YZck/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/69aa2745-2658-20b0-4546-e7448b2af536%40grinta.net.
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAAtie6arL-Rz0Pgk2OBdPMBueUf5-%3D%2Bakx%3DhuN%2BWrxupQNRqtg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhOBZVCVJrOLL7rMwnVWqTD7JkjfCbQkgkbBFi1uxKHO3A%40mail.gmail.com.