-
Notifications
You must be signed in to change notification settings - Fork 76
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
Can't load system if two files have the same name #642
Comments
Thanks for reporting the issue @guillett ! Will try to have a look at it this week. |
More likely next week actually, sorry about that. |
@fpagnoux you did have a similar issue loading different tax-benefit systems, didn't you? Can't find the commit, though. |
Thanks everyone! Note: I just dumped some of my issues here so that I do not forget them. |
You're probably thinking of |
Please do! There's a high chance your issues aren't only yours. 😄 |
Hi there!
I really enjoy OpenFisca, but I recently encountered an issue.
Here is what I did:
Last week, I was in France countryside and I pair-programmed to code a local benefit.
I did not manage to show our product with all the extensions activated because I had an exception when loading the French tax benefit system.
To demo the issue, I created guillett/test_openfisca_extensions.
I managed to investigate the issue today and I think I found the culprit line.
openfisca_core/taxbenefitsystems.py:152
pot_variable.__module__.endswith(module_name)
If two modules have the same names (ie. two files) that will fail.
I managed to replicate this issue with less complexity (ie. only with the country-template package).
Context
I identify more as a:
The text was updated successfully, but these errors were encountered: