Error when uploading model

When i try to upload my newest models i have the following error:

|11/21/2023 7:39:47 AM|File "/usr/local/lib/python3.10/", line 331, in _getattribute|
| --- | --- |
|11/21/2023 7:39:47 AM|raise AttributeError("Can't get attribute {!r} on {!r}"|
|11/21/2023 7:39:47 AM|AttributeError: Can't get attribute '_function_setstate' on <module 'cloudpickle.cloudpickle' from '/usr/local/lib/python3.10/site-packages/cloudpickle/'>|

What is wrong here? Anyone else having this issue?

I had the same error.
I downgraded cloudpickle to 2.2.1 and solved this error.

1 Like

That solved the issue, thanks!

i get the same error even after downgrading to 2.2.1. i tried 2.1.0, 2.2.1, 3.0.0 . any ideas?


EDIT: I solved it… 2.2.1 does indeed work, my downgrade had not worked properly… If you encounter a similar issue, you can check what package version is actually loaded by running

import cloudpickle

1 Like