We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
in https://github.com/facebookresearch/hydra/blob/main/hydra/errors.py the missing_cfg_file parameter of the MissingConfigException should be defaulted to None since it is optional, otherwise deserialization will fail.
MissingConfigException
None
** Minimal Code/Config snippet to reproduce **
import pickle import hydra e = hydra.errors.MissingConfigException("missing", "file") x = pickle.dumps(e) y = pickle.loads(x)
** Stack trace/error message **
Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: __init__() missing 1 required positional argument: 'missing_cfg_file'
successful deserialization:
>>> y MissingConfigException('missing')
This exception was serialized/deserialized when using ray tune.
The text was updated successfully, but these errors were encountered:
Thanks for the bug report, @gazonk! I can reproduce the issue on my local machine.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
馃悰 Bug
Description
in https://github.com/facebookresearch/hydra/blob/main/hydra/errors.py
the missing_cfg_file parameter of the
MissingConfigException
should be defaulted toNone
since it is optional, otherwise deserialization will fail.Checklist
To reproduce
** Minimal Code/Config snippet to reproduce **
** Stack trace/error message **
Expected Behavior
successful deserialization:
System information
Additional context
This exception was serialized/deserialized when using ray tune.
The text was updated successfully, but these errors were encountered: