Crashes on Nautilus 3.6.3

Bug #1172953 reported by Donjan Rodic
50
This bug affects 10 people
Affects Status Importance Assigned to Milestone
nautilus-compare
New
Undecided
Unassigned

Bug Description

For Nautilus, python-nautilus and nautilus-compare (0.0.4) from the Ubuntu 13.04 repositories as well as nautilus-compare 0.0.5 from here, I get the following error when starting Nautilus from command line:

ImportError: could not import gobject (error was: '/usr/lib/x86_64-linux-gnu/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 64, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line 5, 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.x86_64-linux-gnu.so: undefined symbol: _Py_ZeroStruct

Original exception was:
ImportError: could not import gobject (error was: '/usr/lib/x86_64-linux-gnu/libpyglib-gi-2.0-python2.7.so.0: undefined symbol: _Py_ZeroStruct')

There is no context menu available.
Removing nautilus-compare gives an error-free start.

Revision history for this message
Donjan Rodic (bryonak) wrote :

Ignore the last comment... I forgot to run ldconfig after symlinking.
~$ sudo ln -s /usr/lib/x86_64-linux-gnu/libpython2.7.so /usr/lib/libpython.2.7.so
~$ sudo ln -s /usr/lib/x86_64-linux-gnu/libpython2.7.so.1 /usr/lib/libpython.2.7.so.1
~$ sudo ldconfig
~$ nautilus
sys:1: Warning: g_object_set: assertion `G_IS_OBJECT (object)' failed

Works fine.
So is this something that should be fixed in nautilus-compare by also looking in the /usr/lib/x86_64-linux-gnu/ dir?

Revision history for this message
mondhs (mondhs) wrote :

Donjan,
Thanks for hint:
~$ sudo ln -s /usr/lib/x86_64-linux-gnu/libpython2.7.so /usr/lib/libpython.2.7.so
~$ sudo ln -s /usr/lib/x86_64-linux-gnu/libpython2.7.so.1 /usr/lib/libpython.2.7.so.1
~$ sudo ldconfig
~$ nautilus
sys:1: Warning: g_object_set: assertion `G_IS_OBJECT (object)' failed

I confirm that this fixed my issue:
ImportError: /usr/lib/python2.7/lib-dynload/pyexpat.x86_64-linux-gnu.so: undefined symbol: _Py_ZeroStruct

Revision history for this message
Night Train (nighttrain) wrote :

hi guys

in raring ringtail 13.04 64 bit, fresh install, "compare" not appear into right click menu in nautilus, but no error into terminal

nautilus 1:3.6.3-0ubuntu16
nautilus-compare 0.0.4-1
meld 1.6.1-1

meld is trouble-free

thanks

Revision history for this message
Night Train (nighttrain) wrote :

update

i have tested your hint, but /usr/lib/x86_64-linux-gnu/libpython2.7.so it doesn't exist

therefore i have typed into terminal:

~$ sudo ln -s /usr/lib/x86_64-linux-gnu/libpython2.7.so.1 /usr/lib/libpython.2.7.so.1
~$ sudo ln -s /usr/lib/x86_64-linux-gnu/libpython2.7.so.1 /usr/lib/libpython.2.7.so
~$ sudo ldconfig
~$ nautilus

after "enter" prompt is ~$ without errors and "compare" works properly

bye

Revision history for this message
Clearstar (szummer-l) wrote :

The recipe from <monds> worked, but additionally needed a reboot; ldconfig wasn't sufficient to reset the environment.
Unlike <nighttrain> I did have /usr/lib/libpython.2.7.so.1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.