MGLTOOL中Python中的列表索引超出范围错误

2024-09-30 16:20:24 发布

您现在位置:Python中文网/ 问答频道 /正文

我用python脚本运行一个程序(MGLTOOLS)。当我启动程序时,我得到以下错误。我不认识Python。我不明白这个错误。在

    C:\Users\Goutham>set MGLPYTHONPATH=C:\Program Files (x86)\MGLTools 1.5.4
    C:\Users\Goutham>"C:\Python25\python.exe" "C:\Program Files (x86)\MGLTools 1.5.4
    \MGLToolsPckgs\AutoDockTools\bin\runAdt.py"
    Run AutoDockTools from C:\Program Files (x86)\MGLTools 1.5.4\MGLToolsPckgs\AutoD
    ockTools

    Welcome to Python Molecule Viewer!
    Visit http://mgltools.scripps.edu/documentation to read latest documentation.

    Resource file used to customize PMV: C:\Users\Goutham\.mgltools\1.5.4\Pmv\_pmvrc

    Traceback (most recent call last):
      File "C:\Program Files (x86)\MGLTools 1.5.4\MGLToolsPckgs\AutoDockTools\__init
    __.py", line 373, in runADT
        title=title, withShell= not interactive, verbose=False)
      File "C:\Program Files (x86)\MGLTools 1.5.4\MGLToolsPckgs\Pmv\moleculeViewer.p
    y", line 315, in __init__
        verbose=verbose, trapExceptions=trapExceptions)
      File "C:\Program Files (x86)\MGLTools 1.5.4\MGLToolsPckgs\ViewerFramework\VF.p
    y", line 345, in __init__
        verbose=verbose)
      File "C:\Program Files (x86)\MGLTools 1.5.4\MGLToolsPckgs\ViewerFramework\VFGU
    I.py", line 277, in __init__
        cnf = {"addScenarioButton": False})
      File "C:\Program Files (x86)\MGLTools 1.5.4\MGLToolsPckgs\DejaVu\Viewer.py", l
    ine 675, in __init__
        cp = ClippingPlane(self.rootObject, i, self)
      File "C:\Program Files (x86)\MGLTools 1.5.4\MGLToolsPckgs\DejaVu\Clip.py", lin
    e 42, in __init__
        self.id = self.clipPlaneNames[num]
    IndexError: list index out of range
    hit enter to continue

Tags: toinpyselfverboseinitlinefiles
2条回答

如果您一点击GUI就出现了这个问题,您应该联系MGL支持人员并在他们的论坛上发表文章,因为StackOverflow不太可能有任何帮助(这可能需要开发人员进行修复)。在

请注意,您描述的bug在本报告中进行了描述:

http://mgldev.scripps.edu/bugs/show_bug.cgi?id=1216

我想在RC3版本中已经解决了。在这里下载MGL Tools 1.5.6。在

相关问题 更多 >