AttributeError: 'wrapper_descriptor' object has no attribute '__code__'

I get this code when loading my model in other notebook. Please help.

Possible duplicate: Saving and using a model

when i try to load model using load_learner() i get the above error. i have successfully exported it by learn.export.
maybe is it something to do with custom weights?
or fastai versions?

I am using Fastai 1.0.61 pytorch 1.10