【问题标题】:Robot Framework - Can't start RIDE on MacOS机器人框架 - 无法在 MacOS 上启动 RIDE
【发布时间】:2021-05-02 11:39:58
【问题描述】:

上下文

我想为移动自动测试构建一个环境。关于工具,我想将 Appium 与 Robot Framework 一起使用。

MacOS Mojave (10.14.6)

问题

我想使用RIDE 编写我的测试,但我无法启动它。

我遵循了README 中的安装指南,并且我已经测试了很多方法来拥有一个良好的环境,但我每次都失败了,我迷失了...... 我测试过的:

  • python3.9 与机器人框架的最新版本,如自述文件中指定的 2.0b2.dev1
  • python3.9 与最后发布的版本,即 1.7.4.2
  • python2.7 和 RF 1.7.4.2 和最后一个
  • python3.8 同两个版本的RF

没有一个工作。

以下是我尝试启动 RIDE 时使用 Python 3.8RIDE 2.0b2.dev1 的日志

$ ride.py
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/robotide/application/application.py", line 64, in OnInit
    self._plugin_loader.enable_plugins()
  File "/usr/local/lib/python3.8/site-packages/robotide/application/pluginloader.py", line 36, in enable_plugins
    p.enable_on_startup()
  File "/usr/local/lib/python3.8/site-packages/robotide/application/pluginconnector.py", line 52, in enable_on_startup
    self.enable()
  File "/usr/local/lib/python3.8/site-packages/robotide/application/pluginconnector.py", line 57, in enable
    self._plugin.enable()
  File "/usr/local/lib/python3.8/site-packages/robotide/contrib/testrunner/testrunnerplugin.py", line 225, in enable
    self._add_tab_to_notebook()
  File "/usr/local/lib/python3.8/site-packages/robotide/contrib/testrunner/testrunnerplugin.py", line 814, in _add_tab_to_notebook
    self._output_panel = self._build_output_panel(self.panel)
  File "/usr/local/lib/python3.8/site-packages/robotide/contrib/testrunner/testrunnerplugin.py", line 842, in _build_output_panel
    self.show_message_log,
  File "/usr/local/lib/python3.8/site-packages/robotide/pluginapi/plugin.py", line 136, in __getattr__
    raise AttributeError("No attribute or settings with name '%s' found" % name)
AttributeError: No attribute or settings with name 'show_message_log' found
OnInit returned false, exiting...
Error in atexit._run_exitfuncs:
wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this" failed at /Users/robind/projects/bb2/dist-osx-py38/build/ext/wxWidgets/src/common/wincmn.cpp(470) in ~wxWindowBase(): any pushed event handlers must have been removed

这里是安装的框架

$ pip3 list
Package             Version
------------------- ----------
numpy               1.19.5
Pillow              8.1.0
pip                 20.3.3
psutil              5.8.0
Pygments            2.7.4
Pypubsub            4.0.3
robotframework-ride 2.0b2.dev1
setuptools          51.1.1
six                 1.15.0
wheel               0.36.2
wxPython            4.1.1

谁能帮帮我?

【问题讨论】:

    标签: python-3.x robotframework robotframework-ide


    【解决方案1】:

    这个问题应该已经在当前的开发分支中修复了。 请尝试安装:

    pip install -U https://github.com/robotframework/RIDE/archive/master.zip
    

    编辑: 你可以尝试从我的colours 分支安装:

    pip3 install -U https://github.com/HelioGuilherme66/RIDE/archive/colours.zip
    

    或者在文件settings.cfg[Test Runner]部分添加缺少的属性show_message_log = True

    【讨论】:

    • colours 分支安装解决了我的问题。非常感谢!
    猜你喜欢
    • 2015-11-03
    • 2014-03-16
    • 1970-01-01
    • 2017-04-05
    • 2017-02-20
    • 2021-08-15
    • 2020-07-10
    • 2020-07-12
    • 2019-08-24
    相关资源
    最近更新 更多