Closed martinholmer closed 1 year ago
Data tests also crash on GitHub as can be seen in pull request #2000.
Whatever recent data enhancement you have implemented has broken my long-working TAXSIM35 testing framework. Now I can't do any local validation testing work. Here is the error I'm getting:
(policyengine-us) WA% YEAR=21 ./tests.sh ; say done
Traceback (most recent call last):
File "/Users/mrh/work/Policy-Engine-US/WA/../execute_test.py", line 504, in <module>
sys.exit(main())
File "/Users/mrh/work/Policy-Engine-US/WA/../execute_test.py", line 395, in main
vdset = VAL()
File "//Users/mrh/anaconda3/envs/policyengine-us/lib/python3.9/site-packages/policyengine_core/data/dataset.py", line 39, in __init__
raise ValueError(
ValueError: Dataset file_path must be specified in the dataset class definition.
Traceback (most recent call last):
File "/Users/mrh/work/Policy-Engine-US/WA/../execute_test.py", line 504, in <module>
sys.exit(main())
File "/Users/mrh/work/Policy-Engine-US/WA/../execute_test.py", line 395, in main
vdset = VAL()
File "//Users/mrh/anaconda3/envs/policyengine-us/lib/python3.9/site-packages/policyengine_core/data/dataset.py", line 39, in __init__
raise ValueError(
ValueError: Dataset file_path must be specified in the dataset class definition.
Traceback (most recent call last):
File "/Users/mrh/work/Policy-Engine-US/WA/../execute_test.py", line 504, in <module>
sys.exit(main())
File "/Users/mrh/work/Policy-Engine-US/WA/../execute_test.py", line 395, in main
vdset = VAL()
File "//Users/mrh/anaconda3/envs/policyengine-us/lib/python3.9/site-packages/policyengine_core/data/dataset.py", line 39, in __init__
raise ValueError(
ValueError: Dataset file_path must be specified in the dataset class definition.
Thanks for identifying Martin- taking a look now.
Just FYI I don't think the GitHub actions are failing because of this (e.g. https://github.com/PolicyEngine/policyengine-us/pull/2001 passes, and is up-to-date with the master
branch). I think it's more likely to be the Oklahoma formula (which is where that PR fails)
@martinholmer is your PolicyEngine-Core definitely up-to-date? If not, could you re-run pip install -e .
in policyengine-us
?
@nikhilwoodruff asked:
is your PolicyEngine-Core definitely up-to-date? If not, could you re-run pip install -e . in policyengine-us?
I have 2.0.1 installed. Isn't that up-to-date?
@nikhilwoodruff said:
FYI I don't think the GitHub actions are failing because of this (e.g. https://github.com/PolicyEngine/policyengine-us/pull/2001 passes, and is up-to-date with the master branch). I think it's more likely to be the Oklahoma formula (which is where that PR fails)
I get the reported errors on the master branch.
@martinholmer: OK- but I don't think there's an issue with the GH tests because the current tests pass.
I think your Core install is outdated, because if you look at your error message, it prints out the contents of datasets.py
, line 40, in PolicyEngine-Core:
def __init__(self):
# Setup dataset
if self.folder_path is None:
> raise ValueError(
"Dataset folder_path must be specified in the dataset class definition."
E ValueError: Dataset folder_path must be specified in the dataset class definition.
If you look at that segment in the Core code, it's different (it now refers to file_path
).
So I think we just need to figure out why your install didn't work?
@nikhilwoodruff said:
So I think we just need to figure out why your [PolicyEngineCore] install didn't work?
OK. I updated my local master branch and then merged the master branch into my ok-itax branch. This did improve things, but still got one error (with the four test_cps errors now gone). The one remaining error does seem to be caused by my OK code. I'll try to correct that. Thanks for the help, @nikhilwoodruff
I can't do
make test
on my computer using the current version of PolicyEngineUS. @nikhilwoodruff, looks like you need to do more testing of your data changes.