Has anyone encountered the 'AttributeError: '_pickle.Pickler' object attribute 'persistent_id' is read-only' issue, and how can it be resolved?