error message in beangrow

52 views
Skip to first unread message

kprab...@gmail.com

unread,
Feb 22, 2021, 1:23:17 PM2/22/21
to Beancount
Dear Martin,

Is the code in for beangrow in https://github.com/beancount/beangrow working currently for v2.
When i try to run the code, i'm getting the below error message in Beancount 2.3.3...

$:~/beancount/beangrow-master/beangrow$ python compute_returns.py ~prabu/beancount/prabu/prabu2021_02_20.beancount config.pbtxt return_reports
/home/prabu/beancount/beangrow-master/beangrow/returns.py:63: RuntimeWarning: invalid value encountered in power
  return np.sum(cash_flows / (1. + irr) ** years)
/home/prabu/beancount/beangrow-master/beangrow/returns.py:63: RuntimeWarning: invalid value encountered in power
  return np.sum(cash_flows / (1. + irr) ** years)
/home/prabu/beancount/beangrow-master/beangrow/returns.py:63: RuntimeWarning: invalid value encountered in power
  return np.sum(cash_flows / (1. + irr) ** years)
Traceback (most recent call last):
  File "compute_returns.py", line 105, in <module>
    main()
  File "compute_returns.py", line 100, in main
    reports.write_price_directives(path.join(output_prices, "prices.beancount"),
  File "/home/prabu/beancount/beangrow-master/beangrow/reports.py", line 406, in write_price_directives
    days_late = (required_date - actual_date).days
TypeError: unsupported operand type(s) for -: 'datetime.date' and 'NoneType'

I can send you the ledger offline, if you think it'll help..


Cheers,
Prabu

Martin Blais

unread,
Feb 22, 2021, 2:30:38 PM2/22/21
to Beancount
Please file a ticket


--
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/7ff937be-9b1e-43df-90ed-ab18dad3eb0dn%40googlegroups.com.

Prabu Anand Kalivaradhan

unread,
Feb 23, 2021, 8:24:34 PM2/23/21
to bean...@googlegroups.com
Dear Martin,

Done as requested.

Please let me know if you need the ledger file offline for checking. Meanwhile, I'll go through your document once again to see if I've missed something important.

Cheers,
Prabu


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/WkQ3tTLAxk8/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/CAK21%2BhO7AN9Fr3LCZTg%3DimQLG%2Bambds44nOWEgT3Qa8aRTBNFA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages