Hi Luiz,
Likely you have bitness mismatch between Python and VBox - Python shall
be 64-bit too (that's COM limitation we couldn't do much about).
Thanks,
Nikolay
Luiz Carlos Geron пишет:
I'm using windows 7 64 bits and I ran the vboxapisetup.py file (I
installed python after virtualbox so I suppose i needed to do this),
but I get this error:
C:\>python
ActivePython 2.6.5.12 (ActiveState Software Inc.) based on
Python 2.6.5 (r265:79063, Mar 20 2010, 14:22:52) [MSC v.1500 32 bit
(Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from vboxapi import VirtualBoxManager
>>> vboxManager = VirtualBoxManager(None, None)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python26\lib\site-packages\vboxapi\__init__.py", line 470, in
__init_
_
exec "self.platform = Platform"+style+"(platparams)"
File "<string>", line 1, in <module>
File "C:\Python26\lib\site-packages\vboxapi\__init__.py", line 218, in
__init_
_
win32com.client.gencache.EnsureDispatch('VirtualBox.Session')
File "C:\Python26\lib\site-packages\win32com\client\gencache.py", line
529, in
EnsureDispatch
disp = win32com.client.Dispatch(prog_id)
File "C:\Python26\lib\site-packages\win32com\client\__init__.py", line
95, in
Dispatch
dispatch, userName =
dynamic._GetGoodDispatchAndUserName(dispatch,userName,c
lsctx)
File "C:\Python26\lib\site-packages\win32com\client\dynamic.py", line
104, in
_GetGoodDispatchAndUserName
return (_GetGoodDispatch(IDispatch, clsctx), userName)
File "C:\Python26\lib\site-packages\win32com\client\dynamic.py", line
84, in _
GetGoodDispatch
IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx,
pythoncom.II
D_IDispatch)
pywintypes.com_error: (-2147221164, 'Class not registered', None, None)
>>>
I've tried both as a regular user and as Administrator, with the same
error. What does this mean and what can I do to at least find the cause?
_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev
_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev