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

Remove machine not working #53

Closed ja9749 closed 7 years ago

ja9749 commented 8 years ago

This is in python 3.5.2

code:

import virtualbox

vbox = virtualbox.VirtualBox()
vm = vbox.find_machine(<name of your machine>)
vm.remove(delete=True)

output:

if self.state >= library.MachineState.running: TypeError: unorderable types: MachineState() >= MachineState()

sethmlarson commented 7 years ago

Might need to add __gt__(), __lt__(), etc... commands to the Enum type. I don't know why it wouldn't try to use __cmp__() though.

sethmlarson commented 7 years ago

So I'm almost positive this is fixed. If not just ping this issue @ja9749.