This bug exists in Ubuntu 12.04.5 too.
I was trying to port TortoiseHG to Caja (see https://bitbucket.org/nrbrtx/caja-thg) 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//libpython2.7.so.1.0: cannot open shared object file: No such file or directory
ImportError: could not import gobject (error was: '/usr/lib/libpyglib-gi-2.0-python2.7.so.0: undefined symbol: _Py_ZeroStruct')
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 66, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line 1, in <module>
from apport.report import Report
File "/usr/lib/python2.7/dist-packages/apport/report.py", line 16, in <module>
from xml.parsers.expat import ExpatError
File "/usr/lib/python2.7/xml/parsers/expat.py", line 4, in <module>
from pyexpat import *
ImportError: /usr/lib/python2.7/lib-dynload/pyexpat.so: undefined symbol: _Py_ZeroStruct
Original exception was:
ImportError: could not import gobject (error was: '/usr/lib/libpyglib-gi-2.0-python2.7.so.0: undefined symbol: _Py_ZeroStruct')
This bug exists in Ubuntu 12.04.5 too. /bitbucket. org/nrbrtx/ caja-thg) and got a problem in Ubuntu 12.04.
I was trying to port TortoiseHG to Caja (see https:/
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//libpython2 .7.so.1. 0: cannot open shared object file: No such file or directory libpyglib- gi-2.0- python2. 7.so.0: undefined symbol: _Py_ZeroStruct') python2. 7/dist- packages/ apport_ python_ hook.py" , line 66, in apport_excepthook python2. 7/dist- packages/ apport/ __init_ _.py", line 1, in <module> python2. 7/dist- packages/ apport/ report. py", line 16, in <module> python2. 7/xml/parsers/ expat.py" , line 4, in <module> python2. 7/lib-dynload/ pyexpat. so: undefined symbol: _Py_ZeroStruct
ImportError: could not import gobject (error was: '/usr/lib/
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/
from apport.report import Report
File "/usr/lib/
from xml.parsers.expat import ExpatError
File "/usr/lib/
from pyexpat import *
ImportError: /usr/lib/
Original exception was: libpyglib- gi-2.0- python2. 7.so.0: undefined symbol: _Py_ZeroStruct')
ImportError: could not import gobject (error was: '/usr/lib/
(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: libpython2. 7.so.1. 0 /usr/lib/ i386-linux- gnu/libpython2. 7.so.1. 0
sudo ln -s /usr/lib/
After that TortoiseHG Caja extension works on Ubuntu 12.04 as expected.
Please fix this bug on Ubuntu or MATE PPA side.