The following works in 0.4.1 but breaks with 0.5.1. I've tried this with Python 3.6. I've also tried using protocols 0, 1, 2, 3, 4. ```python import cloudpickle class Foo(object): pass def f(): Foo cloudpickle.dumps(f) ``` Then in a separate Python interpreter: ```python >>> import cloudpickle >>> cloudpickle.loads(...the string dumped above...) AttributeError: Can't get attribute 'Foo' on <module '__main__'> ```
Activity
iaroslav-ai commentedon Nov 10, 2017
Just encountered same bug. Will use 0.4.1 version of cloudpickle for now.
ogrisel commentedon Nov 13, 2017
Sorry, this is extremely embarrassing. I wonder why this has not been caught by our test suite. I will investigate.
ogrisel commentedon Nov 13, 2017
The problem is also there in 0.4.2 so was probably caused by the change to
_fill_functionarguments done in: #130.ogrisel commentedon Nov 16, 2017
Fixed in master.
ogrisel commentedon Nov 21, 2017
FYI cloudpickle 0.5.2 was released.
py-cloudpickle: updated to 2.0.0