纽普生物

Pymol插件管理报错的解决办法

Pymol插件管理(plugin manager)报错,现象大致为:

Error: 1

TypeError Exception in Tk callback

  Function: <function addPluginManagerMenuItem.<locals>.plugin_manager

at 0x0000019192E818C8> (type: <class 'function'>)

  Args: ()

Traceback (innermost last):

  File "C:\Python36\lib\site-packages\Pmw\Pmw_2_0_1\lib\PmwBase.py",

line 1776, in __call__

    return self.func(*args)

  File "C:\Python36\lib\site-packages\pymol\plugins\legacysupport.py",

line 73, in plugin_manager

    managergui.manager_dialog()

  File "C:\Python36\lib\site-packages\pymol\plugins\managergui.py",

line 47, in manager_dialog

    dialog = PluginManager(get_tk_root())

  File "C:\Python36\lib\site-packages\pymol\plugins\managergui.py",

line 129, in __init__

    notebook = Pmw.NoteBook(master)

  File "C:\Python36\lib\site-packages\Pmw\Pmw_2_0_1\lib\PmwNoteBook.py",

line 60, in __init__

    Pmw.Color.bordercolors(self, self['hull_background'])

  File "C:\Python36\lib\site-packages\Pmw\Pmw_2_0_1\lib\PmwColor.py",

line 359, in bordercolors

    '#%04x%04x%04x' % (lightRGB[0], lightRGB[1], lightRGB[2]),

TypeError: %x format: an integer is required, not float

解决办法:

卸载Pmw,然后重新用Pmw-2.0.1-py3-none-any.whl安装Pmw

卸载:python -m pip uninstall Pmw

安装:python -m pip install Pmw-2.0.1-py3-none-any.whl

Souce: 纽普生物    2019-11-27