robotframework+ride+python3.8 环境搭建

安装python

在这里插入图片描述

pip 安装

pip install robotframework
pip install Pypubsub==3.3.0
pip install robotframework-ride
pip install robotframework-seleniumlibrary
pip list     //检查是否安装成功

默认pip 源比较慢 推荐临时使用国内源

pip install robotframework -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip install Pypubsub==3.3.0 -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip install robotframework-ride -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
pip install robotframework-seleniumlibrary -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com

问题记录

Traceback (most recent call last):
  File "d:\install\python38\lib\site-packages\robotide\application\application.py", line 58, in OnInit
    self.frame = RideFrame(self, self._controller)
  File "d:\install\python38\lib\site-packages\robotide\ui\mainframe.py", line 175, in __init__
    self._init_ui()
  File "d:\install\python38\lib\site-packages\robotide\ui\mainframe.py", line 279, in _init_ui
    self.tree = Tree(self, self.actions,
  File "d:\install\python38\lib\site-packages\robotide\ui\tree.py", line 86, in __init__
    self._images = TreeImageList()
  File "d:\install\python38\lib\site-packages\robotide\ui\images.py", line 42, in __init__
    TestCaseController: _TreeImage(self, 'robot.png'),
  File "d:\install\python38\lib\site-packages\robotide\ui\images.py", line 80, in __init__
    self.normal = self._get_image(image_list, normal)
  File "d:\install\python38\lib\site-packages\robotide\ui\images.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 ..\..\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!
OnInit returned false, exiting...
Error in atexit._run_exitfuncs:
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+python3.8 环境搭建_第1张图片
根据提示打开错误的文件:
d:\install\python38\lib\site-packages\robotide\application\application.py
添加如下代码
robotframework+ride+python3.8 环境搭建_第2张图片

你可能感兴趣的:(软件测试)