Bugs item #1870239, was opened at 2008-01-13 11:02 Message generated for change (Comment added) made by rotemliss You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1870239...
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: Open Resolution: None Priority: 5 Private: No Submitted By: 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: Rotem Liss (rotemliss) Date: 2008-01-13 20: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: Nicolas Dumazet (nicdumz) Date: 2008-01-13 11: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=1870239...