当我加载PTK时,出现以下错误:
start failed when creating tool instance: Console
你知道问题是什么吗?
我正在从python.org运行标准的python 2.7.5。
我根据需要安装了wxPython(3.0)。
PTK从未奏效(我今天刚安装)
我的日志文件如下所示:
12/01/14 15:39:01 - ptk_lib.app - INFO - Starting MessageBus
12/01/14 15:39:01 - ptk_lib.message_bus.message_bus - INFO - Registered node : App
12/01/14 15:39:01 - ptk_lib.app - INFO - Starting Toolmanager
12/01/14 15:39:01 - ptk_lib.tool_manager.toolmanager - INFO - Toolmanager started
12/01/14 15:39:01 - ptk_lib.app - INFO - Starting core tools
12/01/14 15:39:01 - ptk_lib.core_tools.taskicon.taskicon - INFO - Initialising tool
12/01/14 15:39:01 - ptk_lib.message_bus.message_bus - INFO - Registered node : TaskIcon
12/01/14 15:39:01 - ptk_lib.core_tools.taskicon.taskicon - INFO - Tool initialised
12/01/14 15:39:01 - ptk_lib.core_tools.fileio.fileio - INFO - Initialising tool
12/01/14 15:39:01 - ptk_lib.message_bus.message_bus - INFO - Registered node : FileIO
12/01/14 15:39:01 - ptk_lib.core_tools.fileio.fileio - INFO - Done Initialising tool
12/01/14 15:39:01 - ptk_lib.core_tools.console.console_tool - INFO - Initialising tool
12/01/14 15:39:01 - ptk_lib.message_bus.message_bus - INFO - Registered node : Console
12/01/14 15:39:01 - ptk_lib.tool_manager.toolmanager - ERROR - start failed when creating tool instance: Console
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\ptk_lib\tool_manager\toolmanager.py", line 106, in start_tool
self._loaded_tools[name]=tool()
File "C:\Python27\lib\site-packages\ptk_lib\core_tools\console\console_tool.py", line 92, in __init__
self.frame = ConsoleFrame(self)
File "C:\Python27\lib\site-packages\ptk_lib\core_tools\console\console_frame.py", line 137, in __init__
self.book.Bind(aui.EVT_AUINOTEBOOK_TAB_RIGHT_DOWN,self.OnTabRight)
AttributeError: 'module' object has no attribute 'EVT_AUINOTEBOOK_TAB_RIGHT_DOWN'
答案 0 :(得分:1)
感谢Mike Driscoll的信息。我发现在较新的wxPython(3.0)中,EVT_AUINOTEBOOK_TAB_RIGHT_DOWN
现在是EVT__AUINOTEBOOK_TAB_RIGHT_DOWN
。我去了site-packages文件夹,
Python27 \ lib \ site-packages \ ptk_lib \ core_tools \ console \ console_frame.py并更改了所需的行以匹配。