Answer the question
In order to leave comments, you need to log in
Why is the channel closing in multiprocessing?
I use multiprocessing in python, I run the program, it does everything necessary and ends with this error:
Traceback (most recent call last):
File ".\src\controller.py", line 139, in <module>
main()
File ".\src\controller.py", line 128, in main
r2.send({"action": "add_items_con"})
File "C:\Users\Kulic\AppData\Local\Programs\Python\Python38-32\lib\multiprocessing\connection.py", line 206, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "C:\Users\Kulic\AppData\Local\Programs\Python\Python38-32\lib\multiprocessing\connection.py", line 280, in _send_bytes
ov, err = _winapi.WriteFile(self._handle, buf, overlapped=True)
BrokenPipeError: [WinError 232] Идет закрытие канала
Close the Process object, releasing all resources associated with it. ValueError is raised if the underlying process is still running. Once close() returns successfully, most other methods and attributes of the Process object will raise ValueError.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question