Bug 831844 - [abrt] alacarte-0.13.4-4.fc17: MenuEditor.py:145:getItems:AttributeError: 'TreeIter' object has no attribute 'get_separator'
Summary: [abrt] alacarte-0.13.4-4.fc17: MenuEditor.py:145:getItems:AttributeError: 'Tr...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: alacarte
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jasper St. Pierre
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:d500eed95f48bf8697401702ea9...
: 861473 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-13 21:34 UTC by Christophe GERARDIN
Modified: 2014-08-27 02:58 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-01 02:00:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Christophe GERARDIN 2012-06-13 21:34:36 UTC
libreport version: 2.0.10
abrt_version:   2.0.10
cmdline:        /usr/bin/python2.7 -OOt /bin/alacarte
executable:     /bin/alacarte
kernel:         3.4.0-1.fc17.x86_64
time:           mer. 13 juin 2012 23:33:13 CEST
uid:            1000
username:       cgerardin

backtrace:
:MenuEditor.py:145:getItems:AttributeError: 'TreeIter' object has no attribute 'get_separator'
:
:Traceback (most recent call last):
:  File "/bin/alacarte", line 36, in <module>
:    main()
:  File "/bin/alacarte", line 33, in main
:    app.run()
:  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 64, in run
:    self.loadMenus()
:  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 203, in loadMenus
:    self.on_menu_tree_cursor_changed(menu_tree)
:  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 354, in on_menu_tree_cursor_changed
:    self.loadItems(self.menu_store[menu_path][2], menu_path)
:  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 217, in loadItems
:    for item, show in self.editor.getItems(menu):
:  File "/usr/lib/python2.7/site-packages/Alacarte/MenuEditor.py", line 145, in getItems
:    item = item_iter.get_separator()
:AttributeError: 'TreeIter' object has no attribute 'get_separator'
:
:Local variables in innermost frame:
:item_type: <enum GMENU_TREE_ITEM_SEPARATOR of type TreeItemType>
:self: <Alacarte.MenuEditor.MenuEditor object at 0x1316fd0>
:item_iter: <GMenuTreeIter at 0x1495e80>
:menu: <GMenuTreeDirectory at 0x135f6a0>

Comment 1 Jasper St. Pierre 2012-06-13 21:38:54 UTC
We need an updated gnome-menus here.

Comment 2 Joe Zeff 2012-06-15 19:33:23 UTC
I've been waiting for months for the gemu bug to be fixed, so when I saw an update to alacarte, I was eager to try it.  Alas, it now crashes with this bug.  And, when abrt tried to search for duplicates, it reported fatal: XML-RPC(0): (null) and exited 1.

