Pickling issue with python pathos

[亡魂溺海] 提交于 2019-12-01 02:04:09

I'm the pathos author. You are getting a cPickle.PicklingError… which you should not get with pathos. Make sure you have multiprocess installed, and if you do, that you have a C++ compiler. You can check for pickling errors by importing dill, and doing a dill.copy(self.parse_DGN) inside your class, or externally using the instance of the class. If that works, then you probably have some installation issue, where pathos is finding the python standard library multiprocessing. If so, then you probably need to install a compiler… like Microsoft Visual Studio Community. See: github.com/mmckerns/tuthpc. Make sure to rebuild multiprocess after the install of the MS compiler.

I encountered the same problem. Mystery is that the same identical code works on 1 win7 machine and not another win7! Then I checked the versions --- turned out dill and multiprocess were 1 version higher on the balky machine. I down-versioned dill and multiprocess to 0.2.5 and 0.70.4 respectively. And that solved the problem! Hope that helps

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