Comment 18 for bug 1170017

This bug exists in Ubuntu 12.04.5 too.
I was trying to port TortoiseHG to Caja (see and got a problem in Ubuntu 12.04.

After adding MATE PPAs and installing caja-python and my script I have the following error on Caja start:

     (caja:13871): Caja-Python-WARNING **: g_module_open libpython failed: /usr/lib/i386-linux-gnu// cannot open shared object file: No such file or directory
     ImportError: could not import gobject (error was: '/usr/lib/ undefined symbol: _Py_ZeroStruct')
     Error in sys.excepthook:
     Traceback (most recent call last):
       File "/usr/lib/python2.7/dist-packages/", line 66, in apport_excepthook
         from apport.fileutils import likely_packaged, get_recent_crashes
       File "/usr/lib/python2.7/dist-packages/apport/", line 1, in <module>
         from import Report
       File "/usr/lib/python2.7/dist-packages/apport/", line 16, in <module>
         from xml.parsers.expat import ExpatError
       File "/usr/lib/python2.7/xml/parsers/", line 4, in <module>
         from pyexpat import *
     ImportError: /usr/lib/python2.7/lib-dynload/ undefined symbol: _Py_ZeroStruct

     Original exception was:
     ImportError: could not import gobject (error was: '/usr/lib/ undefined symbol: _Py_ZeroStruct')

     (caja:13871): Caja-Python-WARNING **: pygobject initialization failed

     (caja:13871): Caja-Python-WARNING **: caja_python_init_python failed

As a temporary solution I made a symlink:
   sudo ln -s /usr/lib/ /usr/lib/i386-linux-gnu/

After that TortoiseHG Caja extension works on Ubuntu 12.04 as expected.

Please fix this bug on Ubuntu or MATE PPA side.