Meld,Mac OSX上的pygtk

1 投票
2 回答
1276 浏览
提问于 2025-04-18 10:57

我在Mac OSX上安装meld,使用了macports安装了meld和pygtk,但运行的时候出现了这个问题:

$ meld
Couldn't bind the translation domain. Some translations won't work.
'module' object has no attribute 'bindtextdomain'
Cannot import: pygtk
No module named pygtk

所以我尝试用pip来安装pygtk。

$ pip install pygtk
Downloading/unpacking pygtk
Downloading pygtk-2.24.0.tar.bz2 (2.4MB): 2.4MB downloaded
Running setup.py egg_info for package pygtk
********************************************************************
* Building PyGTK using distutils is only supported on windows. *
* To build PyGTK in a supported way, read the INSTALL file.    *
********************************************************************
Complete output from command python setup.py egg_info:
********************************************************************

* 使用distutils构建PyGTK只支持在Windows上。 *

* 要以支持的方式构建PyGTK,请查看INSTALL文件。 *

********************************************************************

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /private/var/folders/0y/8w4qlr0d6tv6_jgk87x53fcw0000gn/T/pip_build_frazras/pygtk

我不太确定是什么导致了这个错误,也不知道接下来该怎么做。如果能给我一些建议,告诉我接下来该尝试哪些步骤,我会很感激。

2 个回答

1

重新安装所有meld的依赖项对我有效。

brew rm --force gobject-introspection pygobject py2cairo pygtk rarian meld
brew cask install meld
3

我决定做一个本地版本。只需下载这个dmg文件,然后像安装其他Mac应用一样安装它就可以了。

这里是下载链接:https://github.com/yousseb/meld/releases/tag/osx-v1

希望大家觉得这个有用……

撰写回答