报错问题:

C:\Users\iphauser>ride.py
Traceback (most recent call last):
File "d:\soft\python36\lib\site-packages\robotide\application\application.py", line , in OnInit
self._plugin_loader.enable_plugins()
File "d:\soft\python36\lib\site-packages\robotide\application\pluginloader.py", line , in enable_plugins
p.enable_on_startup()
File "d:\soft\python36\lib\site-packages\robotide\application\pluginconnector.py", line , in enable_on_startup
self.enable()
File "d:\soft\python36\lib\site-packages\robotide\application\pluginconnector.py", line , in enable
self._plugin.enable()
File "d:\soft\python36\lib\site-packages\robotide\contrib\testrunner\testrunnerplugin.py", line , in enable
self._build_ui()
File "d:\soft\python36\lib\site-packages\robotide\contrib\testrunner\testrunnerplugin.py", line , in _build_ui
self._build_notebook_tab()
File "d:\soft\python36\lib\site-packages\robotide\contrib\testrunner\testrunnerplugin.py", line , in _build_notebook_tab
self.out = self._create_output_textctrl()
File "d:\soft\python36\lib\site-packages\robotide\contrib\testrunner\testrunnerplugin.py", line , in _create_output_textctrl
font = self._create_font()
File "d:\soft\python36\lib\site-packages\robotide\contrib\testrunner\testrunnerplugin.py", line , 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() 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() in wxWindowBase::~wxWindowBase(): any pushed event handlers must have been removed

解决办法:找到python3.6.6\Lib\site-packages\robotide\contrib\testrunner\testrunnerplugin.py文件,修改_create_font函数

修改后的代码为:

    def _create_font(self):
#font=wx.SystemSettings.GetFont(wx.SYS_ANSI_FIXED_FONT) #default font has error
font = wx.SystemSettings.GetFont(wx.SYS_SYSTEM_FONT) #set a number in [-,,],then run ride successfully,SYS_SYSTEM_FONT=,represents system font
if not font.IsFixedWidth():
# fixed width fonts are typically a little bigger than their
# variable width peers so subtract one from the point size.
font = wx.Font(font.GetPointSize()-, wx.FONTFAMILY_MODERN,
wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL)
return font

参考:https://blog.csdn.net/u011127242/article/details/88864476

最新文章

  1. CSharpGL(14)用geometry shader渲染模型的法线(normal)
  2. 关于Unity -Vuforia -Android 开发 ,平台的搭建(极品菜鸟完整版)
  3. unity3d引擎的学习
  4. 【代码笔记】iOS-浮点数处理并去掉多余的0
  5. 大数据处理对象CLOG BLOG
  6. 解决maven编译spark1.5报错问题
  7. Linux计时体系结构
  8. datagrid-detailview.js easyui表格嵌套
  9. 列表操作之定义,切片(取元素)(Python)
  10. docker入门【1】
  11. 访问网站出现 Directory Listing Denied This Virtual Directory 
  12. 使用open-falcon监控Nginx
  13. 集大软件工程15级结对编程week1
  14. CSS单行格式化与压缩
  15. linux系统下如何挂载NTFS移动硬盘
  16. 转://UDEV简介及配置过程
  17. Spark(Python) 从内存中建立 RDD 的例子
  18. Win7 64位操作系统连接HP 1010打印机完美解决方案
  19. linux下c语言实现双进程运行
  20. react-native 入门教程

热门文章

  1. Xshell无法连接到虚拟机Linux系统(桥接方式)
  2. [Scikit-learn] 4.3 Preprocessing data
  3. idea创建javaweb原生项目
  4. (java实现)单向循环链表
  5. java-不定项参数(可变参数)的作用和使用方式
  6. python自动化测试三部曲之untitest框架
  7. mysql 排序规则
  8. C语言I博客作业02
  9. 基于hash和pushState的网页前端路由实现
  10. 快学Scala 第二十课 (trait的构造顺序)