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

Are you sure you spelled 'self_employment_income_last_year' correctly? #8

Open
feenberg opened this issue Sep 22, 2024 · 5 comments
Open

Comments

@feenberg
Copy link

I just cloned policyengine-taxsim today and tried it out. Running the sample data I receive this error message:

raise SituationParsingError(path_in_json, str(e), code=404)
policyengine_core.errors.situation_parsing_error.SituationParsingError: {'people': {'you': {'self_employment_income_last_year': "You tried to calculate or to set a value for variable 'self_employment_income_last_year', but it was not found in the loaded tax and benefit system (CountryTaxBenefitSystem). Are you sure you spelled 'self_employment_income_last_year' correctly? If this code used to work and suddenly does not, this is most probably linked to an update of the tax and benefit system. Look at its changelog to learn about renames and removals and update your code. If it is an official package, it is probably available on https://github.com/openfisca/CountryTaxBenefitSystem/blob/master/CHANGELOG.md."}}}

If I remove all the data items from psemp on, then the error message complains about idtl.

If I then add idtl with value 2, I get the message

ValueError: Variable hi_income_tax does not exist.

I notice that policyengine-taxsim accepts empty fields as zero. This is a good practice and I will add it to Taxsim.

@MaxGhenis
Copy link
Contributor

Thanks - we should change these lines:

"psemp": "self_employment_income_last_year",
"ssemp": "self_employment_income_last_year",

For the hi_income_tax piece, we do have hi_income_tax in policyengine-us. Could you try updating? pip install -U policyengine-us

@feenberg
Copy link
Author

feenberg commented Sep 22, 2024 via email

@MaxGhenis
Copy link
Contributor

No I don't think it calls taxsim.

@MaxGhenis
Copy link
Contributor

We checked in this morning and it seemed that this could be due to Python 3.9, which PolicyEngine no longer support. @feenberg will report back after updating to 3.10, which might be a couple weeks as it's a server.

@MaxGhenis
Copy link
Contributor

MaxGhenis commented Oct 23, 2024

This shouldn't be an issue anymore using the package (we've removed self-employment income for now from inputs). Dan could you check?

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