DiegoSanjuan / pysphere

Automatically exported from code.google.com/p/pysphere
0 stars 0 forks source link

TypeError: duplicate base class DynamicData_Def #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Unknown.  Problem happens randomly on 10% of the VM guests.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
PySphere 0.1.8.  OS is Windows XP through 8.1 (not version specific).

Please provide any additional information below.

Traceback (most recent call last):
  File "C:\p4root\depot\Systems_Software\Products\Client_IDS\temporary_dev_area\tnili\cidsauto\vsphere\vsphere.py", line 46, in run
    vm1 = server.get_vm_by_path(server_path)
  File "C:\Python27\lib\site-packages\pysphere\vi_server.py", line 286, in get_vm_by_path
    return VIVirtualMachine(self, vm)
  File "C:\Python27\lib\site-packages\pysphere\vi_virtual_machine.py", line 55, in __init__
    self.__update_properties()
  File "C:\Python27\lib\site-packages\pysphere\vi_virtual_machine.py", line 1801, in __update_properties
    p['name'] = self.properties.name
  File "C:\Python27\lib\site-packages\pysphere\vi_property.py", line 71, in __getattr__
    self._get_all()
  File "C:\Python27\lib\site-packages\pysphere\vi_property.py", line 53, in _get_all
    oc = self._server._get_object_properties(self._obj, get_all=True)
  File "C:\Python27\lib\site-packages\pysphere\vi_server.py", line 484, in _get_object_properties
    ret = request_call(request)
  File "C:\Python27\lib\site-packages\pysphere\vi_server.py", line 733, in call_retrieve_properties_ex
    request)._returnval
  File "C:\Python27\lib\site-packages\pysphere\resources\VimService_services.py", line 114, in RetrievePropertiesEx
    response = self.binding.Receive(RetrievePropertiesExResponseMsg.typecode)
  File "C:\Python27\lib\site-packages\pysphere\ZSI\client.py", line 545, in Receive
    return _Binding.Receive(self, replytype, **kw)
  File "C:\Python27\lib\site-packages\pysphere\ZSI\client.py", line 470, in Receive
    reply = self.local.ps.Parse(tc)
  File "C:\Python27\lib\site-packages\pysphere\ZSI\parse.py", line 325, in Parse
    return how.parse(self.body_root, self)
  File "C:\Python27\lib\site-packages\pysphere\ZSI\TCcompound.py", line 199, in parse
    value = what.parse(c_elt, ps)
  File "C:\Python27\lib\site-packages\pysphere\ZSI\TCcompound.py", line 199, in parse
    value = what.parse(c_elt, ps)
  File "C:\Python27\lib\site-packages\pysphere\ZSI\TCcompound.py", line 199, in parse
    value = what.parse(c_elt, ps)
  File "C:\Python27\lib\site-packages\pysphere\ZSI\TCcompound.py", line 199, in parse
    value = what.parse(c_elt, ps)
  File "C:\Python27\lib\site-packages\pysphere\ZSI\TC.py", line 1392, in parse
    pyobj = what.parse(elt, ps)
  File "C:\Python27\lib\site-packages\pysphere\ZSI\TCcompound.py", line 187, in parse
    if callable(what): what = what()
  File "C:\Python27\lib\site-packages\pysphere\ZSI\schema.py", line 350, in _reveal_type
    **self.__kw)
  File "C:\Python27\lib\site-packages\pysphere\resources\VimService_services_types.py", line 43114, in __init__
    ns0.GuestScreenInfo_Def.__bases__ = tuple(bases)
TypeError: duplicate base class DynamicData_Def

Original issue reported on code.google.com by tniliesf...@gmail.com on 19 Sep 2013 at 8:38

GoogleCodeExporter commented 8 years ago
Any updates on this? We do hit this once in a while.

Original comment by pushkar...@gmail.com on 9 Jun 2014 at 6:27

GoogleCodeExporter commented 8 years ago
Here is stack trace: which is a little different from earlier poster, but I 
believe root cause is the same:

    vm = VIServer.get_vm_by_path(self, path, datacenter)
  File 
