Enter code here...JFSMini1:Beancount$ bean-check jfsgmsbgn.bean
Traceback (most recent call last):
File "/usr/local/bin/bean-check", line 2, in <module>
from beancount.scripts.check import main; main()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/beancount/scripts/check.py", line 39, in main
extra_validations=validation.HARDCORE_VALIDATIONS)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/beancount/loader.py", line 87, in load_file
extra_validations, encoding)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/beancount/loader.py", line 200, in wrapped
result = function(toplevel_filename, *args, **kw)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/beancount/loader.py", line 219, in _load_file
return _load([(filename, True)], *args, **kw)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/beancount/loader.py", line 460, in _load
extra_validations)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/beancount/ops/validation.py", line 395, in validate
new_errors = validation_function(entries, options_map)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/beancount/ops/validation.py", line 348, in validate_check_transaction_balances
"Transaction does not balance: {}".format(residual),
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/beancount/core/inventory.py", line 104, in __str__
return self.to_string()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/beancount/core/inventory.py", line 96, in to_string
', '.join(pos.to_string(dformat) for pos in sorted(self)))
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/beancount/core/position.py", line 228, in __lt__
return self.sortkey() < other.sortkey()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/beancount/core/position.py", line 210, in sortkey
order_units = CURRENCY_ORDER.get(currency, NCURRENCIES + len(currency))
TypeError: object of type 'type' has no len()
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/df2169e7-a716-496d-9eb8-d38ea670c4da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
;; -*- mode: org; mode: beancount; coding: utf-8; -*-**** /Users/jonathan/Documents/Beancount/documents/Expenses/Fidelity/2016-12-28FidelityVisa.csv
** Fidelity Investments
1982-01-01 open Liabilities:US:FidelityVisa USD
2016-11-16 * "BJ WHOLESALE #0209 HUDSON" | "Groceries, Sonicare 4Pk" txndate: 2016-11-15 Liabilities:US:FidelityVisa -77.26 USD Expenses:PersonalCare 42.49 Expenses:Food:Groceries 34.77
* Expenses1957-06-25 open Expenses:Food:Groceries1957-06-25 open Expenses:PersonalCare
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
Hi Martin,
I thought it might be a bug because you seem to be a too good and careful coder to let an uncaught exception through.
Here is the simplest file that causes an exception for me. It is the original transaction that caused it. Nothing sensitive there. Besides, Google already knows about it ;>) Just add USD to the two Expenses lines and everything is fine.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/c622641e-77c4-44ee-bb28-ef95e55e2142%40googlegroups.com.