简体   繁体   English

在Python(多处理)中正确酸洗和取消代理对象? “ConnectionRefusedError:[Errno 111] 解压时连接被拒绝”

[英]Properly pickling and unpickling proxy objects in Python (multiprocessing)? "ConnectionRefusedError: [Errno 111] Connection refused while unpickling"

I am getting "ConnectionRefusedError: [Errno 111] Connection refused" while doing pickle.load()我在执行 pickle.load() 时收到“ConnectionRefusedError: [Errno 111] Connection denied”

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?我做错了什么?

如果你使用pickle.dump(obj,path)来序列化 obj,并且如果这个obj包含一些与多处理相关的东西,比如池,字典,当使用pickle.load(...)反序列化转储文件时,你会得到这个错误

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ConnectionRefusedError:[Errno 111]连接被拒绝 - ConnectionRefusedError: [Errno 111] Connection refused 正确地腌制和解开字典 - Properly pickling and unpickling a dictionary Ftplib ConnectionRefusedError: [Errno 111] 连接被拒绝 (python 3.5) - Ftplib ConnectionRefusedError: [Errno 111] Connection refused (python 3.5) python 套接字返回 ConnectionRefusedError: [Errno 111] 连接被拒绝 - python socket return ConnectionRefusedError: [Errno 111] Connection refused python-valve rcon minecraft'ConnectionRefusedError:[Errno 111]连接被拒绝' - python-valve rcon minecraft 'ConnectionRefusedError: [Errno 111] Connection refused' Python ConnectionRefusedError:[Errno 111] Docker 容器上的连接被拒绝 - Python ConnectionRefusedError: [Errno 111] Connection refused on Docker container 使用 python ftplib 下载但得到 ConnectionRefusedError: [Errno 111] Connection refused - use python ftplib downloading but get ConnectionRefusedError: [Errno 111] Connection refused ConnectionRefusedError: [Errno 111] 连接被拒绝- Mlrun - ConnectionRefusedError: [Errno 111] Connection refused- Mlrun ConnectionRefusedError:[Errno 111] 笔记本电脑和树莓派之间使用 python 连接被拒绝 - ConnectionRefusedError: [Errno 111] Connection refused between laptop and raspberry pi using python python 发送电子邮件 - ConnectionRefusedError: [Errno 111] 连接被拒绝。 请提出一些想法 - python sending email - ConnectionRefusedError: [Errno 111] Connection refused. Please suggest some ideas
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM