Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
steveday72 opened this issue Mar 14, 2024 · 3 comments
Open

Comments

@steveday72
Copy link

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 steveday72 changed the title Error with website instructions for Windows 10 (config file missing) Website Error: Running test under Windows 10 (config filename issue) Mar 14, 2024
@eprbell
Copy link
Owner

eprbell commented Mar 14, 2024

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

@steveday72
Copy link
Author

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.

@eprbell
Copy link
Owner

eprbell commented Mar 15, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants