Original Post
Hello! I'm trying to use pickle to output a big class object to a file. It was working in an earlier version of my code (and the class being dumped hasn't changed at all), but isn't working now. I get the following error on my call to pickle.dump: Traceback (most recent call last): File "", line 1, in ? Test() File "/home/ben/Desktop/pdg.py", line 179, in Test pickle.dump(generation, p) File "pickle.py", line 1382, in dump Pickler(file, protocol, bin).dump(obj) File "pickle.py", line 210, in __init__ self.write = file.write AttributeError: PDG_Player instance has no attribute 'write' I can post more project code if it would help. Thanks very much.