maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia 770 (https://talk.maemo.org/forumdisplay.php?f=24)
-   -   Problem running Daily Pluck! (https://talk.maemo.org/showthread.php?t=8639)

buchinho 2007-08-08 20:54

Problem running Daily Pluck!
 
When trying to run the Daily Pluck with my linux laptop, there are no problems. But when I try running it on the 770 it fetches the news and after that comes this:

Code:

Traceback (most recent call last):
  File "PyPlucker/Spider.py", line 39, in <module>
    from PyPlucker import Parser, ConfigFiles, __version__
  File "PyPlucker/Parser.py", line 12, in <module>
    from PyPlucker import TextParser, ImageParser, PluckerDocs, ConversionParser
  File "PyPlucker/TextParser.py", line 65, in <module>
    from PyPlucker import PluckerDocs
  File "PyPlucker/PluckerDocs.py", line 86, in <module>
    from PyPlucker.helper import doc_compress
  File "PyPlucker/helper/doc_compress.py", line 23
SyntaxError: Non-ASCII character '\xfc' in file PyPlucker/helper/doc_compress.py on line 23, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

What's the problem then?

buchinho 2007-08-09 12:03

Re: Problem running Daily Pluck!
 
Ok I found somebody else who has the problem, since there seems to be a problem with the umlauts (ä,ü,ö)... This is fixing the error!!

Quote:

When using plucker-build, I get error:
...
SyntaxError: Non-ASCII character '\xfc' in file /usr/lib/python2.5/site-packages/PyPlucker/helper/doc_compress.py on line 23, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

It's because ü (umlaut) character, so please insert

# -*- coding: latin1 -*-

line to the beginning of

helper/doc_compress.py
helper/prc.py

lucge 2007-08-21 19:32

Re: Problem running Daily Pluck!
 
same problem for me when I installed plucker from binary (plucker-1.8-1.rpm).
But OK if I install it from source
rpmbuild --rebuild plucker-1.8-1.src.rpm


All times are GMT. The time now is 23:13.

vBulletin® Version 3.8.8