Bug 869877 - [abrt] openbox-3.5.0-8.fc18: subprocess.py:1249:_execute_child:OSError: [Errno 2] No such file or directory
Summary: [abrt] openbox-3.5.0-8.fc18: subprocess.py:1249:_execute_child:OSError: [Errn...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: pyxdg
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e30e45bdabaef8e665478770e80...
: 871001 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-25 03:52 UTC by Simon A. Erat
Modified: 2012-11-27 05:17 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-11-27 05:17:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: environ (1.01 KB, text/plain)
2012-10-25 03:52 UTC, Simon A. Erat
no flags Details
File: dso_list (57 bytes, text/plain)
2012-10-25 03:52 UTC, Simon A. Erat
no flags Details
File: smolt_data (2.96 KB, text/plain)
2012-10-25 03:52 UTC, Simon A. Erat
no flags Details
File: core_backtrace (901 bytes, text/plain)
2012-10-25 03:52 UTC, Simon A. Erat
no flags Details


Links
System ID Private Priority Status Summary Last Updated
FreeDesktop.org 56426 0 None None None 2012-10-26 14:34:09 UTC

Description Simon A. Erat 2012-10-25 03:52:37 UTC
Version-Release number of selected component:
openbox-3.5.0-8.fc18

Additional info:
libreport version: 2.0.16
abrt_version:   2.0.15
cmdline:        /usr/bin/python /usr/libexec/openbox-xdg-menu applications
kernel:         3.6.1-1.fc18.x86_64

backtrace:
:subprocess.py:1249:_execute_child:OSError: [Errno 2] No such file or directory
:
:Traceback (most recent call last):
:  File "/usr/libexec/openbox-xdg-menu", line 97, in <module>
:    menu = xdg.Menu.parse(menufile)
:  File "/usr/lib/python2.7/site-packages/xdg/Menu.py", line 572, in parse
:    __parse(doc, filename, tmp["Root"])
:  File "/usr/lib/python2.7/site-packages/xdg/Menu.py", line 593, in __parse
:    __parseMenu(child, filename, parent)
:  File "/usr/lib/python2.7/site-packages/xdg/Menu.py", line 747, in __parseMenu
:    __parse(child, filename, m)
:  File "/usr/lib/python2.7/site-packages/xdg/Menu.py", line 657, in __parse
:    __parseKDELegacyDirs(filename, parent)
:  File "/usr/lib/python2.7/site-packages/xdg/Menu.py", line 893, in __parseKDELegacyDirs
:    universal_newlines=True).splitlines()
:  File "/usr/lib64/python2.7/subprocess.py", line 537, in check_output
:    process = Popen(stdout=PIPE, *popenargs, **kwargs)
:  File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
:    errread, errwrite)
:  File "/usr/lib64/python2.7/subprocess.py", line 1249, in _execute_child
:    raise child_exception
:OSError: [Errno 2] No such file or directory
:
:Local variables in innermost frame:
:errread: None
:c2pread: 9
:gc_was_enabled: True
:errwrite: None
:shell: False
:errpipe_write: 13
:executable: 'kde-config'
:close_fds: False
:self: <subprocess.Popen object at 0x1ebbb10>
:env: None
:cwd: None
:child_exception: OSError(2, 'No such file or directory')
:args: ['kde-config', '--path', 'apps']
:fd: None
:c2pwrite: 11
:data: 'cexceptions\nOSError\np0\n(I2\nS\'No such file or directory\'\np1\ntp2\nRp3\n(dp4\nS\'child_traceback\'\np5\nS\'Traceback (most recent call last):\\n  File "/usr/lib64/python2.7/subprocess.py", line 1201, in _execute_child\\n    os.execvp(executable, args)\\n  File "/usr/lib64/python2.7/os.py", line 344, in execvp\\n    _execvpe(file, args)\\n  File "/usr/lib64/python2.7/os.py", line 380, in _execvpe\\n    func(fullname, *argrest)\\nOSError: [Errno 2] No such file or directory\\n\'\np6\nsb.'
:creationflags: 0
:errpipe_read: 12
:preexec_fn: None
:p2cread: None
:startupinfo: None
:p2cwrite: None
:universal_newlines: True

Comment 1 Simon A. Erat 2012-10-25 03:52:41 UTC
Created attachment 633135 [details]
File: environ

Comment 2 Simon A. Erat 2012-10-25 03:52:43 UTC
Created attachment 633136 [details]
File: dso_list

Comment 3 Simon A. Erat 2012-10-25 03:52:45 UTC
Created attachment 633137 [details]
File: smolt_data

Comment 4 Simon A. Erat 2012-10-25 03:52:47 UTC
Created attachment 633138 [details]
File: core_backtrace

Comment 5 Othman Madjoudj 2012-10-25 11:08:40 UTC
I confirm this issue when updating pyxdg to 0.23-1, and it reproducible when trying to generate the 'Applications' menu in Openbox (seems like an API change in pyxdg or a bug).

Temp. fix is to downgrade pyxdg to 0.19-4

Comment 6 Miroslav Lichvar 2012-10-25 14:04:08 UTC
This does indeed look like a bug in the new pyxdg. It seems to call "kde-config" for the <KDELegacyDirs/> in applications.menu and it doesn't catch the exception when kde-config is not installed.

Comment 7 Tom "spot" Callaway 2012-10-26 14:34:09 UTC
Filed upstream, patch written, update coming!

Comment 8 Fedora Update System 2012-10-26 14:49:23 UTC
pyxdg-0.23-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/pyxdg-0.23-2.fc18

Comment 9 Fedora Update System 2012-10-26 14:49:34 UTC
pyxdg-0.23-2.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/pyxdg-0.23-2.fc17

Comment 10 Fedora Update System 2012-10-26 19:32:20 UTC
Package pyxdg-0.23-2.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing pyxdg-0.23-2.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-16878/pyxdg-0.23-2.fc18
then log in and leave karma (feedback).

Comment 11 Sinan H 2012-10-28 12:32:44 UTC
this fixes execute_child:OSError, but I'm now getting Unicode errors as mentioned in Bug 799663 ...

Comment 12 Miroslav Lichvar 2012-10-29 11:50:19 UTC
*** Bug 871001 has been marked as a duplicate of this bug. ***

Comment 13 Fedora Update System 2012-11-07 15:53:24 UTC
pyxdg-0.24-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/pyxdg-0.24-1.fc18

Comment 14 Fedora Update System 2012-11-27 05:17:03 UTC
pyxdg-0.24-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.