Issubclass error when uploading

Hi!
I was trying to upload a model, when generating the pickle and the predictions everything looks fine in my computer, but when I upload the pickle file I get the following error:

ERROR:root:Pickle incompatible with 3.10
ERROR:root:issubclass() arg 1 must be a class

For sure it is not a pickle incompatibility as I am using the same structure to upload other models, but I am not sure how to solve or how debug this…

Any ideas?