[Bug 621687] Re: computer-janitor crashed with UnicodeEncodeError in _print_message()

Ubuntu Foundation's Bug Bot 621687 at bugs.launchpad.net
Thu May 31 03:54:28 UTC 2012


** Changed in: computer-janitor (Ubuntu)
   Importance: Undecided => Medium

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

Title:
  computer-janitor crashed with UnicodeEncodeError in _print_message()

Status in “computer-janitor” package in Ubuntu:
  New

Bug description:
  Binary package hint: computer-janitor

  I just ran:

  $ computer-janitor -h

  Traceback (most recent call last):
    File "/usr/sbin/computer-janitor", line 35, in <module>
      main()
    File "/usr/share/computerjanitor/computerjanitorapp/cli/main.py", line 306, in main
      options = Options(runner)
    File "/usr/share/computerjanitor/computerjanitorapp/cli/main.py", line 112, in __init__
      self.arguments = self.parser.parse_args()
    File "/usr/lib/pymodules/python2.6/argparse.py", line 1698, in parse_args
      args, argv = self.parse_known_args(args, namespace)
    File "/usr/lib/pymodules/python2.6/argparse.py", line 1730, in parse_known_args
      return self._parse_known_args(args, namespace)
    File "/usr/lib/pymodules/python2.6/argparse.py", line 1932, in _parse_known_args
      start_index = consume_optional(start_index)
    File "/usr/lib/pymodules/python2.6/argparse.py", line 1872, in consume_optional
      take_action(action, args, option_string)
    File "/usr/lib/pymodules/python2.6/argparse.py", line 1800, in take_action
      action(self, namespace, argument_values, option_string)
    File "/usr/lib/pymodules/python2.6/argparse.py", line 1023, in __call__
      parser.print_help()
    File "/usr/lib/pymodules/python2.6/argparse.py", line 2319, in print_help
      self._print_message(self.format_help(), file)
    File "/usr/lib/pymodules/python2.6/argparse.py", line 2333, in _print_message
      file.write(message)
  UnicodeEncodeError: 'ascii' codec can't encode character u'\u0103' in position 498: ordinal not in range(128)


  However, not suplying "-h" leads to:

  $ computer-janitor 
  usage: computer-janitor [-h] [--version] {ignore,unignore,find,clean} ...
  computer-janitor: error: too few arguments

  ProblemType: Crash
  DistroRelease: Ubuntu 10.10
  Package: computer-janitor 2.0.2-0ubuntu2
  ProcVersionSignature: Ubuntu 2.6.35-17.23-generic 2.6.35.2
  Uname: Linux 2.6.35-17-generic i686
  Architecture: i386
  Date: Sat Aug 21 12:58:48 2010
  ExecutablePath: /usr/share/computerjanitor/computer-janitor
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha i386 (20100803.1)
  InterpreterPath: /usr/bin/python2.6
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/sbin/computer-janitor -h
  ProcEnviron:
   SHELL=/bin/bash
   LANG=ro_RO.utf8
  PythonArgs: ['/usr/sbin/computer-janitor', '-h']
  SourcePackage: computer-janitor
  Title: computer-janitor crashed with UnicodeEncodeError in _print_message()
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/computer-janitor/+bug/621687/+subscriptions




More information about the foundations-bugs mailing list