欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

python3.8.4 roboframework环境搭建ride启动失败,解决办法

程序员文章站 2023-11-01 14:24:52
按照步骤安装robotframework-ride,python ride.py 启动ride时,报错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网上找了解决方案...

按照步骤安装robotframework-ride,python ride.py 启动ride时,报错

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

网上找了解决方案
D:\python\Lib\site-packages\robotide\application\application.py这个文件里加上这句话

self.locale = wx.Locale(wx.LANGUAGE_ENGLISH)

python3.8.4 roboframework环境搭建ride启动失败,解决办法
再运行结果又报错
python3.8.4 roboframework环境搭建ride启动失败,解决办法
然后在self.locale = wx.Locale(wx.LANGUAGE_ENGLISH)前面加空格到与其他代码对齐再运行就可以了

后来的实践中最新的python3.8和robot的兼容性有问题,RIDE里面testCase中的edit会是空白页,所以建议安装3.7一下版本的python

原文链接:
[1]: https://blog.csdn.net/shenshenruoxi/article/details/106655003?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase

本文地址:https://blog.csdn.net/cheny1p1ng/article/details/107356255