can you provide more details? E.g some code to reproduce. As this is a pickle error does your script serialize device objects? Device objects are built in objects that are associated with state-full system resources therefore they cannot be serialized.