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:\install\python38\lib\site-packages\robotide\application\application.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()

 

posted on 2021-04-13 11:18  给天使看的戲  阅读(231)  评论(0编辑  收藏  举报