使用pyvbox库创建虚拟机时出现TypeError

时间:2019-06-28 11:04:05

标签: python virtualbox

我需要使用pyvbox创建虚拟机,以下代码出现此错误:

 File "..Python\lib\site-packages\virtualbox\library.py", line 8031, in create_machine

    raise TypeError("groups can only be an instance of type list")
TypeError: groups can only be an instance of type list 
#the code
import virtualbox


vbox = virtualbox.VirtualBox()

settings_file = "C:\VM"
name="vm_py"
os_type="Ubuntu_64"
flag=None
groups=None


vbox.create_machine(settings_file,name, groups,os_type,flag)

0 个答案:

没有答案