Bug 1654857 - [abrt] openbox: post_parse(): Menu.py:997:post_parse:AttributeError: 'MenuEntry' object has no attribute 'Type'
Summary: [abrt] openbox: post_parse(): Menu.py:997:post_parse:AttributeError: 'MenuEnt...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pyxdg
Version: 29
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:b03d46d6d2b4357d6b354cd9a10...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-29 20:24 UTC by Isaque Galdino
Modified: 2018-12-02 08:27 UTC (History)
6 users (show)

Fixed In Version: pyxdg-0.26-3.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-12-02 08:27:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.39 KB, text/plain)
2018-11-29 20:25 UTC, Isaque Galdino
no flags Details
File: cgroup (349 bytes, text/plain)
2018-11-29 20:25 UTC, Isaque Galdino
no flags Details
File: cpuinfo (1.60 KB, text/plain)
2018-11-29 20:25 UTC, Isaque Galdino
no flags Details
File: environ (3.56 KB, text/plain)
2018-11-29 20:25 UTC, Isaque Galdino
no flags Details
File: mountinfo (3.73 KB, text/plain)
2018-11-29 20:25 UTC, Isaque Galdino
no flags Details
File: namespaces (129 bytes, text/plain)
2018-11-29 20:25 UTC, Isaque Galdino
no flags Details
File: open_fds (777 bytes, text/plain)
2018-11-29 20:25 UTC, Isaque Galdino
no flags Details

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.


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