美文网首页
运行ride.py报错,无法启动ide界面

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

作者: cherry睿 | 来源:发表于2020-03-17 08:28 被阅读0次

报错内容如下图:

报错截图

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

      本文链接:https://www.haomeiwen.com/subject/sblzehtx.html