MSCOM Python bindings?

Discussions related to using the OSE version of VirtualBox.
Post Reply
kandinsky2
Posts: 1
Joined: 15. Apr 2009, 15:54
Primary OS: MS Windows XP
VBox Version: PUEL
Guest OSses: XP

MSCOM Python bindings?

Post by kandinsky2 »

Hello,

I think the question is not really VirtualBox OSE related but I don't know where else to post it:

I would like to connect with python to virtualbox but on my computer the VirtualBOX SDK examples (using mscom) do not work.

I get the following error message:
C:\Program Files\Sun\xVM VirtualBox\sdk\bindings\mscom\python\samples>vboxshell.py
Traceback (most recent call last):
File "C:\Program Files\Sun\xVM VirtualBox\sdk\bindings\mscom\python\samples\vboxshell.py", line 42, in <module>
'remote':False, 'perf':PerfCollector(vbox) }
NameError: name 'PerfCollector' is not defined

I have changed the vboxshell.py script line 26 from "from shellcommon import interpret" to "from shellcommon import *" but I still get error messages :(

C:\Program Files\Sun\xVM VirtualBox\sdk\bindings\mscom\python\samples>vboxshell.py
Traceback (most recent call last):
File "C:\Program Files\Sun\xVM VirtualBox\sdk\bindings\mscom\python\samples\vboxshell.py", line 42, in <module>
'remote':False, 'perf':PerfCollector(vbox) }
File "C:\Program Files\Sun\xVM VirtualBox\sdk\bindings\mscom\python\samples\shellcommon.py", line 23, in __init__
self.collector = vb.performanceCollector
File "C:\Python25\lib\site-packages\win32com\client\__init__.py", line 454, in __getattr__
raise AttributeError, "'%s' object has no attribute '%s'" % (repr(self), att
r)
AttributeError: '<win32com.gen_py.VirtualBox Type Library.IVirtualBox instance at 0x12539904>' object has no attribute 'performanceCollector'

I do not understand why IVirtualBox gives an error message when accessing performanceCollector.

Could you please give me some help and explain me how I can make the SDK sample work?

Many thanks,

Kandinsky
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: MSCOM Python bindings?

Post by Technologov »

VirtualBox Python bindings for Windows are not yet ready.
Post Reply