desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #13509
[Bug 845478] [NEW] AttributeError: 'NoneType' object has no attribute 'rfind'
Public bug reported:
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
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)
** Affects: alacarte (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-bug i386 oneiric
--
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'
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
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
Follow ups
References