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
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/7ff937be-9b1e-43df-90ed-ab18dad3eb0dn%40googlegroups.com.