vmware/pyvmomi

Pickling pyvmomi class using multiprocessing

Open

#817 建立於 2019年7月23日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Python (2,141 star) (807 fork)batch import
help wantedquestion

描述

Hi folk, I try do use python multiprocessing module to parallelize some data gathering from vcenter. Unfortunately i have faced with following problem during starting parallel processes:

_pickle.PicklingError: Can't pickle <class 'pyVmomi.VmomiSupport.vim.VirtualMachine'>: attribute lookup vim.VirtualMachine on pyVmomi.VmomiSupport failed

So the question is, it's that true, that pymomi doesn't support "right pickling"? Thanks, and appreciate.

貢獻者指南