Dependency problem: alacarte crashes on 'New Item' with OSError because gnome-desktop-item-edit not found

Bug #826049 reported by Anthony Harrington
162
This bug affects 36 people
Affects Status Importance Assigned to Milestone
Alacarte Menu Editor
New
Critical
alacarte (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

alacarte calls /usr/bin/gnome-desktop-item-edit in a subprocess in order to install new menu items. However, /usr/bin/gnome-desktop-item-edit is in the gnome-panel package, which is only a Recommends: for the alacarte package rather than marked as a true dependency. People who have not installed gnome-panel will thus not be able to use core Alacarte functionality.

Symptoms:
If you run alacarte from the command line, you will see an error like this when you click on "New Item":
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 311, in on_new_item_button_clicked
    process = subprocess.Popen(['gnome-desktop-item-edit', file_path], env=os.environ)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1239, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

If you run alacarte from a menu, you will simply find that when you click "New Item" nothing happens: no dialog box for the item appears.

Workaround: install gnome-panel through your package manager

Fix: three possibilities:
(1) alacarte should depend on gnome-panel
(2) gnome-desktop-item-edit program should be in the alacarte package
(3) gnome-desktop-item-edit program should be in some third package, on which alacarte should in turn depend

Original description:

Crashed while trying to make a new item in main menu and would not create new item.

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: alacarte 0.13.2-2ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-8.10-generic 3.0.1
Uname: Linux 3.0.0-8-generic x86_64
Architecture: amd64
Date: Sun Aug 14 00:15:20 2011
ExecutablePath: /usr/bin/alacarte
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python -OOt /usr/bin/alacarte
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/alacarte']
SourcePackage: alacarte
Title: alacarte crashed with OSError in _execute_child(): [Errno 2] No such file or directory
UpgradeStatus: Upgraded to oneiric on 2011-08-12 (0 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Anthony Harrington (linuxchemist) wrote :
visibility: private → public
Revision history for this message
Pedro Villavicencio (pedro) wrote :

I cannot reproduce it here, may you please add some steps so we can recreate the crash? Thanks.

Changed in alacarte (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Anthony Harrington (linuxchemist) wrote :

Sure - i went to the "Ubuntu start" icon and went to "Main menu".

With "Main menu" open, click "New item".
A few seconds will pass and it will report that Main menu has crashed; a new menu item is not created.

Still reproducable here.

Revision history for this message
Anthony Harrington (linuxchemist) wrote :

Strange....after today's updates, when i try to reproduce this - nothing happens. No error but also no new menu item created?

Revision history for this message
Anthony Harrington (linuxchemist) wrote :

Scratch that - back to crashing again :(

Revision history for this message
Anthony Harrington (linuxchemist) wrote :

ant@Master-ant:~$ alacarte
Traceback (most recent call last):
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 311, in on_new_item_button_clicked
    process = subprocess.Popen(['gnome-desktop-item-edit', file_path], env=os.environ)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1239, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Hope this helps.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for the comments. this has been sent upstream at https://bugzilla.gnome.org/show_bug.cgi?id=656821, feel free to subscribe to it. Thanks again.

Changed in alacarte (Ubuntu):
status: Incomplete → Triaged
Changed in alacarte:
importance: Unknown → Critical
status: Unknown → New
Revision history for this message
Apport retracing service (apport) wrote : This bug is a duplicate

Thank you for taking the time to report this crash and helping to make Ubuntu better. This particular crash has already been reported and is a duplicate of bug #756513, so is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Please continue to report any other bugs you may find.

tags: removed: need-duplicate-check
Revision history for this message
LaChild (shafer-w2002) wrote : Re: alacarte crashed with OSError in _execute_child(): [Errno 2] No such file or directory

I was having the same problem using Xubuntu after I installed this package. This happened even after installing straight from source from the gnome site.

What I found is that it appears that the alacarte package is actually dependency on package gnome-panel. Simply installing gnome-panel it fixed this problem.

Hope this helps,
lachild

PS. I installed all the dependencies from gnome-panel one at a time to see if maybe you just needed something from one of gnome-panels dependents... Unfortunately it did actually need gnome-panel and all of it's dependents to work correctly.

Revision history for this message
Manuel Andrade (manuel-andradest) wrote :

I just was trying to view the properties of an item of the menu, and voilà it crashed!

Revision history for this message
Matthias Schmidt (mschmidt) wrote :

Same as with #10. Viewing properties triggered the bug here.

Revision history for this message
Steven Kuck (skuck71) wrote :

I am Using 11.10 and trying to view properties crashed alacarte.
This is the output that appear when I click properties:
me@computer:~$ alacarte
Traceback (most recent call last):
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 382, in on_edit_properties_activate
    process = subprocess.Popen(['gnome-desktop-item-edit', file_path], env=os.environ)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1239, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Revision history for this message
Colin Church (colnton3) wrote :

Same as 10 and 11 . Tried to view properties and crash notification occurred but main menu stayed open and was useable except properties.

Revision history for this message
Rishikanta Pukhrambam (rishikantaet) wrote :

It's working for me now on Oneiric, after an update few days back.

Revision history for this message
Adnan Hodzic (fooctrl) wrote :

I too have this problem when trying to view properties of an item, Oneiric (freshly updated)

Revision history for this message
haight6716 (e-launchpad-a-julianhaight-com) wrote :

Just got Oneiric release and still see this problem.

Revision history for this message
Mary Gardiner (puzzlement) wrote :

The problem is that alacarte calls /usr/bin/gnome-desktop-item-edit in a subprocess in order to install new menu items. However, /usr/bin/gnome-desktop-item-edit is in the gnome-panel package, which is only a Recomends: for the alacarte package rather than marked as a true dependency.

Workaround: install gnome-panel through your package manager

Fix: three possibilities:
(1) alacarte should depend on gnome-panel
(2) gnome-desktop-item-edit program should be in the alacarte package
(3) gnome-desktop-item-edit program should be in some third package, on which alacarte should in turn depend

I'll update the bug description accordingly.

summary: - alacarte crashed with OSError in _execute_child(): [Errno 2] No such
- file or directory
+ alacarte crashed with OSError because gnome-desktop-item-edit not found
description: updated
summary: - alacarte crashed with OSError because gnome-desktop-item-edit not found
+ Dependency problem: alacarte crashed with OSError because gnome-desktop-
+ item-edit not found
description: updated
summary: - Dependency problem: alacarte crashed with OSError because gnome-desktop-
- item-edit not found
+ Dependency problem: alacarte crashes on 'New Item' with OSError because
+ gnome-desktop-item-edit not found
Revision history for this message
Yuval S (yuval-s) wrote :
Download full text (4.1 KiB)

Confirmed on 11.10

Here's the gist:
user@comp:~/.local/share/applications$ alacarte
* pressed New Item *
Traceback (most recent call last):
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 311, in on_new_item_button_clicked
    process = subprocess.Popen(['gnome-desktop-item-edit', file_path], env=os.environ)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1239, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
^CTraceback (most recent call last):
  File "/usr/bin/alacarte", line 37, in <module>
    main()
  File "/usr/bin/alacarte", line 34, in main
    app.run()
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 76, in run
    gtk.main()
KeyboardInterrupt
user@comp:~/.local/share/applications$ sudo alacarte
[sudo] password for user:
* pressed New Item *
Traceback (most recent call last):
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 311, in on_new_item_button_clicked
    process = subprocess.Popen(['gnome-desktop-item-edit', file_path], env=os.environ)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1239, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
user@comp:~/.local/share/applications$ sudo apt-get install gnome-panelReading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  gir1.2-panelapplet-4.0 gnome-applets gnome-session-fallback
  libpanel-applet-4-0
Suggested packages:
  gnome-netstatus-applet deskbar-applet cpufrequtils epiphany-browser
  desktop-base
The following NEW packages will be installed:
  gir1.2-panelapplet-4.0 gnome-applets gnome-panel gnome-session-fallback
  libpanel-applet-4-0
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 701 kB of archives.
After this operation, 2,765 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://mirror.isoc.org.il/pub/ubuntu/ oneiric/universe libpanel-applet-4-0 i386 1:3.2.0-0ubuntu1 [93.2 kB]
Get:2 http://mirror.isoc.org.il/pub/ubuntu/ oneiric/universe gir1.2-panelapplet-4.0 i386 1:3.2.0-0ubuntu1 [5,004 B]
Get:3 http://mirror.isoc.org.il/pub/ubuntu/ oneiric/universe gnome-panel i386 1:3.2.0-0ubuntu1 [422 kB]
Get:4 http://mirror.isoc.org.il/pub/ubuntu/ oneiric/universe gnome-applets i386 3.2.0-0ubuntu1 [175 kB]
Get:5 http://mirror.isoc.org.il/pub/ubuntu/ oneiric-updates/universe gnome-session-fallback all 3.2.1-0ubuntu1.1 [5,028 B]
Fetched 701 kB in 2s (275 kB/s)
Selecting previously deselected package libpanel-applet-4-0.
(Reading database ... 738169 files and directories currently installed.)
Unpacking libpanel-applet-4-0 (from .../libpanel-applet-4-0_1%3a3.2.0-0ubuntu1_i386.deb) ...
Selecting previously deselected package gir1.2-panelapplet-4.0.
Unpacking gir1.2-panelapplet-4.0 (from .../gir1.2-panelapplet-4.0_1%3a3.2.0-0ubuntu1_i386.deb) ...
Selecting previously deselected package gnome-panel.
Unpacking gnome-panel (from .../gnome-panel_1%3a...

Read more...

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.