Bugs item #1876637, was opened at 2008-01-21 18:39 Message generated for change (Settings changed) made by cosoleto You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1876637...
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: 4 Private: No Submitted By: Alex S.H. Lin (lin4h) Assigned to: Nobody/Anonymous (nobody) Summary: cannot save exclusion db without english in copyright.py
Initial Comment: The patch included copyright.py update, before update this patch, there are some bug we have to fix it.
when the script get the exclusion database from jawiki, it cannot save into the text file and return error:
Updating file 'copyright\ja\jaclone.txt' ([[ja:Wikipedia:ウィキペディアを情報源とするサイト]]) Traceback (most recent call last): File "D:\My Documents\SOURCE\mwbot\pywikipedia\copyright.py", line 1188, in <m odule> excl_list = exclusion_list() File "D:\My Documents\SOURCE\mwbot\pywikipedia\copyright.py", line 360, in exc lusion_list load_pages() File "D:\My Documents\SOURCE\mwbot\pywikipedia\copyright.py", line 319, in loa d_pages wikipedia.config.shortpath(path), page.aslink()) UnicodeEncodeError: 'cp950' codec can't encode character u'\u7ef4' in position 4 9: illegal multibyte sequence
I use windows XP SP2 and python 2.5
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto) Date: 2008-04-10 13:39
Message: Logged In: YES user_id=181280 Originator: NO
I have applied your patch in my source tree and tried to change my user config too but I cannot reproduce this bug. Is it still present? If it's, please include more information: your user-config.py (without google/yahoo/msn access key), PyWikipediaBot version... Anyway to add support for ja and zh pages additional code it's needed.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1876637...
pywikipedia-l@lists.wikimedia.org