Bug 1654857

Summary: [abrt] openbox: post_parse(): Menu.py:997:post_parse:AttributeError: 'MenuEntry' object has no attribute 'Type'
Product: [Fedora] Fedora Reporter: Isaque Galdino <igaldino>
Component: pyxdgAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: christoph.wickert, igaldino, mlichvar, sindrepb, splinux25, tcallawa
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/ad57de4083557947b56d8008bf6e2f8220089c80
Whiteboard: abrt_hash:b03d46d6d2b4357d6b354cd9a104e81517d1c930;VARIANT_ID=workstation;
Fixed In Version: pyxdg-0.26-3.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-02 08:27:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Isaque Galdino 2018-11-29 20:24:56 UTC
Description of problem:
I clicked on "Applications" in root-menu.

Version-Release number of selected component:
openbox-3.6.1-10.fc29

Additional info:
reporter:       libreport-2.9.6
cmdline:        /usr/bin/python3 /usr/libexec/openbox-xdg-menu applications
crash_function: post_parse
exception_type: AttributeError
executable:     /usr/libexec/openbox-xdg-menu
interpreter:    python3-3.7.1-4.fc29.x86_64
kernel:         4.19.3-300.fc29.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
Menu.py:997:post_parse:AttributeError: 'MenuEntry' object has no attribute 'Type'

Traceback (most recent call last):
  File "/usr/libexec/openbox-xdg-menu", line 103, in <module>
    menu = xdg.Menu.parse(menufile)
  File "/usr/lib/python3.7/site-packages/xdg/Menu.py", line 1128, in parse
    return XMLMenuBuilder(debug).parse(filename)
  File "/usr/lib/python3.7/site-packages/xdg/Menu.py", line 637, in parse
    self.post_parse(menu)
  File "/usr/lib/python3.7/site-packages/xdg/Menu.py", line 983, in post_parse
    self.post_parse(submenu)
  File "/usr/lib/python3.7/site-packages/xdg/Menu.py", line 983, in post_parse
    self.post_parse(submenu)
  File "/usr/lib/python3.7/site-packages/xdg/Menu.py", line 983, in post_parse
    self.post_parse(submenu)
  File "/usr/lib/python3.7/site-packages/xdg/Menu.py", line 997, in post_parse
    elif menuentry.Type == MenuEntry.TYPE_SYSTEM:
AttributeError: 'MenuEntry' object has no attribute 'Type'

Local variables in innermost frame:
self: <xdg.Menu.XMLMenuBuilder object at 0x7fe59c8e3cf8>
menu: <xdg.Menu.Menu object at 0x7fe59c8f90f0>
submenu: <xdg.Menu.Menu object at 0x7fe59c8f92e8>
directory: '/home/isaque/IBM/WebSphere/AppServer/profiles/AppSrv01/properties/linuxMenu/directories/Profiles.directory'
dir: '/usr/share/desktop-directories'
menuentry: -home-isaque-IBM-WebSphere-AppServer-profiles-AppSrv01-properties-linuxMenu-directories-Profiles.directory

Comment 1 Isaque Galdino 2018-11-29 20:25:02 UTC
Created attachment 1509956 [details]
File: backtrace

Comment 2 Isaque Galdino 2018-11-29 20:25:04 UTC
Created attachment 1509957 [details]
File: cgroup

Comment 3 Isaque Galdino 2018-11-29 20:25:05 UTC
Created attachment 1509958 [details]
File: cpuinfo

Comment 4 Isaque Galdino 2018-11-29 20:25:07 UTC
Created attachment 1509959 [details]
File: environ

Comment 5 Isaque Galdino 2018-11-29 20:25:08 UTC
Created attachment 1509960 [details]
File: mountinfo

Comment 6 Isaque Galdino 2018-11-29 20:25:10 UTC
Created attachment 1509961 [details]
File: namespaces

Comment 7 Isaque Galdino 2018-11-29 20:25:11 UTC
Created attachment 1509962 [details]
File: open_fds

Comment 8 Miroslav Lichvar 2018-11-30 13:22:06 UTC
What release is the pyxdg package? Is it pyxdg-0.26-2.fc29?

Comment 9 Isaque Galdino 2018-11-30 13:39:27 UTC
(In reply to Miroslav Lichvar from comment #8)
> What release is the pyxdg package? Is it pyxdg-0.26-2.fc29?

Yep, that's the version I'm using.

Comment 10 Miroslav Lichvar 2018-11-30 13:42:17 UTC
Ok. It might be a different bug in pyxdg.

Comment 11 Tom "spot" Callaway 2018-11-30 16:27:36 UTC
Can you give me a copy of the output of:

/usr/bin/python3 /usr/libexec/openbox-xdg-menu applications

Comment 12 Isaque Galdino 2018-11-30 16:44:01 UTC
Sure:

 isaque  ~  /usr/bin/python3 /usr/libexec/openbox-xdg-menu applications
Traceback (most recent call last):
  File "/usr/libexec/openbox-xdg-menu", line 103, in <module>
    menu = xdg.Menu.parse(menufile)
  File "/usr/lib/python3.7/site-packages/xdg/Menu.py", line 1128, in parse
    return XMLMenuBuilder(debug).parse(filename)
  File "/usr/lib/python3.7/site-packages/xdg/Menu.py", line 637, in parse
    self.post_parse(menu)
  File "/usr/lib/python3.7/site-packages/xdg/Menu.py", line 983, in post_parse
    self.post_parse(submenu)
  File "/usr/lib/python3.7/site-packages/xdg/Menu.py", line 983, in post_parse
    self.post_parse(submenu)
  File "/usr/lib/python3.7/site-packages/xdg/Menu.py", line 983, in post_parse
    self.post_parse(submenu)
  File "/usr/lib/python3.7/site-packages/xdg/Menu.py", line 997, in post_parse
    elif menuentry.Type == MenuEntry.TYPE_SYSTEM:
AttributeError: 'MenuEntry' object has no attribute 'Type'

Comment 14 Isaque Galdino 2018-11-30 17:07:43 UTC
Yep, it worked, thank you! And thanks for the quick reply too! Amazing job! Wow, that's a lot of exclamation marks! But you deserve them!

Comment 15 Fedora Update System 2018-11-30 17:52:25 UTC
pyxdg-0.26-3.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-7339f61610

Comment 16 Fedora Update System 2018-12-01 02:43:30 UTC
pyxdg-0.26-3.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-7339f61610

Comment 17 Fedora Update System 2018-12-02 08:27:41 UTC
pyxdg-0.26-3.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.