Top "Pickle" questions

An object serialization module for Python.

Python Pickling Dictionary EOFError

I have several script running on a server which pickle and unpickle various dictionaries. They all use the same basic …

python dictionary pickle eoferror
Pickle is refusing to serialize content with celery reporting ContentDisallowed: Refusing to deserialize untrusted content of type pickle

I am trying to put some python object mostly json serializable except datetime.datetime in rabbitmq queue and so using …

python json ssl celery pickle
Python "IOError: [Errno 22] Invalid argument" when using cPickle to write large array to network drive

EDIT: At the suggestion of J. F. Sebastian, I can get the same error much more simply: Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) […

python ioerror nas pickle
How can I speed up unpickling large objects if I have plenty of RAM?

It's taking me up to an hour to read a 1-gigabyte NetworkX graph data structure using cPickle (its 1-GB when …

python serialization pickle
Can't pickle defaultdict

I have a defaultdict that looks like this: dict1 = defaultdict(lambda: defaultdict(int)) The problem is, I can't pickle it …

python pickle defaultdict
Serializing a suds object in python

Ok I'm working on getting better with python, so I'm not sure this is the right way to go about …

python soap pickle suds
Tips for properly using large broadcast variables?

I'm using a broadcast variable about 100 MB pickled in size, which I'm approximating with: >>> data = list(range(…

python apache-spark pyspark pickle rdd
How to save Scikit-Learn-Keras Model into a Persistence File (pickle/hd5/json/yaml)

I have the following code, using Keras Scikit-Learn Wrapper: from keras.models import Sequential from sklearn import datasets from keras.…

python scikit-learn persistence pickle keras
python pickle UnicodeDecodeError

I'm trying to load the mnist character dataset (following the tutorial outlined here: http://neuralnetworksanddeeplearning.com/chap1.html ) when I …

python pickle mnist
dill vs cPickle speed difference

I am trying to serialize thousands of objects and some of these objects are lambda objects. Since cPickle doesn't work …

python lambda pickle dill