-
Notifications
You must be signed in to change notification settings - Fork 167
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 by value datetime dependency #516
Comments
After a bit more debug, it seems the problem comes from the difficulty of pickling Python descriptors. In this particular case adding the following solves the
But it fails when it reaches a more complex get/set descriptor: year. |
Could you please provide a minimal reproduction script that we could copy and paste to reproduce the problem alongside with the full traceback you observe and the Python version? |
Alternatively, please create a "draft" with your experiment so that we can have a look at the CI logs. |
@ogrisel You cannot reproduce it using the test I posted in my first entry? |
Hi folks,
I've came across a behavior which I cannot explain. I am not sure if this is a bug or a limitation or simply I am am not using cloudpickle correctly. My hope is we can clarify which one it is. I am trying to pickle by value an object and its dependencies. In this case I am using a datetime as a dependency. The result is an error:
AttributeError: type object 'date' has no attribute '__add__'
In order to reproduce this you can use the following test case(I am using Python 3.8), which is a simplified version.
The text was updated successfully, but these errors were encountered: