Mailinglist Archive: opensuse (3109 mails)
| < Previous | Next > |
Re: [opensuse] Ultrasol
- From: Anders Johansson <andjoh@xxxxxxxxxx>
- Date: Sun, 25 Feb 2007 23:31:19 +0100
- Message-id: <200702252331.19924.andjoh@xxxxxxxxxx>
On Sunday 25 February 2007 22:55, J. Scott Thayer M.D. wrote:
> Running ultrasol.sh yields the following:
>
> docscott@AbyssLaptop:~> ultrasol.sh
> Traceback (most recent call last):
> File "/usr/lib64/games/ultrasol/ultrasol.py", line 69, in <module>
> exec "import " + n
> File "<string>", line 1, in <module>
> File "/usr/lib64/games/ultrasol/games/dieboesesieben.py", line 42
> SyntaxError: Non-ASCII character '\xf6' in
> file /usr/lib64/games/ultrasol/games/dieboesesieben.py on line 42, but no
> encoding declared; see http://www.python.org/peps/pep-0263.html for details
> docscott@AbyssLaptop:~>
>
> Any fixes for this?
Yes, but in future, please direct such bug reports to the place where you got
the package. They will need to fix it and put out a fixed version
The solution is to add a coding line to the python source file, to tell python
which encoding is used for the text. Edit the file, and add
# -*- coding: iso-8859-15
as the first line. You'll have to do that for gypsy.py as well
The reason is that python defaults to ASCII encoding starting in python 2.5
(as explained on the web site mentioned in the error message)
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
> Running ultrasol.sh yields the following:
>
> docscott@AbyssLaptop:~> ultrasol.sh
> Traceback (most recent call last):
> File "/usr/lib64/games/ultrasol/ultrasol.py", line 69, in <module>
> exec "import " + n
> File "<string>", line 1, in <module>
> File "/usr/lib64/games/ultrasol/games/dieboesesieben.py", line 42
> SyntaxError: Non-ASCII character '\xf6' in
> file /usr/lib64/games/ultrasol/games/dieboesesieben.py on line 42, but no
> encoding declared; see http://www.python.org/peps/pep-0263.html for details
> docscott@AbyssLaptop:~>
>
> Any fixes for this?
Yes, but in future, please direct such bug reports to the place where you got
the package. They will need to fix it and put out a fixed version
The solution is to add a coding line to the python source file, to tell python
which encoding is used for the text. Edit the file, and add
# -*- coding: iso-8859-15
as the first line. You'll have to do that for gypsy.py as well
The reason is that python defaults to ASCII encoding starting in python 2.5
(as explained on the web site mentioned in the error message)
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |