Python 2.7 (PTK)创建工具实例时启动失败:控制台
当我加载PTK时,我得到以下错误:Python 2.7 (PTK)创建工具实例时启动失败:控制台,python-2.7,wxpython,Python 2.7,Wxpython,当我加载PTK时,我得到以下错误: start failed when creating tool instance: Console 你知道问题出在哪里吗 我正在python.org上运行标准的python2.7.5 我根据需要安装了wxPython(3.0) PTK从未工作过(我今天才安装) 我的日志文件如下所示: 12/01/14 15:39:01 - ptk_lib.app - INFO - Starti
start failed when creating tool instance: Console
你知道问题出在哪里吗
我正在python.org上运行标准的python2.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'
谢谢你的信息,迈克·德里斯科尔。我发现在更新的wxPython(3.0)中,
EVT\u AUINOTEBOOK\u TAB\u RIGHT\u DOWN
现在是EVT\u AUINOTEBOOK\u TAB\u RIGHT\u DOWN
。我去了站点包文件夹
Python27\lib\site packages\ptk\u lib\core\u tools\console\console\u frame.py并更改了所需的行以匹配 您安装了哪个版本的wxPython?我安装了wxPython 3.0,看起来wx 2.8+上推荐使用它,所以我会尝试wx2.8或最多2.9。wxPython 3.0本月才推出…谢谢你提供的信息,迈克。我发现在新的wxPython中,EVT_AUINOTEBOOK_TAB_RIGHT_DOWN现在是EVT__AUINOTEBOOK_TAB_RIGHT_DOWN