【问题标题】:AttributeError while running Meld from terminal从终端运行 Meld 时出现 AttributeError
【发布时间】:2014-03-13 07:14:31
【问题描述】:

我使用的是 Ubuntu 12.04,并且在从终端运行 meld 时收到 AttributeError

$ meld file1.txt file2.txt
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display warnings.warn(str(e), _gtk.Warning)
/usr/bin/meld:126: GtkWarning: IA__gtk_icon_theme_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed gtk.icon_theme_get_default().append_search_path(meld.paths.icon_dir())
Traceback (most recent call last):
  File "/usr/bin/meld", line 126, in <module>
    gtk.icon_theme_get_default().append_search_path(meld.paths.icon_dir())
AttributeError: 'NoneType' object has no attribute 'append_search_path'

这是什么错误,我该如何纠正?

【问题讨论】:

  • 尝试使用 sudo "sudo meld" 运行融合

标签: python ubuntu meld


【解决方案1】:

启动xming,然后运行meld 命令。

【讨论】:

    猜你喜欢
    • 2018-11-17
    • 2023-03-17
    • 1970-01-01
    • 2019-12-10
    • 1970-01-01
    • 2018-06-30
    • 2021-12-04
    • 2015-04-14
    相关资源
    最近更新 更多