安装后无法在ubuntu中启动RIDE.py

时间:2016-07-19 07:23:38

标签: python-2.7 ubuntu robotframework

您能帮忙解决这个问题吗? 我已经安装了Python2.7,Selenium2Library,WXPython;机器人框架...... 当我想开始骑行时,我得到以下错误。

:~$ ride.py
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/robotide/__init__.py", line 74, in main
    _run(inpath, not noupdatecheck, debug_console)
  File "/usr/local/lib/python2.7/dist-packages/robotide/__init__.py", line 100, in _run
    ride = RIDE(inpath, updatecheck)
  File "/usr/local/lib/python2.7/dist-packages/robotide/application/application.py", line 42, in __init__
    wx.App.__init__(self, redirect=False)
  File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/robotide/application/application.py", line 47, in OnInit
    self.settings = RideSettings()
  File "/usr/local/lib/python2.7/dist-packages/robotide/preferences/settings.py", line 316, in __init__
    user_path = initialize_settings(default_path)
  File "/usr/local/lib/python2.7/dist-packages/robotide/preferences/settings.py", line 29, in initialize_settings
    SETTINGS_DIRECTORY, path, dest_file_name)
  File "/usr/local/lib/python2.7/dist-packages/robotide/preferences/settings.py", line 46, in _copy_or_migrate_user_settings
    SettingsMigrator(source_path, settings_path).migrate()
  File "/usr/local/lib/python2.7/dist-packages/robotide/preferences/settings.py", line 94, in migrate
    self.merge()
  File "/usr/local/lib/python2.7/dist-packages/robotide/preferences/settings.py", line 98, in merge
    self._write_merged_settings(self._default_settings, self._user_path)
  File "/usr/local/lib/python2.7/dist-packages/robotide/preferences/settings.py", line 186, in _write_merged_settings
    'Could not open settings file "%s" for writing' % path)
RuntimeError: Could not open settings file "/home/said/.robotframework/ride/settings.cfg" for writing

1 个答案:

答案 0 :(得分:1)

错误消息很明确:     RuntimeError:无法打开设置文件" /home/said/.robotframework/ride/settings.cfg"写作

可能的解决方案:

  1. cd; pwd; /家庭/所述
  2. rm -rf .robotframework
    1. sudo chown -R说:.robotframework