Expects to find python2.5 so, should look for python2.5.so.1

Bug #195322 reported by Stefan Nuxoll
4
Affects Status Importance Assigned to Milestone
nautilus-python
Fix Released
Unknown
nautilus-python (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: nautilus

After toying with python-nautilus I was wondering why my extensions weren't being loaded, so I went and killall -9'ed nautilus and read the debug log (attached). After seeing "0x8177510 2008/02/24 22:12:12.6001 (GLog): g_module_open libpython failed: libpython2.5.so: cannot open shared object file: No such file or directory" I browsed /usr/lib and saw python2.5.so.1, and linked python2.5.so to it, which fixed the issue. Assuming this is a nautilus problem since python and every other python app on my system works fine.

Revision history for this message
Stefan Nuxoll (snuxoll) wrote :
Revision history for this message
izi (izimobil) wrote :

I confirm the problem under a fresh install of Hardy alpha 5:

to reproduce try:

$ make dir -p ~/.nautilus/python-extensions
$ cp /usr/share/doc/python-nautilus/examples/open-terminal.py ~/.nautilus/python-extensions/
$ nautilus -q
$ nautilus

(nautilus:24678): Nautilus-Python-WARNING **: g_module_open libpython failed: /usr/lib/libpython2.5.so: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou répertoire de ce type
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/gtk-2.0/gobject/__init__.py", line 30, in <module>
    from gobject.constants import *
  File "/var/lib/python-support/python2.5/gtk-2.0/gobject/constants.py", line 22, in <module>
    from _gobject import type_from_name
ImportError: /var/lib/python-support/python2.5/gtk-2.0/gobject/_gobject.so: undefined symbol: _Py_ZeroStruct
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 36, in apport_excepthook
    from cStringIO import StringIO
ImportError: /usr/lib/python2.5/lib-dynload/cStringIO.so: undefined symbol: _Py_ZeroStruct

Original exception was:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/gtk-2.0/gobject/__init__.py", line 30, in <module>
    from gobject.constants import *
  File "/var/lib/python-support/python2.5/gtk-2.0/gobject/constants.py", line 22, in <module>
    from _gobject import type_from_name
ImportError: /var/lib/python-support/python2.5/gtk-2.0/gobject/_gobject.so: undefined symbol: _Py_ZeroStruct

(nautilus:24678): Nautilus-Python-WARNING **: could not import gobject

(nautilus:24678): Nautilus-Python-WARNING **: pygobject initialization failed

(nautilus:24678): Nautilus-Python-WARNING **: nautilus_python_init_python failed
seahorse nautilus module initialized

And this did not fix the problem unfortunately for me:

$ cd /usr/lib
$ sudo ln -s libpython2.5.so.1.0 libpython2.5.so
$ nautilus -q
$ nautilus
ImportError: /usr/lib/nautilus-python/nautilus.so: undefined symbol: nautilus_file_info_get_vfs_file_info

(nautilus:24701): Nautilus-Python-WARNING **: nautilus_python_init_python failed
seahorse nautilus module initialized

** (nautilus:24701): WARNING **: Unable to add monitor: Non pris en charge

Tell me if you need more info, I am willing to help.

Revision history for this message
Stefan Nuxoll (snuxoll) wrote :

I'm suprised it's still broken in hardy. Could you post the results of ls /usr/lib | grep python as a attachement?

Changed in nautilus-python:
status: New → Confirmed
Revision history for this message
izi (izimobil) wrote :

Well, it is:

$ ls -l /usr/lib |grep python
lrwxrwxrwx 1 root root 19 2008-02-24 14:37 libpython2.5.so.1 -> libpython2.5.so.1.0
-rw-r--r-- 1 root root 1236568 2008-01-03 20:08 libpython2.5.so.1.0
drwxr-xr-x 2 root root 4096 2008-02-26 02:09 nautilus-python
drwxr-xr-x 3 root root 4096 2008-02-22 02:48 python2.3
drwxr-xr-x 4 root root 4096 2008-02-22 02:50 python2.4
drwxr-xr-x 23 root root 16384 2008-02-26 02:06 python2.5
drwxr-xr-x 21 root root 4096 2008-02-22 02:51 python-support

By the way I have a patch for the second bug (undefined symbol: nautilus_file_info_get_vfs_file_info) and some other fixes that sync nautlus-python to current nautilus, but I think I should rather submit the bug/patch to gnome bugzilla no ?

Revision history for this message
Stefan Nuxoll (snuxoll) wrote :

yes, would be better to submit that bug upstream, probably related to gvfs.

Changed in nautilus-python:
status: Unknown → Fix Released
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.