sethmlarson / virtualbox-python

Complete implementation of VirtualBox's COM API with a Pythonic interface.
https://pypi.org/project/virtualbox
Apache License 2.0
354 stars 75 forks source link

xpcom.Exception: 0x80070005 (The object functionality is limited) #16

Closed nilp0inter closed 10 years ago

nilp0inter commented 10 years ago

Hi,

I'm working on #15 , writing some tests and I found this:

>>> import virtualbox
>>> [m.name for m in virtualbox.VirtualBox().machines]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "virtualbox/library.py", line 8782, in name
    ret = self._get_attr("name")
  File "virtualbox/library_base.py", line 144, in _get_attr
    attr = self._search_attr(name, prefix='get')
  File "virtualbox/library_base.py", line 135, in _search_attr
    attr = getattr(self._i, attr_name, None)
  File "/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/client/__init__.py", line 374, in __getattr__
    return getattr(interface, attr)
  File "/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/client/__init__.py", line 460, in __getattr__
    return XPTC_InvokeByIndex(self._comobj_, method_index, args)
xpcom.Exception: 0x80070005 (The object functionality is limited)

I'm using the current HEAD of your repository. But I also tested with the last PyPI version with same results.

I don't know if there is something wrong in my setup. Any hints?

nilp0inter commented 10 years ago

It looks like a virtualbox bug: http://code.google.com/p/phpvirtualbox/issues/detail?id=640

mjdorma commented 10 years ago

That's a nasty looking VirtualBox state.

I haven't had a chance to road test HEAD. I'd be happy to role in any changes or fixes you find during your testing and push out a release by the end of the weekend.

Cheers