<div dir="ltr"><div><div><div><div><div>Package: gir1.2-caja<br>
Severity: grave<br>
Version: 1.8.1-2~bpo70+1<br><br><br></div>Dear Debian developers!<br><br>As you may know from GitHub (mate-desktop / caja / 322<br><<a href="https://github.com/mate-desktop/caja/issues/322" target="_blank">https://github.com/mate-desktop/caja/issues/322</a>>) and from LP: #1170017<br><<a href="https://bugs.launchpad.net/bugs/1170017" target="_blank">https://bugs.launchpad.net/bugs/1170017</a>> I'm trying to port TortoiseHG<br>extension from Nautilus to Caja (see comment 18<br><<a href="https://bugs.launchpad.net/ubuntu/+source/nautilus-python/+bug/1170017/comments/18" target="_blank">https://bugs.launchpad.net/ubuntu/+source/nautilus-python/+bug/1170017/comments/18</a>><br>from the bug).<br>I placed my python extension script in my BitBucket repository<br><<a href="https://bitbucket.org/nrbrtx/caja-thg" target="_blank">https://bitbucket.org/nrbrtx/caja-thg</a>>.<br><br>For integration with Caja my script should be copied to<br>~/.local/share/caja-python/extensions/caja-thg.py<br><div dir="ltr">after that Caja should be relaunched with caja -q.<br><br>I tested it in Debian 8 (jessie/sid) - it works as<br>expected (there are green star icon on a folder and TortoiseHG drop-down<br>menus).<br></div><br></div>But if I install gir1.2-caja in Debian 7 I can't use my extension because of python error:<br><br>$python -c "from gi.repository import Caja"<br>ERROR:root:Could not find any typelib for Caja<br>Traceback (most recent call last):<br>  File "<string>", line 1, in <module><br>ImportError: cannot import name Caja<br><br></div>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.<br></div>If I move typelib manually to correct location, I can use it, but get another bug - 766879 <<a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766879">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766879</a>>.<br></div><br>The bug about Caja-2.0.typelib exists in Ubuntu too - it is bug 1380313 <<a href="https://bugs.launchpad.net/bugs/1380313">https://bugs.launchpad.net/bugs/1380313</a>>. Please fix this bug in Debian.<br></div>