-
-
Notifications
You must be signed in to change notification settings - Fork 635
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
_pickle.PicklingError: Can't pickle typing.Union[str, NoneType]: it's not the same object as typing.Union #428
Comments
@ogrisel opening another issue to keep the dicussion of the joblib segfault focused. Actually OmegaConf is going to make runtime use of Python annotations, so dropping them is suboptimal. |
Please let us know if the solution implemented in cloudpipe/cloudpickle#318 fixes the problem for you. Note that joblib still vendors cloudpickle and loky in the joblib/externals subfolder so you have to copy the files there. You can use the helper script to do so:
|
My joblib plugin tests are passing with it on 3.6 so looks like it is solving the problem. |
@ogrisel, Is that fix fully serializing the type information or does it strip some down? |
I haven't had the time to review cloudpipe/cloudpickle#318 yet but I believe it should preserve all the type info. |
Issue fixed in cloudpickle. |
python 3.7 is ok |
Opening a dedicated issue to discuss an error from CloudPickle on 3.6 (spinoff from #421).
Will look into it in more details after #415 lands:
That PR is adding a method for users to define their configuration.
As a part of the PR, I am porting the joblib plugin configuration to the new method and this is where I saw the issue on 3.6.
I am many users to follow this pattern in the next version of Hydra.
In fact I already ran into the same issue while working on OmegaConf with the unit tests for regular Pickle and I worked around it somehow.
I am not sure this is a cloudpickle issue (unclear what is the relation between the standard pickle and cloudpickle).
Context:
The text was updated successfully, but these errors were encountered: