after login python library load error

Asked by Wolf Canis

Hello,
after normal login, the following entrys in ~/.xsession-errors:

/etc/gdm/PreSession/Default: Registering your session with wtmp and utmp
/etc/gdm/PreSession/Default: running: /usr/X11R6/bin/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "/var/lib/gdm/:0.Xservers" -h "" -l ":0" "rh"
/etc/gdm/Xsession: Beginning session setup...
SESSION_MANAGER=local/rh-laptop:/tmp/.ICE-unix/4677
Gnome-Message: gnome_execute_async_with_env_fds: returning -1

(nautilus:4748): Nautilus-Python-WARNING **: g_module_open libpython failed: libpython2.4.so: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/gtk-2.0/gobject/__init__.py", line 30, in ?
    from _gobject import *
ImportError: /var/lib/python-support/python2.4/gtk-2.0/gobject/_gobject.so: undefined symbol: _Py_TrueStruct

(nautilus:4748): Nautilus-Python-WARNING **: could not import gobject
Initializing nautilus-open-terminal extension
evolution-alarm-notify-Message: Setting timeout for 47944 1169420400 1169372456
evolution-alarm-notify-Message: Mon Jan 22 00:00:00 2007

evolution-alarm-notify-Message: Sun Jan 21 10:40:56 2007

seahorse nautilus module initialized

(gnome-panel:4746): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -3 and height 24

Python is installed, the meta package from Ubuntu at system installation. What can I do
to fix this error?

Thanks in advance,
                                 Mr Canis

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Wolf Canis
Solved:
Last query:
Last reply:
Revision history for this message
Curtis Hovey (sinzui) said :
#1

You may be missing _gobject.so. After reading https://launchpad.net/ubuntu/+source/nautilus-python/+bug/44704 I believe you may have some luck bu installing the python-gobject-dev package that will provife it.

I am not experiencing this issue with python-gobject and nautilus-terminal in edgy.

Revision history for this message
Best Wolf Canis (wolf-canis) said :
#2

Hello Curtis Hovey,
I couldn't find the package python-gobject-dev, but I have following packages installed:

libgd2-noxpm (2.0.33-4ubuntu2)
libid3-3.8.3c2a (3.8.3-5)
python-crypto (2.0.1+dfsg1-1.2build1)
python-gd (0.52.0-0ubuntu2)
python2.4-dev (2.4.4~c1-0ubuntu1)
python2.4-doc (2.4.4~c1-0ubuntu1)
python2.4-examples (2.4.4~c1-0ubuntu1)
python2.4-gd (0.52.0-0ubuntu2)
python2.4-id3lib (0.5.1-6ubuntu2)
python2.4-paramiko (1.5.2-0ubuntu2)

And that fixed the problem. Not all packages from the above list would be necessary, but
I couldn't find _gobject.so file. Now I have more installed as I need to solve the problem,
but on the other hand it works and I can learn python, if I want. ~;)

Thanks for your help,
                                     Mr Canis