启动 robotframework-RIDE 时出错(机器人框架 IDE)
Error while launching robotframework-RIDE (Robot Framework IDE)
我安装了Robot Framework,安装了wxPython,然后Ride。当我通过执行 python ride.py
启动它时,它会遇到如下所示的错误。我相信这与 wxPython 版本有关,不确定。
有一系列UnreprError
像这样
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 0.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 3.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 4.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 5.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 6.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 7.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 19.
...
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 60.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 61.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 62.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 63.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 67.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 68.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 69.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 70.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 71.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 13.
然后堆栈跟踪显示:
Traceback (most recent call last):
File "c:\Python38-32\lib\site-packages\robotide\application\application.py", line 58, in OnInit
self.frame = RideFrame(self, self._controller)
File "c:\Python38-32\lib\site-packages\robotide\ui\mainframe.py", line 175, in __init__
self._init_ui()
File "c:\Python38-32\lib\site-packages\robotide\ui\mainframe.py", line 279, in _init_ui
self.tree = Tree(self, self.actions,
File "c:\Python38-32\lib\site-packages\robotide\ui\tree.py", line 86, in __init__
self._images = TreeImageList()
File "c:\Python38-32\lib\site-packages\robotide\ui\images.py", line 42, in __init__
TestCaseController: _TreeImage(self, 'robot.png'),
File "c:\Python38-32\lib\site-packages\robotide\ui\images.py", line 80, in __init__
self.normal = self._get_image(image_list, normal)
File "c:\Python38-32\lib\site-packages\robotide\ui\images.py", line 91, in _get_image
img = wx.Image(path, wx.BITMAP_TYPE_PNG).ConvertToBitmap()
wx._core.wxAssertionError: C++ assertion "strcmp(setlocale(LC_ALL, NULL), "C") == 0" failed at ..\..\src\common\intl.cpp(1579) in wxLocale::GetInfo(): You probably called setlocale() directly instead of using wxLocale and now there is a mismatch between C/C++ and Windows locale.
Things are going to break, please only change locale by creating wxLocale objects to avoid this!
OnInit returned false, exiting...
Error in atexit._run_exitfuncs:
wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this" failed at ..\..\src\common\wincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any pushed event handlers must have been removed
这是我在 Python 3.8.3 和 Windows 10 (win32)
上安装的
wxPython==4.0.7.post2
six==1.15.0
Pypubsub==4.0.3
Pillow==7.1.2
Pygments==2.6.1
pywin32==228
robotframework==3.2.1
robotframework-ride==1.7.4.2
RIDE 1.7.4.2 与 Python3.8 不兼容。
使用 pip
.
时甚至不应该安装
您应该卸载 RIDE 1.7.4.2,并通过执行以下命令安装 Beta 版本:
c:\Python38-32\python.exe -m pip install --pre robotframework-ride
在 Project Page or in the FAQ 中查看更多信息。
我安装了Robot Framework,安装了wxPython,然后Ride。当我通过执行 python ride.py
启动它时,它会遇到如下所示的错误。我相信这与 wxPython 版本有关,不确定。
有一系列UnreprError
像这样
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 0.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 3.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 4.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 5.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 6.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 7.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 19.
...
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 60.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 61.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 62.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 63.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 67.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 68.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 69.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 70.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 71.
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 13.
然后堆栈跟踪显示:
Traceback (most recent call last):
File "c:\Python38-32\lib\site-packages\robotide\application\application.py", line 58, in OnInit
self.frame = RideFrame(self, self._controller)
File "c:\Python38-32\lib\site-packages\robotide\ui\mainframe.py", line 175, in __init__
self._init_ui()
File "c:\Python38-32\lib\site-packages\robotide\ui\mainframe.py", line 279, in _init_ui
self.tree = Tree(self, self.actions,
File "c:\Python38-32\lib\site-packages\robotide\ui\tree.py", line 86, in __init__
self._images = TreeImageList()
File "c:\Python38-32\lib\site-packages\robotide\ui\images.py", line 42, in __init__
TestCaseController: _TreeImage(self, 'robot.png'),
File "c:\Python38-32\lib\site-packages\robotide\ui\images.py", line 80, in __init__
self.normal = self._get_image(image_list, normal)
File "c:\Python38-32\lib\site-packages\robotide\ui\images.py", line 91, in _get_image
img = wx.Image(path, wx.BITMAP_TYPE_PNG).ConvertToBitmap()
wx._core.wxAssertionError: C++ assertion "strcmp(setlocale(LC_ALL, NULL), "C") == 0" failed at ..\..\src\common\intl.cpp(1579) in wxLocale::GetInfo(): You probably called setlocale() directly instead of using wxLocale and now there is a mismatch between C/C++ and Windows locale.
Things are going to break, please only change locale by creating wxLocale objects to avoid this!
OnInit returned false, exiting...
Error in atexit._run_exitfuncs:
wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this" failed at ..\..\src\common\wincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any pushed event handlers must have been removed
这是我在 Python 3.8.3 和 Windows 10 (win32)
上安装的wxPython==4.0.7.post2
six==1.15.0
Pypubsub==4.0.3
Pillow==7.1.2
Pygments==2.6.1
pywin32==228
robotframework==3.2.1
robotframework-ride==1.7.4.2
RIDE 1.7.4.2 与 Python3.8 不兼容。
使用 pip
.
您应该卸载 RIDE 1.7.4.2,并通过执行以下命令安装 Beta 版本:
c:\Python38-32\python.exe -m pip install --pre robotframework-ride
在 Project Page or in the FAQ 中查看更多信息。