computer-janitor crashed with UnicodeEncodeError in _print_message()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
computer-janitor (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
Binary package hint: computer-janitor
I just ran:
$ computer-janitor -h
Traceback (most recent call last):
File "/usr/sbin/
main()
File "/usr/share/
options = Options(runner)
File "/usr/share/
self.arguments = self.parser.
File "/usr/lib/
args, argv = self.parse_
File "/usr/lib/
return self._parse_
File "/usr/lib/
start_index = consume_
File "/usr/lib/
take_
File "/usr/lib/
action(self, namespace, argument_values, option_string)
File "/usr/lib/
parser.
File "/usr/lib/
self.
File "/usr/lib/
file.
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,
computer-janitor: error: too few arguments
ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: computer-janitor 2.0.2-0ubuntu2
ProcVersionSign
Uname: Linux 2.6.35-17-generic i686
Architecture: i386
Date: Sat Aug 21 12:58:48 2010
ExecutablePath: /usr/share/
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha i386 (20100803.1)
InterpreterPath: /usr/bin/python2.6
PackageArchitec
ProcCmdline: /usr/bin/python /usr/sbin/
ProcEnviron:
SHELL=/bin/bash
LANG=ro_RO.utf8
PythonArgs: ['/usr/
SourcePackage: computer-janitor
Title: computer-janitor crashed with UnicodeEncodeError in _print_message()
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
tags: | removed: need-duplicate-check |
Changed in computer-janitor (Ubuntu): | |
importance: | Undecided → Medium |
This could be a locale issue with argparse. What locale are you running? Try running 'printenv' in a shell and pasting the values for the following environment variables:
LANGUAGE
LC_ALL
LC_MESSAGES
LANG