fractional font sizes prevent gwibber starting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gwibber |
New
|
Undecided
|
Unassigned | ||
gwibber (Debian) |
Fix Released
|
Unknown
|
|||
gwibber (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gwibber
My appearance settings in Karmic are to use Droid Sans as the Application Font at a size of 6.5pt, which is perfectly legitimate.
Gwibber does the following:
self.
which seems cause it to fail to start with fsize being a float (see attached traceback)
ProblemType: Crash
Architecture: amd64
Date: Tue Jul 21 09:28:33 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/gwibber
InterpreterPath: /usr/bin/python2.6
Package: gwibber 1.2.0~bzr346-
PackageArchitec
ProcCmdline: /usr/bin/python /usr/bin/gwibber
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_GB.UTF-8
ProcVersionSign
PythonArgs: ['/usr/
SourcePackage: gwibber
Title: gwibber crashed with ValueError in load_theme()
Uname: Linux 2.6.31-3-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
Related branches
- Ken VanDine: Disapprove
- Diff: None lines
tags: | removed: need-duplicate-check |
Changed in gwibber (Debian): | |
status: | Unknown → New |
Changed in gwibber (Debian): | |
status: | New → Fix Released |
The problem would be that python can't turn a string of "6.5" into an integer via int(). However, this works:
>>> num1 = "6.5"
>>> num2 = "6"
>>> int(float(num1))
6
>>> int(float(num2))
6
>>>
It would seem like it might be nicer in the long run to support floats for font sizes, but in the mean time the additional float() call should fix this crash.