vmware/pyvmomi

Pickling pyvmomi class using multiprocessing

オープン

#817 opened on 2019/07/23

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)Python (807 件のフォーク)batch import
help wantedquestion

Repository metrics

Stars
 (2,141 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド