After upgrade to beancount 2.0b15, my importers suddenly throw exceptions - how come?

69 views
Skip to first unread message

martin.andr...@gmail.com

unread,
Mar 20, 2017, 6:10:17 AM3/20/17
to Beancount

Hi,

I've been running beancount for a while, with some (crappy but working) importer action going on. I just upgraded my beancount/fava install through pip, and went to import last weeks transactions.

But now my importers return
identify() raised an unexpected error: decode() argument 1 must be str, not None
# <snip x all my defined importers, matched importers return:>
ERROR
:root:Importer _importers.coopbank.Importer: "".extract() raised an unexpected error: Invalid tags type: <class 'NoneType'>
ERROR
:root:Importer _importers.nordjyskebank.Importer: "".extract() raised an unexpected error: Invalid tags type: <class 'NoneType'>ERROR

I have touched no importer code since updating. Are there steps I need to take with the new version of beancount?

Martin Blais

unread,
Mar 20, 2017, 11:07:25 AM3/20/17
to Beancount
tags and links attributes aren't allowed to be None anymore, they need to be instances of set().
You can used beancount.core.data.EMPTY_SET as an immutable empty constant for empty sets if you like.
https://bitbucket.org/blais/beancount/commits/1a37899b54837abf9f35c574135cce09382ed3c7


--
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/b0ba077c-0971-4742-8bb5-66ad89e9f1fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

martin.andr...@gmail.com

unread,
Mar 20, 2017, 12:25:29 PM3/20/17
to Beancount


On Monday, March 20, 2017 at 4:07:25 PM UTC+1, Martin Blais wrote:
tags and links attributes aren't allowed to be None anymore, they need to be instances of set().
You can used beancount.core.data.EMPTY_SET as an immutable empty constant for empty sets if you like.
https://bitbucket.org/blais/beancount/commits/1a37899b54837abf9f35c574135cce09382ed3c7

Ah OK :) that takes care of the second issue. But bean-identify calls the exception raised an unexpected error: decode() argument 1 must be str, not None.
What might be the cause of that?




On Mon, Mar 20, 2017 at 6:10 AM, <martin.andr...@gmail.com> wrote:

Hi,

I've been running beancount for a while, with some (crappy but working) importer action going on. I just upgraded my beancount/fava install through pip, and went to import last weeks transactions.

But now my importers return
identify() raised an unexpected error: decode() argument 1 must be str, not None
# <snip x all my defined importers, matched importers return:>
ERROR
:root:Importer _importers.coopbank.Importer: "".extract() raised an unexpected error: Invalid tags type: <class 'NoneType'>
ERROR
:root:Importer _importers.nordjyskebank.Importer: "".extract() raised an unexpected error: Invalid tags type: <class 'NoneType'>ERROR

I have touched no importer code since updating. Are there steps I need to take with the new version of beancount?

--
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.
Reply all
Reply to author
Forward
0 new messages