0

I am getting "ConnectionRefusedError: [Errno 111] Connection refused" while doing pickle.load()

What does than actually mean? How do I properly unpickle such object? I know that the object I am trying to unpickle contains some useful data but I can't get to it.

I am passing this object to threads and subprocesses

obj = {
  'var1': multiprocessing.Manager().Queue(), 
  'var2': 'some data'
}

What an I doing wrong?

1 Answers1

1

If you use pickle.dump(obj,path) to serialize obj, and if this obj contained some multiprocessing related stuff, such as pool, dict, when using pickle.load(...) to deserialize dumped file, you will get this error

IQbrod
  • 2,060
  • 1
  • 6
  • 28
Alex Luya
  • 11
  • 1