Help getting plugin running

59 views
Skip to first unread message

Ken Mankoff

unread,
Mar 2, 2025, 12:06:13 PMMar 2
to Beancount
Hello,

I'm having difficulty getting the amortize_over plugin to run. I've put this script https://gist.github.com/wzyboy/7dbf207c9a9d42ac2549232deb9a95d9

into a plugins folder under my beancount folder.

I have added

option "insert_pythonpath" "True"
plugin "plugins.amortize_over"

And a transaction:

2024-12-15 * "Misc Cash Spending"
    amortize_months: 6
    Assets:Cash:USD                                       -60.00 USD
    Expenses:Misc

But no additional entries appear in the Fava journal. Should I be looking elsewhere?

At the CLI I was able to import the plugin with:

mamba activate beantcount
fava ./bc.org &
python
>>> import plugins.amortize_over # no errors here.

Thanks,

    -k.

fin

unread,
Mar 2, 2025, 2:19:55 PMMar 2
to bean...@googlegroups.com
Ken Mankoff wrote:
> ------=_Part_219172_206856789.1740917173457
> Content-Type: multipart/alternative;
> boundary="----=_Part_219173_2057004203.1740917173457"
>
> ------=_Part_219173_2057004203.1740917173457
> Content-Type: text/plain; charset="UTF-8"

hi,


> Hello,
>
> I'm having difficulty getting the amortize_over plugin to run. I've put
> this script https://gist.github.com/wzyboy/7dbf207c9a9d42ac2549232deb9a95d9
>
> into a plugins folder under my beancount folder.
>
> I have added
>
> option "insert_pythonpath" "True"
> plugin "plugins.amortize_over"

try "beancount.plugins.amortize_over"


> And a transaction:
>
> 2024-12-15 * "Misc Cash Spending"
> amortize_months: 6
> Assets:Cash:USD -60.00 USD
> Expenses:Misc
>
> But no additional entries appear in the Fava journal. Should I be looking
> elsewhere?
>
> At the CLI I was able to import the plugin with:
>
> mamba activate beantcount
> fava ./bc.org &
> python
>>>> import plugins.amortize_over # no errors here.
>
> Thanks,
>
> -k.

hope this helps. not sure. :)


fin

Ken Mankoff

unread,
Mar 3, 2025, 5:05:10 PMMar 3
to bean...@googlegroups.com, fin
Hello,

I figured out why the plugin was not working. I had an "include setup.bc" and the plugin, and other options. Plugins do not load from included files, only from the main target of fava or bean-query.

-k.
Reply all
Reply to author
Forward
0 new messages