"/myDirectory/myVirtualEnv/lib/python2.7/site-packages/pysphere/vi_server.py", 
line 286, in get_vm_by_path
    return VIVirtualMachine(self, vm)
  File 
"/myDirectory/myVirtualEnv/lib/python2.7/site-packages/pysphere/vi_virtual_machi
ne.py", line 55, in __init__
    self.__update_properties()
  File 
"/myDirectory/myVirtualEnv/lib/python2.7/site-packages/pysphere/vi_virtual_machi
ne.py", line 1801, in __update_properties
    p['name'] = self.properties.name
  File 
"/myDirectory/myVirtualEnv/lib/python2.7/site-packages/pysphere/vi_property.py",
 line 71, in __getattr__
    self._get_all()
  File 
"/myDirectory/myVirtualEnv/lib/python2.7/site-packages/pysphere/vi_property.py",
 line 53, in _get_all
    oc = self._server._get_object_properties(self._obj, get_all=True)
  File 
"/myDirectory/myVirtualEnv/lib/python2.7/site-packages/pysphere/vi_server.py", 
line 484, in _get_object_properties
    ret = request_call(request)
  File 
"/myDirectory/myVirtualEnv/lib/python2.7/site-packages/pysphere/vi_server.py", 
line 733, in call_retrieve_properties_ex
    request)._returnval
  File 
"/myDirectory/myVirtualEnv/lib/python2.7/site-packages/pysphere/resources/VimSer
vice_services.py", line 114, in RetrievePropertiesEx
    response = 
self.binding.Receive(RetrievePropertiesExResponseMsg.typecode)
  File 
"/myDirectory/myVirtualEnv/lib/python2.7/site-packages/pysphere/ZSI/client.py", 
line 545, in Receive
    return _Binding.Receive(self, replytype, **kw)
  File 
"/myDirectory/myVirtualEnv/lib/python2.7/site-packages/pysphere/ZSI/client.py", 
line 470, in Receive
    reply = self.local.ps.Parse(tc)
  File 
"/myDirectory/myVirtualEnv/lib/python2.7/site-packages/pysphere/ZSI/parse.py", 
line 325, in Parse
    return how.parse(self.body_root, self)
  File 
"/myDirectory/myVirtualEnv/lib/python2.7/site-packages/pysphere/ZSI/TCcompound.p
y", line 199, in parse
    value = what.parse(c_elt, ps)
  File 
"/myDirectory/myVirtualEnv/lib/python2.7/site-packages/pysphere/ZSI/TCcompound.p
y", line 199, in parse
    value = what.parse(c_elt, ps)
  File 
"/myDirectory/myVirtualEnv/lib/python2.7/site-packages/pysphere/ZSI/TCcompound.p
y", line 199, in parse
    value = what.parse(c_elt, ps)
  File 
"/myDirectory/myVirtualEnv/lib/python2.7/site-packages/pysphere/ZSI/TCcompound.p
y", line 199, in parse
    value = what.parse(c_elt, ps)
  File 
"/myDirectory/myVirtualEnv/lib/python2.7/site-packages/pysphere/ZSI/TC.py", 
line 1392, in parse
    pyobj = what.parse(elt, ps)
  File 
"/myDirectory/myVirtualEnv/lib/python2.7/site-packages/pysphere/ZSI/TCcompound.p
y", line 187, in parse
    if callable(what): what = what()
  File 
"/myDirectory/myVirtualEnv/lib/python2.7/site-packages/pysphere/ZSI/schema.py", 
line 350, in _reveal_type
    **self.__kw)
  File 
"/myDirectory/myVirtualEnv/lib/python2.7/site-packages/pysphere/resources/VimSer
vice_services_types.py", line 29993, in __init__
    ns0.HostCpuIdInfo_Def.__bases__ = tuple(bases)
TypeError: duplicate base class DynamicData_Def

Original comment by pushkar...@gmail.com on 9 Jun 2014 at 6:31