Comment 3 Pavel Roskin 2012-06-25 05:26:25 UTC
(In reply to comment #1)
> We need an updated gnome-menus here.

Then the bug needs to be changed to apply to gnome-menus.  gnome-menus should provide functionality used by alacarte.

I was able to rebuild gnome-menus with the patch from https://bugzilla.gnome.org/show_bug.cgi?id=677344

With the fixed gnome-menus, alacarte actually shows its window.  It's still useless though.

Comment 4 Vedran Krivokuca 2012-07-29 07:42:58 UTC
Still the problem in FC17.

Package: alacarte-0.13.4-4.fc17
OS Release: Fedora release 17 (Beefy Miracle)

Comment 5 jackbm633 2012-08-05 08:18:43 UTC
I was launching Alacarte by right clicking on the XFCE Applications menu, then Properties, then Edit Menu. The programme crashed after that.

Package: alacarte-0.13.4-4.fc17
Architecture: i686
OS Release: Fedora release 17 (Beefy Miracle)

Comment 6 Sid Hymes 2012-08-16 18:21:48 UTC
Attempting to edit menus to remove duplicate entries.

Package: alacarte-0.13.4-4.fc17
OS Release: Fedora release 17 (Beefy Miracle)

Comment 7 Michael Keane 2012-08-23 18:36:53 UTC
Edit Menu then select any Menu Item that contains Separators

Package: alacarte-0.13.4-4.fc17
Architecture: i686
OS Release: Fedora release 17 (Beefy Miracle)

Comment 8 adam2 2012-09-25 14:59:20 UTC
Ran alacarte from command-line:
[afan@quail ~]$ alacarte 
Traceback (most recent call last):
  File "/usr/bin/alacarte", line 36, in <module>
    main()
  File "/usr/bin/alacarte", line 33, in main
    app.run()
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 64, in run
    self.loadMenus()
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 203, in loadMenus
    self.on_menu_tree_cursor_changed(menu_tree)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 354, in on_menu_tree_cursor_changed
    self.loadItems(self.menu_store[menu_path][2], menu_path)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 217, in loadItems
    for item, show in self.editor.getItems(menu):
  File "/usr/lib/python2.7/site-packages/Alacarte/MenuEditor.py", line 145, in getItems
    item = item_iter.get_separator()
AttributeError: 'TreeIter' object has no attribute 'get_separator'
[afan@quail ~]$ 


Package: alacarte-0.13.4-4.fc17
OS Release: Fedora release 17 (Beefy Miracle)

Comment 9 Pavel Roskin 2012-09-25 21:38:16 UTC
How long would it take to fix gnome-menus to support another Fedora package?  Should we open a separate bug for gnome-menus?  If we had a library in C that didn't provide symbols for another Fedora package, it would have been fixed in no time.  But nobody seems to care about missing functions at the runtime.  <rant>IMHO the lax attitude towards missing functions is the biggest problem with interpreted languages.  The language interpreter may be OK with it, but the developers and the package maintainers should not be!</rant>

Comment 10 Jasper St. Pierre 2012-09-25 21:39:47 UTC
I maintain both gnome-menus and alacarte.

It's been fixed upstream for a long time, and the new package has been in F18. I can push an update to F17 if you would like.

Comment 11 Pavel Roskin 2012-09-26 02:26:17 UTC
Since this bug (or limitation or whatever) in gnome-menus makes another Fedora package completely useless (even if other things make is useless too), I believe it should be fixed in all supported versions of Fedora (F16 and F17).  But I don't know what the Fedora policy says about that.

Comment 12 Jasper St. Pierre 2012-09-28 20:22:06 UTC
*** Bug 861473 has been marked as a duplicate of this bug. ***

Comment 13 J. William Cupp 2012-10-06 00:29:02 UTC
launch alacarte

Package: alacarte-0.13.4-4.fc17
OS Release: Fedora release 17 (Beefy Miracle)

Comment 14 wthkelly 2012-10-13 21:48:53 UTC
Using XFCE 4.8
Right click on the icon that opens the Applications menu
Click Properties
Click Edit Menu
Crash ensues without fail. 


Package: alacarte-0.13.4-4.fc16
OS Release: Fedora release 16 (Verne)

Comment 15 Tom 2012-11-28 21:38:13 UTC
Problem still exists in F17.

XFCE 4.8

Package: alacarte-0.13.4-4.fc17

$ alacarte
Traceback (most recent call last):
  File "/bin/alacarte", line 36, in <module>
    main()
  File "/bin/alacarte", line 33, in main
    app.run()
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 64, in run
    self.loadMenus()
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 203, in loadMenus
    self.on_menu_tree_cursor_changed(menu_tree)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 354, in on_menu_tree_cursor_changed
    self.loadItems(self.menu_store[menu_path][2], menu_path)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 217, in loadItems
    for item, show in self.editor.getItems(menu):
  File "/usr/lib/python2.7/site-packages/Alacarte/MenuEditor.py", line 145, in getItems
    item = item_iter.get_separator()
AttributeError: 'TreeIter' object has no attribute 'get_separator'

Comment 16 Jim Riggs 2012-12-10 00:54:04 UTC
Okay, this one is driving me crazy.. But found a work around here:

http://foobaring.blogspot.com/2012/09/alacarte-on-fedora-17.html

 1. open terminal
2. gedit /lib/python2.7/site-packages/Alacarte/MenuEditor.py
3. find the applications.menu on the text file.
4. replace it with applications-gnome.menu
5. save file
6. run alacarte by typing alacarte on the terminal

Changing that one line resovled the crash for me.  Alacarete now starts.

Comment 17 Tom 2012-12-10 01:18:30 UTC
Comment 16 fixed it for me, too.

Using F17, XFCE 4.8

Package: alacarte-0.13.4-4.fc17

Comment 18 Joe Zeff 2012-12-12 00:43:05 UTC
I'm currently using F16 and Xfce 4.8.  As written, the fix in Comment 16 failed because the path is wrong.  Searching found the file at /usr/lib/python2.7/site-packages/Alacarte/MenuEditor.py and I tried editing it.  Running Alacarte from a terminal now works, or at least, it doesn't crash.  However, when I exited it and checked my menus, they hadn't changed.  Possibly I need to log out and back in, but I've never needed to before.  And, the following errors were listed in the terminal:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 354, in on_menu_tree_cursor_changed
    self.loadItems(self.menu_store[menu_path][2], menu_path)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 218, in loadItems
    icon = util.getIcon(item)
  File "/usr/lib/python2.7/site-packages/Alacarte/util.py", line 151, in getIcon
    pixbuf = info.load_icon()
  File "/usr/lib/python2.7/site-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
gi._glib.GError: Error opening file: No such file or directory

As a final note, the Settings and Administration menus didn't seem to be available for editing.

Comment 19 Jim Riggs 2012-12-13 12:23:43 UTC
Yes, I noticed the same thing as Joe after I posted the fix I found.  The program runs, but the changes do not seem to be applied to the menu.  They show up when you run alacarte again, but are not being applied to the menu in XFCE.

Comment 20 Joe Zeff 2013-03-01 19:42:57 UTC
Now running F 17 with Xfce.  The fix still doesn't work.  Not only that, here's the output I get in the terminal:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 354, in on_menu_tree_cursor_changed
    self.loadItems(self.menu_store[menu_path][2], menu_path)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 218, in loadItems
    icon = util.getIcon(item)
  File "/usr/lib/python2.7/site-packages/Alacarte/util.py", line 151, in getIcon
    pixbuf = info.load_icon()
  File "/usr/lib/python2.7/site-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
gi._glib.GError: Error opening file: No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 69, in menuChanged
    self.loadUpdates()
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 106, in loadUpdates
    self.on_menu_tree_cursor_changed(menu_tree)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 354, in on_menu_tree_cursor_changed
    self.loadItems(self.menu_store[menu_path][2], menu_path)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 218, in loadItems
    icon = util.getIcon(item)
  File "/usr/lib/python2.7/site-packages/Alacarte/util.py", line 151, in getIcon
    pixbuf = info.load_icon()
  File "/usr/lib/python2.7/site-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
gi._glib.GError: Error opening file: No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 69, in menuChanged
    self.loadUpdates()
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 106, in loadUpdates
    self.on_menu_tree_cursor_changed(menu_tree)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 354, in on_menu_tree_cursor_changed
    self.loadItems(self.menu_store[menu_path][2], menu_path)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 218, in loadItems
    icon = util.getIcon(item)
  File "/usr/lib/python2.7/site-packages/Alacarte/util.py", line 151, in getIcon
    pixbuf = info.load_icon()
  File "/usr/lib/python2.7/site-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
gi._glib.GError: Error opening file: No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 69, in menuChanged
    self.loadUpdates()
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 106, in loadUpdates
    self.on_menu_tree_cursor_changed(menu_tree)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 354, in on_menu_tree_cursor_changed
    self.loadItems(self.menu_store[menu_path][2], menu_path)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 218, in loadItems
    icon = util.getIcon(item)
  File "/usr/lib/python2.7/site-packages/Alacarte/util.py", line 151, in getIcon
    pixbuf = info.load_icon()
  File "/usr/lib/python2.7/site-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
gi._glib.GError: Error opening file: No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 69, in menuChanged
    self.loadUpdates()
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 106, in loadUpdates
    self.on_menu_tree_cursor_changed(menu_tree)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 354, in on_menu_tree_cursor_changed
    self.loadItems(self.menu_store[menu_path][2], menu_path)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 218, in loadItems
    icon = util.getIcon(item)
  File "/usr/lib/python2.7/site-packages/Alacarte/util.py", line 151, in getIcon
    pixbuf = info.load_icon()
  File "/usr/lib/python2.7/site-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
gi._glib.GError: Error opening file: No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 69, in menuChanged
    self.loadUpdates()
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 106, in loadUpdates
    self.on_menu_tree_cursor_changed(menu_tree)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 354, in on_menu_tree_cursor_changed
    self.loadItems(self.menu_store[menu_path][2], menu_path)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 218, in loadItems
    icon = util.getIcon(item)
  File "/usr/lib/python2.7/site-packages/Alacarte/util.py", line 151, in getIcon
    pixbuf = info.load_icon()
  File "/usr/lib/python2.7/site-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
gi._glib.GError: Error opening file: No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 69, in menuChanged
    self.loadUpdates()
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 106, in loadUpdates
    self.on_menu_tree_cursor_changed(menu_tree)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 354, in on_menu_tree_cursor_changed
    self.loadItems(self.menu_store[menu_path][2], menu_path)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 218, in loadItems
    icon = util.getIcon(item)
  File "/usr/lib/python2.7/site-packages/Alacarte/util.py", line 151, in getIcon
    pixbuf = info.load_icon()
  File "/usr/lib/python2.7/site-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
gi._glib.GError: Error opening file: No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 69, in menuChanged
    self.loadUpdates()
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 106, in loadUpdates
    self.on_menu_tree_cursor_changed(menu_tree)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 354, in on_menu_tree_cursor_changed
    self.loadItems(self.menu_store[menu_path][2], menu_path)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 218, in loadItems
    icon = util.getIcon(item)
  File "/usr/lib/python2.7/site-packages/Alacarte/util.py", line 151, in getIcon
    pixbuf = info.load_icon()
  File "/usr/lib/python2.7/site-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
gi._glib.GError: Error opening file: No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 69, in menuChanged
    self.loadUpdates()
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 106, in loadUpdates
    self.on_menu_tree_cursor_changed(menu_tree)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 354, in on_menu_tree_cursor_changed
    self.loadItems(self.menu_store[menu_path][2], menu_path)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 218, in loadItems
    icon = util.getIcon(item)
  File "/usr/lib/python2.7/site-packages/Alacarte/util.py", line 151, in getIcon
    pixbuf = info.load_icon()
  File "/usr/lib/python2.7/site-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
gi._glib.GError: Error opening file: No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 354, in on_menu_tree_cursor_changed
    self.loadItems(self.menu_store[menu_path][2], menu_path)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 218, in loadItems
    icon = util.getIcon(item)
  File "/usr/lib/python2.7/site-packages/Alacarte/util.py", line 151, in getIcon
    pixbuf = info.load_icon()
  File "/usr/lib/python2.7/site-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
gi._glib.GError: Error opening file: No such file or directory

Please note that I made (or tried to make) several changes, which is probably why there's so much output.

Comment 21 Fedora End Of Life 2013-07-03 23:22:16 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 22 Fedora End Of Life 2013-08-01 02:00:13 UTC
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


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