Bugs item #1870239, was opened at 2008-01-13 01:02
Message generated for change (Settings changed) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=187023…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Closed
Resolution: Out of Date
Priority: 5
Private: No
Submitted By: NicDumZ — Nicolas Dumazet (nicdumz)
Assigned to: Nobody/Anonymous (nobody)
Summary: pagegenerators::_Preloader UniCodeDecodeError & hangs
Initial Comment:
From a simple replace.py call :
Checked for running processes. 1 processes currently running, including the current
process.
Exception in thread Preloader-Thread:
Traceback (most recent call last):
File "threading.py", line 460, in __bootstrap
self.run()
File "/home/nico/projets/pywikipedia/pagegenerators.py", line 633, in run
wikipedia.output(unicode(e))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 28:
ordinal not in range(128)
The process then hangs and has to be SIGSTP'ed.
Thanks :)
Nicolas Dumazet.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-01-13 11:03
Message:
Logged In: YES
user_id=1963242
Originator: YES
very strange. I am running the last revision, python 2.5.1 on an ubuntu
system, for what it's worth.
I tried this on another system, an unix server running python 2.3.4, and I
get the normal behavior :
[Errno 2] No such file or directory: 'gdfg'
?!!?
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-01-13 10:51
Message:
Logged In: YES
user_id=1327030
Originator: NO
Executing this, I get:
Checked for running processes. 1 processes currently running, including the
current process.
[Errno 2] No such file or directory: u'gdfg'
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-01-13 10:47
Message:
Logged In: YES
user_id=1963242
Originator: YES
well, I also work on an Unix system.
'python replace.py -file:gdfg "a" "b"' will raise the wanted
exception :)
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-01-13 10:25
Message:
Logged In: YES
user_id=1327030
Originator: NO
What was the exact command? I get the following exception when executing
"python pagegenerators.py -file:gdfg.txt":
Checked for running processes. 1 processes currently running, including the
current process.
Traceback (most recent call last):
File "pagegenerators.py", line 827, in <module>
for page in gen:
File "pagegenerators.py", line 538, in DuplicateFilterPageGenerator
for page in generator:
File "pagegenerators.py", line 279, in TextfilePageGenerator
f = codecs.open(filename, 'r', config.textfile_encoding)
File "/usr/lib/python2.5/codecs.py", line 791, in open
file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 2] No such file or directory: u'gdfg.txt'
which is OK. Note that I use Linux, does it work differently on a Windows
system?
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-01-13 01:07
Message:
Logged In: YES
user_id=1963242
Originator: YES
... I forgot an important point : The call was made with a
-file:fileNameWithATypoHenceNotExisting parameter :)
Cheers,
Nicolas Dumazet.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=187023…