virtualbox-python: VirtualBox not working on Debian 9
It seems the issue #99 is not only related to #102
In [1]: import sys
In [2]: sys.abiflags = ''
In [3]: import virtualbox
In [4]: vbox = virtualbox.VirtualBox()
In [5]: vm = vbox.find_machine(vbox.machines[0].name)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/local/lib/python3.5/dist-packages/virtualbox/library_base.py in _call_method(self, method, in_p)
194 try:
--> 195 ret = method(*in_params)
196 except Exception as exc:
/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/client/__init__.py in findMachine(self, Param1)
TypeError: internal error in PyXPCOM, parameter must be a bytes object
During handling of the above exception, another exception occurred:
AttributeError Traceback (most recent call last)
<ipython-input-5-65f32237fea6> in <module>()
----> 1 vm = vbox.find_machine(vbox.machines[0].name)
/usr/local/lib/python3.5/dist-packages/virtualbox/library.py in find_machine(self, name_or_id)
7278 raise TypeError("name_or_id can only be an instance of type basestring")
7279 machine = self._call("findMachine",
-> 7280 in_p=[name_or_id])
7281 machine = IMachine(machine)
7282 return machine
/usr/local/lib/python3.5/dist-packages/virtualbox/library_base.py in _call(self, name, in_p)
184 method = self._search_attr(name)
185 if inspect.isfunction(method) or inspect.ismethod(method):
--> 186 return self._call_method(method, in_p=in_p)
187 else:
188 return method
/usr/local/lib/python3.5/dist-packages/virtualbox/library_base.py in _call_method(self, method, in_p)
210
211 if errobj.msg is None:
--> 212 errobj.msg = getattr(exc, 'msg', getattr(exc, 'message'))
213 raise errobj
214 return ret
AttributeError: 'TypeError' object has no attribute 'message'
- Debian 9
- Python 3.5
- VirtualBox OSE 5.1.30_Debian r118389
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 32 (16 by maintainers)
Good to know! Thanks for your time & dedication.
Nope the VNC is a separate extension working host-side.
It is shipped together with VirtualBox OSE packages and it works properly there. Yet I had no luck with the Oracle version.