zoukankan      html  css  js  c++  java
  • RIDE安装操作(二)

    robotframework+ride+python3.8 环境搭建

    1、安装python3.8,可先根据 python -V 来查看 是否安装及安装版本;

     如果未安装,可在链接 https://www.python.org/ftp/python/3.8.0/  中进行下载安装;

     2、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

    3、安装过程中或执行 python ride.py 报错(如下图),可根据提示打开错误的文件:d:installpython38libsite-packages obotideapplicationapplication.py ,
    添加 self.locale = wx.Locale(wx.LANGUAGE_ENGLISH)

     

    def OnInit(self):
    # DEBUG To test RTL
    # self._initial_locale = wx.Locale(wx.LANGUAGE_ARABIC)
    self._initial_locale = wx.Locale(wx.LANGUAGE_ENGLISH)
    # Needed for SetToolTipString to work
    wx.HelpProvider.Set(wx.SimpleHelpProvider()) # TODO adjust to wx versions
    self.locale = wx.Locale(wx.LANGUAGE_ENGLISH)             // 添加此行代码
    self.settings = RideSettings()
    librarydatabase.initialize_database()
    self.preferences = Preferences(self.settings)
    self.namespace = Namespace(self.settings)
    self._controller = Project(self.namespace, self.settings)
    self.frame = RideFrame(self, self._controller)
    self._editor_provider = EditorProvider()
    self._plugin_loader = PluginLoader(self, self._get_plugin_dirs(),
    coreplugins.get_core_plugins())
    self._plugin_loader.enable_plugins()

  • 相关阅读:
    虚拟机中Linux 下安装tools
    各个复位标志解析,让我们对MCU的程序的健康更有把控
    用过的两种鼠标右键添加快捷指令方法
    一个ftp协议传输文件之后执行脚本无法工作的情况
    一文入门Linux下gdb调试(二)
    一文入门Linux下gdb调试(一)
    VS CODE远程办公篇一
    Kwp2000协议的应用(程序后续篇)
    Kwp2000协议的应用(程序原理篇)
    Kwp2000协议的应用(硬件原理使用篇)
  • 原文地址:https://www.cnblogs.com/suhongzhen/p/14652326.html
Copyright © 2011-2022 走看看