Closed spellr closed 9 years ago
After digging in a bit, the reason for this is that console.guest
goes to _get_attr
of the IConsole
class, which proceeds to _search_attr
for attribute "guest" inside it's self._i
, which is an instance of the Component
class, and getattr "guest" from it returns None, thus guest is None and later uses this for the create_session
method.
Why would Component
's "guest" be None?
Thank you for the feedback @shohamp. You're 100% correct. When we get attributes or call methods from the _i attribute of an Interface object we're calling down into the vboxapi library.
I have found for various reasons vboxapi might not behave correctly (in spite of what is written inside of the VirtualBox.xidl). Did you try installing the latest VirtualBox? I haven't updated or checked for changes in the VirtualBox.xidl file for some time, it may be possible that the interface has gone through major changes.
I'll check this out as soon as I get back to a computer ;).
Thanks for the quick reply @mjdorma. I am using the latest VirtualBox - 4.3.18 r96516. What is the last version you've checked? I'll install that in the mean time. Thanks again :)
I added a hacky three times check against the interface object (just incase xpcom was giving us a dodgy result).
Like issue #14. Only I have new VirtualBox and pyvbox: Ubuntu 14.04.01 LTS x64 VirtualBox 4.3.18 r96516 python 2.7.6 pyvbox new from repository (2da4fba4ba1c5cb9bc9e829d869df7343f2b077c)
This code:
results in the next backtrace: