Meld error “Cannot import: GTK+; No module named repository”

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 22:34:44

OK, that was not obvious:

gi.repository is not part of gi but its own thing. That's why gi should not be installed (thank you Moose).

This article then pointed me to a possible source, python-gobject. However, I already had that installed. So I installed other things that looked similar, and the python-gobject-cairo package ( Python 2.7, openSuse 13.1) did the trick. Seems like someone overlooked a dependency for Meld...

I unlinked the file that was showing in Expected in:

Expected in: /Applications/Meld.app/Contents/Frameworks/libz.1.dylib

unlink /Applications/Meld.app/Contents/Frameworks/libz.1.dylib

After changing python3 from version 3.7 to 3.6 error disappeared.

I have done that by:

sudo apt-get install python3.6
sudo rm /usr/bin/python3
sudo ln -s /usr/bin/python3.6 /usr/bin/python3
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!