Public bug reported:

Binary package hint: gnome-app-install

The program /usr/sbin/update-app-install is called during the
installation of gnome-app-install.  It crashes, due to UTF-8 data it was
not expecting.  The message is:

Setting up gnome-app-install (0.5.60.1ubuntu2) ...
Caching application data...
Traceback (most recent call last):
  File "/usr/sbin/update-app-install", line 6, in <module>
    main()
  File "/usr/share/gnome-app-install/AppInstall/update.py", line 116, in main
    generate_menu_cache(options.desktop_dir, options.cache_dir)
  File "/usr/share/gnome-app-install/AppInstall/update.py", line 71, in 
generate_menu_cache
    menu.createMenuCache(cache_dir)
  File "/usr/share/gnome-app-install/AppInstall/CoreMenu.py", line 89, in 
createMenuCache
    menu = xdg.Menu.parse(mpath)
  File "/usr/lib/pymodules/python2.6/xdg/Menu.py", line 524, in parse
    __parse(doc, filename, tmp["Root"])
  File "/usr/lib/pymodules/python2.6/xdg/Menu.py", line 545, in __parse
    __parseMenu(child, filename, parent)
  File "/usr/lib/pymodules/python2.6/xdg/Menu.py", line 699, in __parseMenu
    __parse(child, filename, m)
  File "/usr/lib/pymodules/python2.6/xdg/Menu.py", line 545, in __parse
    __parseMenu(child, filename, parent)
  File "/usr/lib/pymodules/python2.6/xdg/Menu.py", line 699, in __parseMenu
    __parse(child, filename, m)
  File "/usr/lib/pymodules/python2.6/xdg/Menu.py", line 545, in __parse
    __parseMenu(child, filename, parent)
  File "/usr/lib/pymodules/python2.6/xdg/Menu.py", line 701, in __parseMenu
    parent.addSubmenu(m)
  File "/usr/lib/pymodules/python2.6/xdg/Menu.py", line 176, in addSubmenu
    if submenu == newmenu:
  File "/usr/lib/pymodules/python2.6/xdg/Menu.py", line 95, in __eq__
    if self.Name == str(other):
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-8: 
ordinal not in range(128)

I am able to get update-app-install working by adding the following hack
to /usr/lib/pymodules/python2.6/xdg/Menu.py:

import sys
reload(sys)
sys.setdefaultencoding('UTF-8')

This allows the installation of gnome-app-install to succeed.  However,
there is another bug in gnome-app-install in Lucid.  When I select a
package to install, and then hit "Apply Changes", the program hangs.
The error reported is:

... lots of warnings like the next line ...
WARNING: can not get name for '<__main__.GailScrolledWindow object at 0x9ea511c 
(GailScrolledWindow at 0x8c8b920)>'
Traceback (most recent call last):
  File "/usr/share/gnome-app-install/AppInstall/AppInstallApp.py", line 1040, 
in on_button_ok_clicked
    self.applyChanges(to_add, to_rm)
  File "/usr/share/gnome-app-install/AppInstall/AppInstallApp.py", line 1017, 
in applyChanges
    ret = self.install_backend.commit(pkgs_add, pkgs_rm)
  File 
"/usr/share/gnome-app-install/AppInstall/backend/InstallBackendAptdaemon.py", 
line 23, in commit
    exit_handler=self._on_exit)
TypeError: commit_packages() got an unexpected keyword argument 'exit_handler'

I've traced this into /usr/lib/python2.6/dist-
packages/aptdaemon/client.py.  It seems that there is some sort of dbus
error, but I get confused pretty quick in this code.

ProblemType: Bug
Architecture: i386
Date: Mon Feb 22 04:31:08 2010
DistroRelease: Ubuntu 10.04
InstallationMedia: Vinux/Ubuntu Lucid Alpha 2 - Release i386
Package: gnome-app-install 0.5.60.1ubuntu2
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-14.20-generic
SourcePackage: gnome-app-install
Uname: Linux 2.6.32-14-generic i686

** Affects: gnome-app-install (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 lucid

-- 
gnome-app-install fails to install
https://bugs.launchpad.net/bugs/525669
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to