You are not logged in.

#1 2009-09-17 02:37:33

earthpig
Member
Registered: 2009-03-24
Posts: 30

Python errors when running alacarte...

hi. system is up to date.

python version:

[chris: ~]$ python -V
Python 2.6.2

when i run alacarte, it starts fine.

when i try to view the properties of any item or do pretty much anything, it does nothing and i get this error:

[chris: ~]$ alacarte
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/Alacarte/MainWindow.py", line 375, in on_edit_properties_activate
    process = subprocess.Popen(['gnome-desktop-item-edit', file_path], env=os.environ)
  File "/usr/lib/python2.6/subprocess.py", line 595, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1092, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
[chris: ~]$

does anyone have any suggestions?

Offline

#2 2009-09-17 02:41:23

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Python errors when running alacarte...

What does this say:

$ which python

~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#3 2009-09-17 02:42:58

earthpig
Member
Registered: 2009-03-24
Posts: 30

Re: Python errors when running alacarte...

[chris: ~]$ which python
/usr/bin/python

Offline

#4 2009-09-17 17:23:09

earthpig
Member
Registered: 2009-03-24
Posts: 30

Re: Python errors when running alacarte...

bump

Offline

#5 2009-09-17 18:15:21

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Python errors when running alacarte...

Do you have a gnome-desktop-item-edit  command on your system?
Edit: should be provided by gnome-panel

Last edited by Mr.Elendig (2009-09-17 18:15:51)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2009-09-17 18:19:08

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Python errors when running alacarte...

Try reinstalling python. Do a pacman -Syu as well

Last edited by sHyLoCk (2009-09-17 18:19:53)


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#7 2009-09-17 18:26:22

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Python errors when running alacarte...

Reinstalling python will achive nothing in this case.
subprocess.Popen is returning "file not found" because it can't find the command given.

example:

 
>>> subprocess.Popen(['ls'])
<subprocess.Popen object at 0x1ba7c10>
>>>
>>> subprocess.Popen(['thiscommanddontexist'])
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/usr/lib/python2.6/subprocess.py", line 595, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1092, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Last edited by Mr.Elendig (2009-09-17 18:27:23)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#8 2009-09-17 19:55:50

earthpig
Member
Registered: 2009-03-24
Posts: 30

Re: Python errors when running alacarte...

Mr.Elendig wrote:

Do you have a gnome-desktop-item-edit  command on your system?
Edit: should be provided by gnome-panel

i don't have gnome-panel installed. gnome-panel and lxpanel are both freedesktop.org compliant, alacarte works with it... well, it did for a while. im not sure what i did to break it. neither python nor alacarte have been updated by -Syu lately.

updated system again, and reinstalled python:

...
warning: python-2.6.2-5 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): python-2.6.2-5  

Total Download Size:    15.24 MB
Total Installed Size:   63.03 MB

Proceed with installation? [Y/n] y
...

did same with alacarte:

...
warning: alacarte-0.12.1-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): alacarte-0.12.1-1  

Total Download Size:    0.12 MB
Total Installed Size:   1.34 MB

Proceed with installation? [Y/n] y
...

problem remains.

Offline

#9 2009-09-17 22:00:36

linkmaster03
Member
Registered: 2008-12-27
Posts: 269

Re: Python errors when running alacarte...

You need to install gnome-panel. Alacarte is trying to execute the command "gnome-desktop-item-edit" in a shell, and it is throwing the exception because it cannot find "gnome-desktop-item-edit".

Offline

#10 2009-09-17 22:03:47

FrozenFox
Member
From: College Station, TX
Registered: 2008-03-23
Posts: 422
Website

Re: Python errors when running alacarte...

Awesome, ty. I was actually going to try to figure out what dependency was missing myself at some point, as it worked when I had the gnome and gnome-extra groups installed, but not when I removed most of it for E17.

Perhaps a missing dependency bug should be filed? If nobody else is going to, I will wink.

EDIT: I posted a bug report.

http://bugs.archlinux.org/task/16251

Last edited by FrozenFox (2009-09-18 21:51:28)

Offline

#11 2009-09-18 20:28:19

earthpig
Member
Registered: 2009-03-24
Posts: 30

Re: Python errors when running alacarte...

thanks! adding gnome-panel worked.

alacarte worked as well as it did before: i can use it to add menu items, but not remove them.

edit: i was gong to complain about the 12mb long list of dependencies that pacman brought with gnome-panel... but then i just checked on my ubuntu computer, and they have 47mb of stuff.

so, i will count my blessings, be grateful to the folks that make Arch happen, and wait for LXDE to release its own optional GUI menu editor big_smile

and, if LXDE follows its own pattern of small/smart/modular/standards-compliant, the LXDE menu editor will probably serve as a drop-in replacement for both xfce and gnome...

Last edited by earthpig (2009-09-18 20:33:14)

Offline

Board footer

Powered by FluxBB