FS#8719 - gdeskcal refuses to start

Attached to Project: Arch Linux
Opened by jason fuchs (jason_f) - Tuesday, 20 November 2007, 18:04 GMT
Last edited by Eric Belanger (Snowman) - Tuesday, 24 February 2009, 23:39 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Roman Kyrylych (Romashka)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:Gdeskcal will not start.


Additional info:
* package version(s) 1.01-1
* config and/or log files etc.
n/a

Steps to reproduce:pacman -S gdeskcal && gdeskcal results in:

(gdeskcal:9620): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Traceback (most recent call last):
File "/usr/bin/gdeskcal", line 15, in <module>
import code.i18n
File "/usr/lib/gdeskcal/code/i18n.py", line 1, in <module>
import values
File "/usr/lib/gdeskcal/code/values.py", line 13
SyntaxError: Non-ASCII character '\xc3' in file /usr/lib/gdeskcal/code/values.py on line 14, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details




I'm not a programmer, but it it seems they've added the name of a maintainer and used a unicode char in their name, without including python unicode library. For me, I edited /usr/lib/gdeskcal/code/values.py and deleted all the maintainers names. This fixed it for me, but there is probably a better way...
This task depends upon

Closed by  Eric Belanger (Snowman)
Tuesday, 24 February 2009, 23:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in gdeskcal-1.01-2
Comment by jason fuchs (jason_f) - Tuesday, 20 November 2007, 18:06 GMT
Update: It seems there must be more to this than my hack. The program runs, but the displayed text looks like Norwegian or some close relative...
Comment by jason fuchs (jason_f) - Tuesday, 20 November 2007, 18:17 GMT
to the values.py file mentioned above, needs to be patched with:
> #! /usr/bin/python
> # coding: utf-8

Answer found here: http://bbs.archlinux.org/viewtopic.php?id=33628

But still having issue with the language...open another bug for that?
Comment by jason fuchs (jason_f) - Thursday, 22 November 2007, 02:30 GMT
Its back in english for me. I downloaded a .zshrc file that had a strange locale setting...=)
Comment by Greg (dolby) - Sunday, 04 May 2008, 18:42 GMT
is this still an issue?
Comment by jason fuchs (jason_f) - Wednesday, 14 May 2008, 20:11 GMT
Still the same pkgver in the repos (didnt check testing.) So yes its still an issue..
$ -> gdeskcal
Traceback (most recent call last):
File "/usr/bin/gdeskcal", line 15, in <module>
import code.i18n
File "/usr/lib/gdeskcal/code/i18n.py", line 1, in <module>
import values
File "/usr/lib/gdeskcal/code/values.py", line 13
SyntaxError: Non-ASCII character '\xc3' in file /usr/lib/gdeskcal/code/values.py on line 14, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
Comment by Alois Nespor (anespor) - Thursday, 11 September 2008, 17:58 GMT
gdeskcal works fine, when
#! /usr/bin/python
# coding: utf-8

added on top in values.py file.
Comment by Alois Nespor (anespor) - Thursday, 11 September 2008, 18:00 GMT
... to the first line of values.py
Comment by Rasmus Steinke (rasi) - Sunday, 28 December 2008, 14:03 GMT
Over a year.. and this still hasnt been fixed? It just 2 lines of Code...

Loading...