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

Tax-Calculator ParamTools crash when using marshmallow 3.22 #140

Closed
martinholmer opened this issue Aug 21, 2024 · 1 comment
Closed

Tax-Calculator ParamTools crash when using marshmallow 3.22 #140

martinholmer opened this issue Aug 21, 2024 · 1 comment

Comments

@martinholmer
Copy link

When running Python 3.11 and using marshmallow 3.22, Tax-Calculator crashes with this error:


 File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/paramtools/schema.py", line 240, in load
    return self.validate_only(data)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/paramtools/schema.py", line 207, in validate_only
    if self._has_processors(decorators.VALIDATES_SCHEMA):
       ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ValidatorSchema' object has no attribute '_has_processors'. Did you mean: '_invoke_processors'?

Did marshmallow remove _has_processors in the 3.22 version?

We have been able to work around this by restricting the marshmallow version to be <3.22,
but it seems as if this is a bug in ParamTools.

cc: @MattHJensen @jdebacker @donboyd5

@martinholmer
Copy link
Author

Fixed by PR #141.

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

1 participant