eprbell / rp2

Privacy-focused, free, open-source cryptocurrency tax calculator for multiple countries: it handles multiple coins/exchanges and computes long/short-term capital gains, cost bases, in/out lot relationships/fractioning, and account balances. It supports FIFO, LIFO, HIFO and it outputs in form 8949 format. It has a programmable plugin architecture
https://pypi.org/project/rp2/
Apache License 2.0
261 stars 42 forks source link

missing 1 required positional argument: 'asset' #125

Open splix opened 1 month ago

splix commented 1 month ago

Previously I had the following in data.ini:

[in_header]
timestamp = 0
asset = 1
exchange = 2
...

But new dali (v0.6.10) stopped to provide column Asset, so I've change the config to just:

[in_header]
timestamp = 0
exchange = 1
...

Unfortunately rp2 (v1.7.1) doesn't like that and fails with:

TypeError: InTransaction.__init__() missing 1 required positional argument: 'asset'
eprbell commented 1 month ago

Could you provide precise repro instructions?