Bug#767821: gir1.2-caja is someway broken - unable to import Caja from gi.repository

Nrbrtx nrbrtx at gmail.com
Sun Nov 2 20:17:52 UTC 2014


Package: gir1.2-caja
Severity: grave
Version: 1.8.1-2~bpo70+1


Dear Debian developers!

As you may know from GitHub (mate-desktop / caja / 322
<https://github.com/mate-desktop/caja/issues/322>) and from LP: #1170017
<https://bugs.launchpad.net/bugs/1170017> I'm trying to port TortoiseHG
extension from Nautilus to Caja (see comment 18
<
https://bugs.launchpad.net/ubuntu/+source/nautilus-python/+bug/1170017/comments/18
>
from the bug).
I placed my python extension script in my BitBucket repository
<https://bitbucket.org/nrbrtx/caja-thg>.

For integration with Caja my script should be copied to
~/.local/share/caja-python/extensions/caja-thg.py
after that Caja should be relaunched with caja -q.

I tested it in Debian 8 (jessie/sid) - it works as
expected (there are green star icon on a folder and TortoiseHG drop-down
menus).

But if I install gir1.2-caja in Debian 7 I can't use my extension because
of python error:

$python -c "from gi.repository import Caja"
ERROR:root:Could not find any typelib for Caja
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name Caja

This is caused by wrong file-structure of gir1.2-caja package. It has
/usr/lib/i386-linux-gnu/girepository-1.0/Caja-2.0.typelib but not in
/usr/lib/girepository-1.0/Caja-2.0.typelib.
If I move typelib manually to correct location, I can use it, but get
another bug - 766879 <
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766879>.

The bug about Caja-2.0.typelib exists in Ubuntu too - it is bug 1380313 <
https://bugs.launchpad.net/bugs/1380313>. Please fix this bug in Debian.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-mate-team/attachments/20141102/03e2acda/attachment.html>


More information about the pkg-mate-team mailing list