Posts: 27
benji
Joined: 10 Nov 2008
#1
Please help me to solve this:
the applications submenu becomes empty when I install a new application or click on auto update.
From terminal I got this:

***@antiX2:~$ icewm_menu2.sh
Traceback (most recent call last):
File"/home/***/.icewm/icemenuyap2.py", line 30, in <module>
import gconf,os,sys,random,mimetypes,glob
ImportError: /usr/lib/pymodules/python2.5/gtk-2.0/gconf.so: undefined symbol: gconf_unset_flags_get_type

I don't dare to reinstall gconf2, because it would pull so many important things with itself.

Thanks in advance.
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#2
This can be due to Python 2.5 being replaced by Python 2.6 in Sid (Debian unstable). If so, not only this but all things python related may not work properly.
Have you the Sid repos enabled? If you did, the best way to update the system is with smxi because it warns about these things and also put the 'problematic' packages on hold.
You could maybe run smxi and see the alert message about that, then note the affected packages, purge them and then install the testing versions for them. As an example, if the affected package is python-2.6, then you would do
apt-get purge python-2.6
apt-get install -t testing python-2.6

If instead you have just normal Debian testing repos enabled then it can be something else.
Posts: 27
benji
Joined: 10 Nov 2008
#3
Thanks secipolla,
unfortunally It's something else, I've never used unstable repos...
But both python2.5 and 2.6 are installed (there is an /usr/lib/python2.6 folder), I purged 2.6 and tried menu update, unsuccessfully.
Then
apt-get install -t testing python-2.6

No change, menu update still doesn't work.

(dist-upgrade with smxi didn't give alerts or errors (except a wicd related one, this is another problem))
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#4
Just to make sure your ~/.icewm/icemenuyap2.py is correct, you may compare it with the one in /etc/skel/.icewm.
Otherwise you may re-install python-gconf
apt-get purge python-gconf
apt-get install python-gconf
But do this outside icewm so the current running system doesn't affect things. Reboot to level 3 or from the slim login screen enter exit in the username field. Then after you finish,to log to icewm, run
/etc/init.d/slim start

smxi didn't give any alert because you're using just testing repos.
Posts: 27
benji
Joined: 10 Nov 2008
#5
Still broken.

As a temporary workaround I can change the ~/.icewm/application owner to root, so it can't be overwriten with an empty file.
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#6
If it's something gconf related maybe another try would be to delete ~/.gconf/%gconf.xml and ~/.gconfd (but then logout and login for it to have any effect).
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#7
benji, which version of antiX are you using?

inxi -F
Posts: 27
benji
Joined: 10 Nov 2008
#8
@secipolla: there are no ~/.gconf/%gconf.xml and ~/.gconfd,
only ~/.gconf/apps/%gconf.xml and ~/.gconf/desktop/%gconf.xml, maybe this is the problem?

@anti: Kernel 2.6.32-1-mepis-smp i686 (32 bit) Distro antiX-M8.5 Marek Edelman 11 April 2010
CPU: Single core Intel Pentium M (UP) cache 1024 KB flags (sse sse2) bmips 2798.99 clocked at 1400.00 MHz
Graphics: Card ATI Radeon Mobility M7 LW [Radeon Mobility 7500] X.Org 1.7.7 Res: 1024x768@60.0hz

It's a compaq evo n620c laptop.

And thank you for your efforts.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#9
I have seen this before.

Does auto update work in fluxbox?

If it does, then delete the application file and the icemenuyap2.py file from ~/.icewm then

cp /usr/share/antiX/localisation/en/icewm/icemenuyap2.py /home/yourusername/.icewm

Logout and login and see if the applications section has regenerated a new menu.
Posts: 27
benji
Joined: 10 Nov 2008
#10
Failed in fluxbox, too.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#11
Try the above in both fluxbox and icewm.
Posts: 27
benji
Joined: 10 Nov 2008
#12
I tried, deleted the application file, the icemenuyap2.py (or applications and gnome2fluxmenu4.py in fluxbox) copied them back from /usr/share/antiX/localisation/en/... logout login to the other wm,
new application files were generated, but they are empty in both cases.
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#13
The file /usr/lib/pymodules/python2.5/gtk-2.0/gconf.so is a link to a file from python-gconf. Since you already re-installed it then maybe your home configuration can be remembering the error. You could examine the ~/.gconf and ~/.gconfd directories and delete the general configuration file(s) keeping of course the application specific files so you don't lose their setup. Then logout-login (sometimes logout-login isn't enough to 'reset' some things so maybe has to reboot).
This is just an hypotheses,though.
Posts: 27
benji
Joined: 10 Nov 2008
#14
Well, thanks secipolla, but it didn't work either.
I even created a new user, but the Applications submenu is broken, and now I remember that it was broken when I installed AntiX 8.5 a few months ago, too. I had to copy the application file from my other pc and give the owner rights to root.
This misterious problem seems pretty unique and unreproducable, leastways I didn't find anything useful on the internet. Maybe somthings wrong with this hardware.
Not a big deal, I will edit the menu manually.

Have a nice day!
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#15
Just saying, but since it was broken when you installed antiX then almost for sure you have a corrupt installation. Like you could check that easily by running a (md5sum verified) live-cd.