multiprocessing.Process subclass works on Linux but not Windows

浪尽此生 提交于 2019-12-08 14:19:33

Your Updater class has a member screen, which itself has a member process which receives the value of multiprocessing.current_process().

When you call updater.start(), it tries to pickle the updater. This only happens on Windows because Linux uses fork() instead of pickling. However, the current-process object cannot be pickled and the exception is raised.

To fix this, you can remove the process member.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!