Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#4906 - deskbar-applet crashes on load

Attached to Project: Arch Linux
Opened by Eugenia Loli-Queru (Eugenia) - Thursday, 29 June 2006, 05:30 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To arjan timmerman (blaasvis)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

it says that it find a gobject or something.
This task depends upon

Closed by  arjan timmerman (blaasvis)
Sunday, 09 July 2006, 16:58 GMT
Reason for closing:  Fixed
Comment by Jan de Groot (JGC) - Thursday, 29 June 2006, 06:11 GMT
Please supply us with the exact error message. I can't reproduce it on my system, but probably some dependency is missing on your system. I need the exact error message to track this one down.
Comment by Eugenia Loli-Queru (Eugenia) - Thursday, 29 June 2006, 23:03 GMT
[eugenia@vaio ~]$ /opt/gnome/lib/deskbar-applet/deskbar-applet
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "/opt/gnome/lib/deskbar-applet/deskbar-applet", line 10, in ?
import gobject
ImportError: No module named gobject

i have gnome-python-desktop installed btw
Comment by arjan timmerman (blaasvis) - Friday, 30 June 2006, 06:30 GMT
could you check if this file is there:
/usr/lib/python2.4/site-packages/gtk-2.0/gobject.so

if it doesn't try reinstalling pygtk.
Comment by Jan de Groot (JGC) - Friday, 30 June 2006, 06:53 GMT
Hmm, another thing: the gobject bindings have moved to the pygobject module. pygtk 2.8 includes backwards compatible versions if pygobject isn't found.
Comment by Eugenia Loli-Queru (Eugenia) - Friday, 30 June 2006, 07:33 GMT
the file exists. But i reinstalled pygtk and gnome-python anyway. But deskbar-applet would still not work.
What about pyobject btw? is this another package i need to install? if yes, which?
Comment by Eugenia Loli-Queru (Eugenia) - Friday, 30 June 2006, 07:57 GMT
also,
[eugenia@vaio ~]$ revelation
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "/opt/gnome/bin/revelation", line 25, in ?
import gnome, gobject, gtk, gtk.gdk, os, pwd, sys
ImportError: No module named gnome
Comment by Jan de Groot (JGC) - Friday, 30 June 2006, 07:58 GMT
Looks like your python installation is foobar. Can you run any python app (try namcap on a package from the cache for example)?
Comment by Eugenia Loli-Queru (Eugenia) - Friday, 30 June 2006, 08:13 GMT
nope, it's not that.. i reinstalled python and didn't fix it...
[eugenia@vaio ~]$ python
'import site' failed; use -v for traceback
Python 2.4.3 (#1, May 29 2006, 22:23:40)

so, even python doesn't work correctly.. might be a path problem? other non-python apps don't have such problem though
Comment by Jan de Groot (JGC) - Friday, 30 June 2006, 08:19 GMT
could you run python -v as python says? It should display a list of imports and the warnings/errors that are encountered while loading them.
Comment by Eugenia Loli-Queru (Eugenia) - Saturday, 01 July 2006, 23:45 GMT
Attached. it was a really long list so it didn't fit completely in the terminal's memory. And the "python -v > python.txt" doesn't work, so this is a partial list. Please note that i have re-installed python as -Sf a few days ago again.
Comment by Jan de Groot (JGC) - Sunday, 02 July 2006, 08:22 GMT
Do you have weird .pth files installed in /usr/lib/python2.4/site-packages? I guess one of them is cauing a recursive loop.
Comment by Eugenia Loli-Queru (Eugenia) - Sunday, 02 July 2006, 20:15 GMT
Indeed, it was gnome-common.pth that had the bug (it was including the python path recursively). I believe this file comes with the gnome-common package, so please have a look...
After I renamed that file, the problems went away.
Comment by Jan de Groot (JGC) - Sunday, 02 July 2006, 20:23 GMT
Hmm, next question: do you have any pth files in /opt/gnome/lib/python2.4/site-packages?

And about the gnome-common.pth file in /usr/lib/../site-packages:
does it contain something different than this line?:
import site; site.addsitedir("/opt/gnome/lib/python2.4/site-packages")
Comment by Eugenia Loli-Queru (Eugenia) - Sunday, 02 July 2006, 20:50 GMT
>do you have any pth files in /opt/gnome/lib/python2.4/site-packages?

Yes, I have Numeric.pth, dbus, pygst, pygtk and wx.

>does it contain something different than this line?:

No. It contains just this line. Renaming away that file fixes my problem.

Please note though that I have a Numeric, pygst and pygtk .pth files also on /usr/lib/python2.4/site-packages/. It seems that these 3 files exist both on gnome's and on usr's python folders.
Comment by Jan de Groot (JGC) - Sunday, 02 July 2006, 22:00 GMT
Hmm, why did you make a symlink on your system between /usr/lib/python2.4/site-packages/ and /opt/gnome/lib/python2.4/site-packages? the pth file included in gnome-common makes sure the files in the /opt/gnome location are included by default. When you symlink these, python will do a recursive loop, including the same directory over and over
Comment by Eugenia Loli-Queru (Eugenia) - Sunday, 02 July 2006, 22:28 GMT
But, I didn't... :o
It could have been a third party pygtk app that did that during "make install"?

Is there a way to fix this now?
Comment by Jan de Groot (JGC) - Sunday, 02 July 2006, 22:37 GMT
yes, get rid of the symlink in /opt/gnome/lib/python2.4 and reinstall gnome-common. One thing you should notice: the programs that do install in /opt/gnome/lib/python2.4/site-packages now have their files installed in /usr/lib/python2.4/site-packages, which means these files will not be removed when upgrading to new versions of these programs. This will cause weird compatibility problems in the future which you should check before reporting bugs about them. The best way to find these is to grep through /var/lib/pacman/local for '/opt/gnome/lib/python2.4/' and make sure you remove their files from the /usr python sitedir.
Comment by arjan timmerman (blaasvis) - Sunday, 09 July 2006, 07:41 GMT
solved ?
Comment by Eugenia Loli-Queru (Eugenia) - Sunday, 09 July 2006, 16:43 GMT
yes, thanks

Loading...