--
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/JtE9JLQY3Og/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/54d2b408-e27f-44bb-a439-0eaf093646bf%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to bean...@googlegroups.com.
And here is what I get when I invoke bean-extract:
bean-extract my.import ~/staging/20180706-20200106--1578348252.ofx
;; -*- mode: beancount -*-#!/usr/bin/env python3
"""Import configuration."""
import sys
from os import path
sys.path.insert(0, path.join(path.dirname(__file__)))
from beancount_reds_importers import vanguard
from fund_info import *
# Setting this variable provides a list of importer instances.
CONFIG = [
# Investments
# --------------------------------------------------------------------------------------
vanguard.Importer({
'main_account' : 'Assets:US:Investments:Vanguard:Brokerage',
'account_number' : '123456',
'transfer' : 'Assets:zero-Sum-Accounts:Transfers:Bank-Account',
'dividends' : 'Income:Taxable:Dividends:Brokerage',
'cg' : 'Income:Taxable:Capital-Gains:Brokerage',
'fees' : 'Expenses:Brokerage-Fees:TradIRA',
'rounding_error' : 'Equity:Rounding-Errors:Imports',
'fund_info' : fund_info,
}),
]
2. Set the account number in your import file you posted: see the default of '123456'.
3. Then, first run bean-identify and ensure it works before running bean-extract
Let me know if that worked.
Error: cusip_map and ticker_map not found for: ['9...', 9...', etc].
thanks
If you want to find the problem by yourself, add this after line 15 here:
https://www.github.com/redstreet/beancount_reds_ingestor/tree/master/beancount_reds_importers%2Fvanguard%2F__init__.py
print(security, self.cusip_map, self.inv_ticker_map)
That should give you insight into whether your maps are being picked up.
JONATHANs-MacBook-Pro:beandata jonathan$ more jonathan.import
#!/usr/bin/env python3
"""Import configuration."""
import sys
from os import path
sys.path.insert(0, path.join(path.dirname(__file__)))
from beancount_reds_importers import vanguard
from fund_info import *
# Setting this variable provides a list of importer instances.
CONFIG = [
# Investments
# --------------------------------------------------------------------------------------
vanguard.Importer({
'main_account' : 'Assets:US:Investments:Vanguard:Brokerage',
'account_number' : 'XXXXXXX',
'transfer' : 'Assets:Zero-Sum-Accounts:Transfers:Bank-Account',
'dividends' : 'Income:Taxable:Dividends:Brokerage',
'cg' : 'Income:Taxable:Capital-Gains:Brokerage',
'fees' : 'Expenses:Brokerage-Fees:TradIRA',
'rounding_error' : 'Equity:Rounding-Errors:Imports',
'fund_info' : fund_info,
}),
]
I tried modifying the the Vanguard importer...the __init__.py file with the print command and this seemed to confirm that the mapper is not being created.
(/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/beancount_reds_importers/vanguard/__init__.py)
I don't see how it would pick up our fund_info.py in the example file but I haven't looked fully at the code.
Anyway, I'll keep investigating when I have some time but if you see anything obvious I appreciate any help.
thanks.
I don't see how it would pick up our fund_info.py in the example file but I haven't looked fully at the code.
--
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/fe85b237-fa45-4505-ac5a-3a972d3680d1o%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to bean...@googlegroups.com.