我正在尝试通过Thunar (1.8.14)让RabbitVCS在Kubuntu (20.04)上工作,但是尽管我尝试了,似乎没有什么工作。当然,它不工作,根据他们的官方安装指南。我觉得我离得很近了,但是遇到了一个障碍&在Google工作了几个小时之后,我对如何继续前进感到不知所措。这是我的过程。
首先,安装Thunar:
sudo apt install thunar以及在回购中实际可用的几个rabbitvcs依赖项:
sudo apt install python-gobject python-dbus接下来,我需要安装。在回购中缺少它,所以我安装了从https://ubuntu.pkgs.org/19.10/ubuntu-universe-amd64/thunarx-python_0.5.1-2_amd64.deb.html下载的thunarx-python0.5.1-2_amd64.deb。
同样,python在回购中也丢失了,所以我从https://ubuntu.pkgs.org/19.10/ubuntu-universe-amd64/python-configobj_5.0.6-3_all.deb.html安装了deb。
现在基本的兔子安装:
git clone https://github.com/rabbitvcs/rabbitvcs
cd rabbitvcs
sudo python setup.py install --install-layout=deb
sudo mkdir -p /usr/share/thunarx-python/extensions
sudo cp clients/thunar/RabbitVCS.py /usr/share/thunarx-python/extensions为了了解发生了什么,我将在启用thunarx调试之后启动Thunar:
THUNARX_PYTHON_DEBUG=all /usr/bin/thunar结果:
thunar_extension_initialize: entered
thunarx_python_load_dir: entered dirname=/home/metal450/.local/share/thunarx-python/extensions
thunarx_python_load_dir: entered dirname=/usr/share/thunarx-python/extensions
thunarx_python_init_python: entered
thunarx-python: Setting GI_TYPELIB_PATH to /usr/lib/x86_64-linux-gnu/girepository-1.0
thunarx-python: g_module_open /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
thunarx-python: Py_Initialize
thunarx-python: PySys_SetArgv
thunarx-python: Sanitize the python search path
thunarx-python: init_pygobject
thunarx-python: import Thunarx
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 129, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Thunarx not available
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/gi/importer.py", line 133, in load_module
'introspection typelib not found' % namespace)
ImportError: cannot import name Thunarx, introspection typelib not found
(thunar:14773): thunarx-python-WARNING **: 11:50:40.747: thunarx_python_init_python failed
Traceback (most recent call last):
File "/usr/share/thunarx-python/extensions/RabbitVCS.py", line 41, in <module>
from gi.repository import GObject, Gtk, Thunarx
File "/usr/lib/python2.7/dist-packages/gi/importer.py", line 133, in load_module
'introspection typelib not found' % namespace)
ImportError: cannot import name Thunarx, introspection typelib not found
thunarx_python_load_dir: entered dirname=/usr/share/plasma/thunarx-python/extensions
thunarx_python_load_dir: entered dirname=/usr/local/share/thunarx-python/extensions
thunarx_python_load_dir: entered dirname=/usr/share/thunarx-python/extensions
thunarx_python_init_python: entered
Traceback (most recent call last):
File "/usr/share/thunarx-python/extensions/RabbitVCS.py", line 41, in <module>
from gi.repository import GObject, Gtk, Thunarx
File "/usr/lib/python2.7/dist-packages/gi/importer.py", line 133, in load_module
'introspection typelib not found' % namespace)
ImportError: cannot import name Thunarx, introspection typelib not found
thunarx_python_load_dir: entered dirname=/var/lib/snapd/desktop/thunarx-python/extensions
thunarx_python_load_dir: entered dirname=/usr/lib/x86_64-linux-gnu/thunarx-3/python
thunar_extension_list_types: entered看起来它需要GI_TYPELIB_PATH中的Thunarx,它是/usr/lib/x86_64-linux-gnu/giposy-1.0。一些googling使它看起来应该是Thunarx-3.0型this,其中该文件包含在Thunar本身(即参见https://www.archlinux.org/packages/extra/x86_64/thunar/档案/)中。但事实并非如此,而且我的系统里也没有这样的文件,我可能会搜索,但我不知道它应该从哪里来。
任何帮助都将不胜感激。到目前为止,我已经有超过4个小时的时间了,不幸的是,我似乎仍然无法让兔子工作。
发布于 2020-06-02 20:32:42
正如在此与RabbitVCS的开发人员讨论的:https://github.com/rabbitvcs/rabbitvcs/issues/297,RabbitVCS中似乎存在多个bug,以及安装说明中的多个错误。
为了直接回答上面的问题,我可以从https://download-ib01.fedoraproject.org/pub/epel/8/Everything/x86_64/货包/t/Thunar-1.8.11-1.el8.x86_64.rpm下载rpm,手动提取缺失的类型表,然后手动将其移动到/usr/lib/x86_64-linux-gnu/giposer-1.0。然而,当我知道Thunar实际上并不支持RabbitVCS的覆盖图标时,我最终选择了Nautilus。为了让它在Kubuntu工作,我安装了如下:
sudo apt install nautilus python-dbus python3-nautilus python3-configobj python3-svn
git clone https://github.com/rabbitvcs/rabbitvcs
cd rabbitvcs
sudo python3 setup.py install --install-layout=deb
sudo cp clients/nautilus/RabbitVCS.py /usr/share/nautilus-python/extensions
nautilus -q注意:他们的说明建议从PPA安装;忽略它&从源代码安装,因为PPA版本显然不工作。他们的说明还列出了不存在的包(您将不得不更改为python3-notilus)、python -> python3、python -> python3-svn、dulwich-> python3-dulwich、python 2 -> python3-tk。
这会让它安装起来。此时,它仍然不起作用,出现了错误消息:
TypeError: Don't know which D-Bus type to use to encode type "NoneType"我通过编辑/usr/lib/python3/dist-packages/rabbitvcs/services/checkerservice.py &注释掉第270行locale.getlocale(locale.LC_MESSAGES)以及/usr/lib/python3/dist-packages/rabbitvcs/vcs/git/.init.py行824来修正它。对修复的解释在上面的github链接上,但是如果您没有破坏您的系统区域设置,它应该可以正常工作。
我相信他们已经做出了他们自己的修正(所以你可能不需要这最后一步),但这就是让它对我有效的原因,在这上面花了一天的大部分时间之后,我只是坚持我所拥有的。
这只剩下剩下的一件事:弹出菜单中的图标不见了。其他一切似乎都正常工作:叠加图标、菜单操作、对话框等--意思是,它在功能上启动并运行。
https://unix.stackexchange.com/questions/588390
复制相似问题