dali-rp2 icon indicating copy to clipboard operation
dali-rp2 copied to clipboard

Website Error: Running test under Windows 10 (config filename issue)

Open steveday72 opened this issue 1 year ago • 3 comments

I'm a total newbie to RP2 and DaLI (and have very limited experience with Python), but found a problem while trying to set it up today..

On the DaLI website, under section "Running", it says the following:

Finally compute taxes with RP2 using the generated input files (using both FIFO and LIFO accounting methods):

rp2_us -m fifo -o output/ -p rp2_ output/test_crypto_data.config output/test_crypto_data.ods rp2_us -m lifo -o output/ -p rp2_ output/test_crypto_data.config output/test_crypto_data.ods

Executing this on Windows 10 returns an error, saying that it could not find a file named "output/test_crypto_data.config".

This is because, (at least on Windows), the config file generated by DaLI was named "output/test_crypto_data.ini". (The filetype was ".ini" not ".config").

Replacing ".config" with ".ini" allowed it to run on my installation, which was installed using "pip".

eg:

rp2_us -m fifo -o output/ -p rp2_ output/test_crypto_data.ini output/test_crypto_data.ods rp2_us -m lifo -o output/ -p rp2_ output/test_crypto_data.ini output/test_crypto_data.ods

steveday72 avatar Mar 14 '24 23:03 steveday72

Thanks for reporting! I think you may be using an outdated version of the documentation. Check the latest version on Github: https://github.com/eprbell/dali-rp2?tab=readme-ov-file#running

Here's a screenshot: Screenshot 2024-03-14 at 4 34 24 PM

eprbell avatar Mar 14 '24 23:03 eprbell

Thanks for the quick reply.

The URL that has the old info is: https://pypi.org/project/dali-rp2/#running

I ended up there by following the link on the DaLI-RP2 main GitHub page, which says:

Download The latest version of DaLI can be downloaded at: https://pypi.org/project/dali-rp2/

I see now that the two are out of sync.

steveday72 avatar Mar 15 '24 01:03 steveday72

Ah, got it. This means I need to make a new official release for Pypi: there have been several bug fixes and improvements so I need to do that. I'll try in the weekend. Thanks again for reporting!

eprbell avatar Mar 15 '24 03:03 eprbell

I'm closing this as it looks like this issue is resolved. Please let us know if you need further help.

macanudo527 avatar Aug 23 '24 02:08 macanudo527