← Back to team overview

desktop-packages team mailing list archive

[Bug 845478] Re: AttributeError: 'NoneType' object has no attribute 'rfind' & 'get_name'

 

logged:


GLib-GIO-WARNING **: Missing callback called fullpath = /home/oem/.config/menus/applications.menu

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to alacarte in Ubuntu.
https://bugs.launchpad.net/bugs/845478

Title:
  AttributeError: 'NoneType' object has no attribute 'rfind'  &
  'get_name'

Status in “alacarte” package in Ubuntu:
  New

Bug description:
  Oneiric i386 b1

  this issue have happened and be logged while i was trying to clean the
  menus entries: some oldish entries can be unchecked then removed, but
  some others refuse (cant be deleted), then this traceback is logged:

  Traceback (most recent call last):
    File "/usr/share/alacarte/Alacarte/MainWindow.py", line 436, in on_item_tree_show_toggled
      self.editor.setVisible(item, True)
    File "/usr/share/alacarte/Alacarte/MenuEditor.py", line 204, in setVisible
      self.__writeMenu(item, no_display=False)
    File "/usr/share/alacarte/Alacarte/MenuEditor.py", line 546, in __writeMenu
      file_id = os.path.split(menu.get_desktop_file_path())[1]
    File "/usr/lib/python2.7/posixpath.py", line 83, in split
      i = p.rfind('/') + 1
  AttributeError: 'NoneType' object has no attribute 'rfind'

  Traceback (most recent call last):
    File "/usr/share/alacarte/Alacarte/MainWindow.py", line 471, in on_item_tree_row_activated
      self.on_edit_properties_activate(None)
    File "/usr/share/alacarte/Alacarte/MainWindow.py", line 369, in on_edit_properties_activate
      parser.write(open(file_path))
  IOError: [Errno 2] Aucun fichier ou dossier de ce type: 'alacarte-made-2.directory'

  Traceback (most recent call last):
    File "/usr/share/alacarte/Alacarte/MainWindow.py", line 614, in on_revert_button_clicked
      self.editor.revert()
    File "/usr/share/alacarte/Alacarte/MenuEditor.py", line 86, in revert
      menu.dom = xml.dom.minidom.parseString(util.getUserMenuXml(menu.tree))
    File "/usr/share/alacarte/Alacarte/util.py", line 200, in getUserMenuXml
      menu_xml += "<MergeFile type=\"parent\">" + system_file +	"</MergeFile>\n</Menu>\n"
  TypeError: cannot concatenate 'str' and 'bool' objects

  Traceback (most recent call last):
    File "/usr/share/alacarte/Alacarte/MainWindow.py", line 112, in loadUpdates
      self.loadMenus()
    File "/usr/share/alacarte/Alacarte/MainWindow.py", line 213, in loadMenus
      self.loadMenu(iters, menu)
    File "/usr/share/alacarte/Alacarte/MainWindow.py", line 228, in loadMenu
      iters[depth] = self.menu_store.append(None, (icon, cgi.escape(parent.get_name()), parent))
  AttributeError: 'NoneType' object has no attribute 'get_name'

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: alacarte 0.13.2-2ubuntu3
  ProcVersionSignature: Ubuntu 3.0.0-10.16-generic-pae 3.0.4
  Uname: Linux 3.0.0-10-generic-pae i686
  NonfreeKernelModules: nvidia
  ApportVersion: 1.22.1-0ubuntu2
  Architecture: i386
  Date: Fri Sep  9 11:47:35 2011
  PackageArchitecture: all
  ProcEnviron:
   PATH=(custom, no user)
   LANG=fr_FR.UTF-8
   SHELL=/bin/bash
  SourcePackage: alacarte
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alacarte/+bug/845478/+subscriptions


References