• 在win10上安装python3.8 + Robotframework +RIDE报错


    本地环境:

    win10+python3.8+ride(1.7.4.2)

    安装完成后,运行性ride启动不起来,在cmd执行ride.py命令启动报错

    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 0.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 3.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 4.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 5.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 6.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 7.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 19.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 20.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 21.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 22.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 25.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 26.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 27.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 28.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 29.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 30.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 31.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 32.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 33.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 34.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 35.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 36.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 37.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 38.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 39.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 40.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 43.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 44.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 45.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 46.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 47.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 48.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 49.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 50.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 51.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 52.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 53.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 54.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 55.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 56.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 57.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 58.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 59.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 60.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 61.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 62.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 63.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 67.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 68.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 69.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 70.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 71.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 13.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 14.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 0.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 3.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 4.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 5.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 6.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 7.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 19.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 20.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 21.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 22.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 25.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 26.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 27.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 28.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 29.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 30.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 31.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 32.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 33.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 34.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 35.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 36.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 37.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 38.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 39.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 40.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 43.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 44.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 45.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 46.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 47.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 48.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 49.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 50.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 51.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 52.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 53.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 54.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 55.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 56.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 57.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 58.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 59.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 60.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 61.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 62.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 63.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 67.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 68.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 69.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 70.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 71.
    <class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 13.
    Traceback (most recent call last):
      File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packages
    obotideapplicationapplication.py", line 58, in OnInit
        self.frame = RideFrame(self, self._controller)
      File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packages
    obotideuimainframe.py", line 175, in __init__
        self._init_ui()
      File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packages
    obotideuimainframe.py", line 279, in _init_ui
        self.tree = Tree(self, self.actions,
      File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packages
    obotideui	ree.py", line 86, in __init__
        self._images = TreeImageList()
      File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packages
    obotideuiimages.py", line 42, in __init__
        TestCaseController: _TreeImage(self, 'robot.png'),
      File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packages
    obotideuiimages.py", line 80, in __init__
        self.normal = self._get_image(image_list, normal)
      File "c:usersadministratorappdatalocalprogramspythonpython38libsite-packages
    obotideuiimages.py", line 91, in _get_image
        img = wx.Image(path, wx.BITMAP_TYPE_PNG).ConvertToBitmap()
    wx._core.wxAssertionError: C++ assertion "strcmp(setlocale(LC_ALL, NULL), "C") == 0" failed at ....srccommonintl.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!
    OnInit returned false, exiting...
    Error in atexit._run_exitfuncs:
    wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this" failed at ....srccommonwincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any pushed event handlers must have been removed

    参考解决文章办法文章:https://www.cnblogs.com/336699qiangqiang/p/13397834.htmlhttps://blog.csdn.net/zqh139/article/details/107951163

    其中官方提供的2个解决办法中,第一个已经失效,用第二个办法解决

  • 相关阅读:
    容器网络(八)准备 macvlan 环境【49】
    容器网络(八)overlay 是如何隔离的?【48】
    容器网络(八)overlay 如何实现跨主机通信?【47】
    容器网络(八)在 overlay 中运行容器【46】
    容器网络(八)创建 overlay 网络【45】
    容器网络(八)跨主机网络概述【43】
    容器(七)管理 Machine【42】
    容器(七)创建 Machine【41】
    容器(七)安装 Docker Machine【40】
    容器(六)volume 生命周期管理【39】
  • 原文地址:https://www.cnblogs.com/yrxns/p/14472954.html
Copyright © 2020-2023  润新知