System Info
(transformers-cli env breaks with jax issues right now, so here's the relevant version)
Information
Reproduction
from safetensors import SafetensorError
import pickle
pickle.dumps(SafetensorError())
fails with
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
_pickle.PicklingError: Can't pickle <class 'safetensors_rust.SafetensorError'>: import of module 'safetensors_rust' failed
Expected behavior
many integrations expect errors to be picklable or serializable. they don't have to be, but they reduce pain everywhere when they are.
another POV is this is probably a smoke test for a deeper issue that may be relevant