运行Autodock时发生python报错

ERROR *********************************************Traceback (most recent call last): File "C:\Program Files (x86)\MGLTools-1.5.7\lib\site-packages\ViewerFramework\VF.py", line 941, in tryto result = command( *args, **kw ) File "C:\Program Files (x86)\MGLTools-1.5.7\lib\site-packages\AutoDockTools\autodpfCommands.py", line 2635, in doit ligand_filename = kw.pop('ligand')KeyError: 'ligand'

img

这一行报错了,因为kw中没有名字叫做 ligand 的 key, 检查一下是否存在

ligand_filename = kw.pop('ligand')

Python 字典 pop() 方法删除字典给定键 key 所对应的值,返回值为被删除的值。
你要确定你的字典里面有这个ligand的键,你才能用pop去删它
你是不是进行了多次删除?