[Bug 919956] Re: apport doesn't function for various pacakges -- breaking with python errors

Martin Pitt martin.pitt at ubuntu.com
Fri Aug 31 10:17:06 UTC 2012


#   GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash nomodeset”

It's the fancy quotes which are not ASCII, and make Python 2 trip. As
most of Apport uses Python 3 these days, it's not a biggie, but apport-
collect is still python2 (due to missing python3-launchpadlib), so we
should fix this.

** Package changed: apport (Ubuntu) => grub2 (Ubuntu)

** Changed in: grub2 (Ubuntu)
   Importance: Undecided => Medium

** Changed in: grub2 (Ubuntu)
       Status: New => Triaged

** Summary changed:

- apport doesn't function for various pacakges -- breaking with python errors
+ Apport hook breaks with Pyhton2 due to non-ASCII character

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/919956

Title:
  Apport hook breaks with Pyhton2 due to non-ASCII character

Status in “grub2” package in Ubuntu:
  Fix Committed

Bug description:
  $ ubuntu-bug grub2

  *** Collecting problem information

  The collected information can be sent to the developers to improve the
  application. This might take a few minutes.
  ..ERROR: hook /usr/share/apport/package-hooks//source_grub2.py crashed:
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/apport/report.py", line 692, in add_hooks_info
      execfile(hook, symb)
    File "/usr/share/apport/package-hooks//source_grub2.py", line 30
  SyntaxError: Non-ASCII character '\xe2' in file /usr/share/apport/package-hooks//source_grub2.py on line 30, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
  .

  *** Send problem report to the developers?

  After the problem report has been sent, please fill out the form in the
  automatically opened web browser.

  What would you like to do? Your options are:
    S: Send report (0.3 KB)
    V: View report
    K: Keep report file for sending later or copying to somewhere else
    C: Cancel
  Please choose (S/V/K/C):

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: apport 1.23-0ubuntu4
  ProcVersionSignature: Ubuntu 3.0.0-14.23-server 3.0.9
  Uname: Linux 3.0.0-14-server x86_64
  ApportVersion: 1.23-0ubuntu4
  Architecture: amd64
  Date: Sun Jan 22 11:58:41 2012
  InstallationMedia: Ubuntu-Server 10.10 "Maverick Meerkat" - Release amd64 (20101007)
  PackageArchitecture: all
  ProcEnviron:
   SHELL=/bin/bash
   PATH=(custom, user)
   LANG=de_DE.UTF-8
  SourcePackage: apport
  UpgradeStatus: No upgrade log present (probably fresh install)

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




More information about the foundations-bugs mailing list