Created
January 6, 2022 06:07
-
-
Save MaxGhenis/3117dac6f90b2c96ce98b757811f22a4 to your computer and use it in GitHub Desktop.
Error when running `make test` on an OpenFisca system with a parameter named `children.yaml`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
py37) maxghenis@Maxs-MacBook-Pro openfisca-uk % make test | |
openfisca test -c openfisca_uk openfisca_uk/tests/policy/baseline | |
Traceback (most recent call last): | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/bin/openfisca", line 8, in <module> | |
sys.exit(main()) | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/scripts/openfisca_command.py", line 68, in main | |
return sys.exit(main(parser)) | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/scripts/run_test.py", line 15, in main | |
tax_benefit_system = build_tax_benefit_system(args.country_package, args.extensions, args.reforms) | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/scripts/__init__.py", line 24, in build_tax_benefit_system | |
country_package = importlib.import_module(country_package_name) | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/importlib/__init__.py", line 127, in import_module | |
return _bootstrap._gcd_import(name[level:], package, level) | |
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import | |
File "<frozen importlib._bootstrap>", line 983, in _find_and_load | |
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked | |
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked | |
File "<frozen importlib._bootstrap_external>", line 728, in exec_module | |
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed | |
File "/Users/maxghenis/PolicyEngine/openfisca-uk/openfisca_uk/__init__.py", line 18, in <module> | |
BASELINE_PARAMETERS = CountryTaxBenefitSystem().parameters | |
File "/Users/maxghenis/PolicyEngine/openfisca-uk/openfisca_uk/system.py", line 31, in __init__ | |
self.parameters = interpolate_parameters(self.parameters) | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_tools/parameters.py", line 17, in interpolate_parameters | |
for parameter in root.get_descendants(): | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/parameters/parameter_node.py", line 138, in get_descendants | |
yield from child.get_descendants() | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/parameters/parameter_node.py", line 138, in get_descendants | |
yield from child.get_descendants() | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/parameters/parameter_node.py", line 138, in get_descendants | |
yield from child.get_descendants() | |
[Previous line repeated 2 more times] | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/parameters/parameter_node.py", line 136, in get_descendants | |
for child in self.children.values(): | |
AttributeError: 'Parameter' object has no attribute 'values' | |
make: *** [test] Error 1 | |
(py37) maxghenis@Maxs-MacBook-Pro openfisca-uk % make test | |
openfisca test -c openfisca_uk openfisca_uk/tests/policy/baseline | |
Traceback (most recent call last): | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/bin/openfisca", line 8, in <module> | |
sys.exit(main()) | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/scripts/openfisca_command.py", line 68, in main | |
return sys.exit(main(parser)) | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/scripts/run_test.py", line 15, in main | |
tax_benefit_system = build_tax_benefit_system(args.country_package, args.extensions, args.reforms) | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/scripts/__init__.py", line 24, in build_tax_benefit_system | |
country_package = importlib.import_module(country_package_name) | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/importlib/__init__.py", line 127, in import_module | |
return _bootstrap._gcd_import(name[level:], package, level) | |
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import | |
File "<frozen importlib._bootstrap>", line 983, in _find_and_load | |
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked | |
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked | |
File "<frozen importlib._bootstrap_external>", line 728, in exec_module | |
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed | |
File "/Users/maxghenis/PolicyEngine/openfisca-uk/openfisca_uk/__init__.py", line 18, in <module> | |
BASELINE_PARAMETERS = CountryTaxBenefitSystem().parameters | |
File "/Users/maxghenis/PolicyEngine/openfisca-uk/openfisca_uk/system.py", line 31, in __init__ | |
self.parameters = interpolate_parameters(self.parameters) | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_tools/parameters.py", line 17, in interpolate_parameters | |
for parameter in root.get_descendants(): | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/parameters/parameter_node.py", line 138, in get_descendants | |
yield from child.get_descendants() | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/parameters/parameter_node.py", line 138, in get_descendants | |
yield from child.get_descendants() | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/parameters/parameter_node.py", line 138, in get_descendants | |
yield from child.get_descendants() | |
[Previous line repeated 2 more times] | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/parameters/parameter_node.py", line 136, in get_descendants | |
for child in self.children.values(): | |
AttributeError: 'Parameter' object has no attribute 'values' | |
make: *** [test] Error 1 | |
(py37) maxghenis@Maxs-MacBook-Pro openfisca-uk % make test | |
openfisca test -c openfisca_uk openfisca_uk/tests/policy/baseline | |
Traceback (most recent call last): | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/bin/openfisca", line 8, in <module> | |
sys.exit(main()) | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/scripts/openfisca_command.py", line 68, in main | |
return sys.exit(main(parser)) | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/scripts/run_test.py", line 15, in main | |
tax_benefit_system = build_tax_benefit_system(args.country_package, args.extensions, args.reforms) | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/scripts/__init__.py", line 24, in build_tax_benefit_system | |
country_package = importlib.import_module(country_package_name) | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/importlib/__init__.py", line 127, in import_module | |
return _bootstrap._gcd_import(name[level:], package, level) | |
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import | |
File "<frozen importlib._bootstrap>", line 983, in _find_and_load | |
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked | |
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked | |
File "<frozen importlib._bootstrap_external>", line 728, in exec_module | |
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed | |
File "/Users/maxghenis/PolicyEngine/openfisca-uk/openfisca_uk/__init__.py", line 18, in <module> | |
BASELINE_PARAMETERS = CountryTaxBenefitSystem().parameters | |
File "/Users/maxghenis/PolicyEngine/openfisca-uk/openfisca_uk/system.py", line 31, in __init__ | |
self.parameters = interpolate_parameters(self.parameters) | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_tools/parameters.py", line 17, in interpolate_parameters | |
for parameter in root.get_descendants(): | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/parameters/parameter_node.py", line 138, in get_descendants | |
yield from child.get_descendants() | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/parameters/parameter_node.py", line 138, in get_descendants | |
yield from child.get_descendants() | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/parameters/parameter_node.py", line 138, in get_descendants | |
yield from child.get_descendants() | |
[Previous line repeated 1 more time] | |
File "/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/openfisca_core/parameters/parameter_node.py", line 136, in get_descendants | |
for child in self.children.values(): | |
AttributeError: 'Parameter' object has no attribute 'values' | |
make: *** [test] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment