pyvmomi icon indicating copy to clipboard operation
pyvmomi copied to clipboard

Pickling pyvmomi class using multiprocessing

Open welibekov opened this issue 5 years ago • 2 comments

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.

welibekov avatar Jul 23 '19 20:07 welibekov