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

dali_generic misses proper missing argument catching. Can't even get help with the syntax #251

Open
rapus95 opened this issue Jul 26, 2024 · 2 comments

Comments

@rapus95
Copy link

rapus95 commented Jul 26, 2024

C:\Users\Aaron>dali_generic --help
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Python312\Scripts\dali_generic.exe\__main__.py", line 7, in <module>
  File "C:\Python312\Lib\site-packages\dali\plugin\country\generic.py", line 23, in dali_entry
    dali_main(Generic())
              ^^^^^^^^^
  File "C:\Python312\Lib\site-packages\rp2\plugin\country\generic.py", line 29, in __init__
    raise RP2ValueError("CURRENCY_CODE environment variable not found: it is required to use the generic country plugin")
rp2.rp2_error.RP2ValueError: CURRENCY_CODE environment variable not found: it is required to use the generic country plugin
@eprbell
Copy link
Owner

eprbell commented Jul 26, 2024

This is explained in the Generic country documentation. You need to define two environment variables: CURRENCY_CODE and LONG_TERM_CAPITAL_GAINS.

To set environment variables for the generic RP2 executable on Unix-like systems:

CURRENCY_CODE=eur LONG_TERM_CAPITAL_GAINS=1000000000 rp2_generic...

To set environment variables for the generic RP2 executable on Windows systems:

Set CURRENCY_CODE=eur LONG_TERM_CAPITAL_GAINS=1000000000 rp2_generic...

@rapus95
Copy link
Author

rapus95 commented Jul 27, 2024

oh, it didn't come to my mind to like into the rp2 docs to execute dali, oops

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