vmware/pyvmomi

Pickling pyvmomi class using multiprocessing

Aperta

#817 aperta il 23 lug 2019

 (2 commenti) (0 reazioni) (0 assegnatari)Python (807 fork)batch import
help wantedquestion

Metriche repository

Star
 (2141 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor