0

安装 Robot Framework、WxPython 和 Ride 后,当我尝试打开 Ride IDE 时,出现以下错误:

> Traceback (most recent call last):   File
> "C:\Python37-32\lib\robotide\application\application.py", line 59, in
> OnInit
>     self._plugin_loader.enable_plugins()   File "C:\Python37-32\lib\robotide\application\pluginloader.py", line 43, in
> enable_plugins
>     p.enable_on_startup()   File "C:\Python37-32\lib\robotide\application\pluginconnector.py", line 52,
> in enable_on_startup
>     self.enable()   File "C:\Python37-32\lib\robotide\application\pluginconnector.py", line 57,
> in enable
>     self._plugin.enable()   File "C:\Python37-32\lib\robotide\contrib\testrunner\testrunnerplugin.py",
> line 162, in enable
>     self._build_ui()   File "C:\Python37-32\lib\robotide\contrib\testrunner\testrunnerplugin.py",
> line 558, in _build_ui
>     self._build_notebook_tab()   File "C:\Python37-32\lib\robotide\contrib\testrunner\testrunnerplugin.py",
> line 734, in _build_notebook_tab
>     self.out = self._create_output_textctrl()   File "C:\Python37-32\lib\robotide\contrib\testrunner\testrunnerplugin.py",
> line 769, in _create_output_textctrl
>     font = self._create_font()   File "C:\Python37-32\lib\robotide\contrib\testrunner\testrunnerplugin.py",
> line 789, in _create_font
>     font=wx.SystemSettings.GetFont(wx.SYS_ANSI_FIXED_FONT) wx._core.wxAssertionError: C++ assertion
> "wxFontEnumerator::IsValidFacename(font.GetFaceName())" failed at
> ..\..\src\msw\settings.cpp(301) in wxSystemSettingsNative::GetFont():
> 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

如何解决这个问题?

4

1 回答 1

0

似乎问题与 wxPython 上的字体选择有关。您可以尝试将 wxPython 更新为最新版本 4.0.6:

pip install -U wxPython

您还可以升级 RIDE,使用:

pip install --upgrade robotframework-ride==1.7.4b1

(注意:请参阅https://github.com/robotframework/RIDE/wiki/FAQ。)

于 2019-08-30T19:08:57.620 回答