运行ride.py报错,无法启动ide界面

报错内容如下图:

报错截图

重点内容: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!

查找后,猜测ride初始化语言与windows系统设置的默认语言不一致造成的

在application.py文件中修改即可(致于为什么这么修改,楼主也不清楚)。具体方法是添加一行self.locale = wx.Locale(wx.LANGUAGE_CHINESE_SIMPLIFIED),如图:


修改application文件

再次运行ride.py,成功

你可能感兴趣的:(运行ride.py报错,无法启动ide界面)