Patches item #3021634, was opened at 2010-06-26 05:42
Message generated for change (Tracker Item Submitted) made by lankier
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3021634&group_…
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: lankier (lankier)
Assigned to: Nobody/Anonymous (nobody)
Summary: russian for reflinks.py and noreferences.py
Initial Comment:
translation reflinks.py and noreferences.py into russian
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3021634&group_…
Bugs item #3020887, was opened at 2010-06-24 09:31
Message generated for change (Comment added) made by dnessett
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3020887&group_…
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: General
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dan Nessett (dnessett)
Assigned to: xqt (xqt)
Summary: redirectRegex throws type error
Initial Comment:
Running MW 1.13.2, the following command throws a type error:
$ python add_text.py -cat:Pages_with_too_many_expensive_parser_function_calls -text:" " -summary:"Test edit:Category jog for [[:Category:Pages with too many expensive parser function calls|Pages with too many expensive parser function calls]]"
The result is:
Getting [[Category:Pages with too many expensive parser function calls]]...
Loading 2009 White House Forum on Health Reform/Related Articles...
Do you want to accept these changes? ([y]es, [N]o, [a]ll) a
Updating page [[2009 White House Forum on Health Reform/Related Articles]] via API
Loading 2010 United Kingdom general election/Related Articles...
Traceback (most recent call last):
File "add_text.py", line 417, in <module>
main()
File "add_text.py", line 413, in main
create=talkPage)
File "add_text.py", line 201, in add_text
text = page.get()
File "/usr/local/src/python/pywikipedia/local_sites/wikipedia.py", line 619, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop)
File "/usr/local/src/python/pywikipedia/local_sites/wikipedia.py", line 727, in _getEditPage
m = self.site().redirectRegex().match(pagetext)
File "/usr/local/src/python/pywikipedia/local_sites/wikipedia.py", line 6644, in redirectRegex
pattern = r'(?:' + '|'.join(keywords) + ')'
TypeError
version.py output is:
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r8311, 2010/06/22, 13:20:10)
Python 2.5.2 (r252:60911, Jan 20 2010, 21:48:48)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)]
config-settings:
use_api = True
use_api_login = True
This error occurs due to the following bug in the code. At line 6642 is the following code fragment:
try:
keywords = self.getmagicwords('redirect')
pattern = r'(?:' + '|'.join(keywords) + ')'
except KeyError:
# no localized keyword for redirects
pattern = r'#%s' % default
getmagicwords is a one line method that simply calls siteinfo (line 5480) with the key 'magicwords'. At line 5518, siteinfo calls getData to obtain site data. When looking for magicwords, the method executes "for entry in data[key]" at line 5527. For certain versions of MW, magicwords are not returned as part of the site data and therefore data[key] returns a null result. Eventually, this leads to the KeyError exception at line 5538.
The bug arises because siteinfo catches the KeyError exception and returns a result of "None". When the call is unwound back to line 6643 the provision for a KeyError at line 6645 is vacuous. The KeyError has already been caught by siteinfo.
Consequently, the statement at line 6644 executes. This causes a TypeError since the keyword arguement to .join() is null.
----------------------------------------------------------------------
Comment By: Dan Nessett (dnessett)
Date: 2010-06-25 15:02
Message:
The bug fix in r8329 doesn't correct the problem. This is perhaps because I
mis-analyzed the problem. In fact the try ... except block in siteinfo
accomplishes nothing, since the KeyError occurs outside its scope. So, what
really happens is the exception occurs and propagates. However, the value
returned on an exception is None. So, it propagates through getmagicwords
to redirectRegex. For some reason I don't understand, it is not caught by
the except clause there before the pattern statement executes (causing the
type error).
The solution (which I have tested) is to put a try ... except block in
getmagicwords and return None when a KeyError occurs. This consumes the
KeyError exception and allows the change in r8333 to redirectRegex to work
properly. In addition, it makes no sense to have the try ... except block
in siteinfo, since it isn't possible for a KeyError to occur as the result
of either of the two return statements.
I will attach a patch against r8333 that fixes the problem.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-06-25 00:20
Message:
fixed in r8329
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-06-24 14:29
Message:
Thanks a lot for analyzing it and these details. I'll fix it tomorrow.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3020887&group_…
Support Requests item #3021500, was opened at 2010-06-25 19:31
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3021500&group_…
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
Priority: 5
Private: No
Submitted By: Dan Nessett (dnessett)
>Assigned to: xqt (xqt)
Summary: Can't leave commont on bug 3020887 indicating fix doesn't wo
Initial Comment:
I am not familiar with source forge. I filed a bug (3020887) that xqt accepted and attempted to fix. However, the fix doesn't work. I can't figure out how to leave a comment on the bug ticket indicating this. There doesn't seem to be a way to contact xqt and inform him of the problem
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-06-25 23:34
Message:
I reopened #3020887
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3021500&group_…
Bugs item #3020887, was opened at 2010-06-24 18:31
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3020887&group_…
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: General
Group: None
>Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dan Nessett (dnessett)
Assigned to: xqt (xqt)
Summary: redirectRegex throws type error
Initial Comment:
Running MW 1.13.2, the following command throws a type error:
$ python add_text.py -cat:Pages_with_too_many_expensive_parser_function_calls -text:" " -summary:"Test edit:Category jog for [[:Category:Pages with too many expensive parser function calls|Pages with too many expensive parser function calls]]"
The result is:
Getting [[Category:Pages with too many expensive parser function calls]]...
Loading 2009 White House Forum on Health Reform/Related Articles...
Do you want to accept these changes? ([y]es, [N]o, [a]ll) a
Updating page [[2009 White House Forum on Health Reform/Related Articles]] via API
Loading 2010 United Kingdom general election/Related Articles...
Traceback (most recent call last):
File "add_text.py", line 417, in <module>
main()
File "add_text.py", line 413, in main
create=talkPage)
File "add_text.py", line 201, in add_text
text = page.get()
File "/usr/local/src/python/pywikipedia/local_sites/wikipedia.py", line 619, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop)
File "/usr/local/src/python/pywikipedia/local_sites/wikipedia.py", line 727, in _getEditPage
m = self.site().redirectRegex().match(pagetext)
File "/usr/local/src/python/pywikipedia/local_sites/wikipedia.py", line 6644, in redirectRegex
pattern = r'(?:' + '|'.join(keywords) + ')'
TypeError
version.py output is:
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r8311, 2010/06/22, 13:20:10)
Python 2.5.2 (r252:60911, Jan 20 2010, 21:48:48)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)]
config-settings:
use_api = True
use_api_login = True
This error occurs due to the following bug in the code. At line 6642 is the following code fragment:
try:
keywords = self.getmagicwords('redirect')
pattern = r'(?:' + '|'.join(keywords) + ')'
except KeyError:
# no localized keyword for redirects
pattern = r'#%s' % default
getmagicwords is a one line method that simply calls siteinfo (line 5480) with the key 'magicwords'. At line 5518, siteinfo calls getData to obtain site data. When looking for magicwords, the method executes "for entry in data[key]" at line 5527. For certain versions of MW, magicwords are not returned as part of the site data and therefore data[key] returns a null result. Eventually, this leads to the KeyError exception at line 5538.
The bug arises because siteinfo catches the KeyError exception and returns a result of "None". When the call is unwound back to line 6643 the provision for a KeyError at line 6645 is vacuous. The KeyError has already been caught by siteinfo.
Consequently, the statement at line 6644 executes. This causes a TypeError since the keyword arguement to .join() is null.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-06-25 09:20
Message:
fixed in r8329
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-06-24 23:29
Message:
Thanks a lot for analyzing it and these details. I'll fix it tomorrow.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3020887&group_…
Patches item #3021568, was opened at 2010-06-25 21:03
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3021568&group_…
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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: reflinks.py charset fix
Initial Comment:
This patch added charset detection from http header.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3021568&group_…
Feature Requests item #3021531, was opened at 2010-06-25 20:38
Message generated for change (Tracker Item Submitted) made by multichill
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3021531&group_…
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
Priority: 5
Private: No
Submitted By: Multichill (multichill)
Assigned to: Nobody/Anonymous (nobody)
Summary: Implement uncategorized templates pagegenerator
Initial Comment:
We have generators for uncategorized pages, images & categories, but not for uncategorized templates. This should be implemented
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3021531&group_…
Support Requests item #3021500, was opened at 2010-06-25 10:31
Message generated for change (Tracker Item Submitted) made by dnessett
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3021500&group_…
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
Priority: 5
Private: No
Submitted By: Dan Nessett (dnessett)
Assigned to: Nobody/Anonymous (nobody)
Summary: Can't leave commont on bug 3020887 indicating fix doesn't wo
Initial Comment:
I am not familiar with source forge. I filed a bug (3020887) that xqt accepted and attempted to fix. However, the fix doesn't work. I can't figure out how to leave a comment on the bug ticket indicating this. There doesn't seem to be a way to contact xqt and inform him of the problem
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3021500&group_…
Bugs item #3019985, was opened at 2010-06-23 05:19
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3019985&group_…
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: General
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Winston (winston365)
>Assigned to: xqt (xqt)
Summary: Page.getReferences hangs for [[Nintendo DS]]
Initial Comment:
list(wikipedia.Page(wikipedia.Site('en'), 'Nintendo DS').getReferences()) seems to hang, and eventually causes a maximum recursion depth exception. The generator is created, but is never exhausted, so it never finishes when cast into a list. It looks like the offending page may be [[Wikipedia talk:Articles for creation/Boing! Docomodake DS]], and getReferences on that page hangs in the same way. It seems to be looping continuously in the "for zms" loop around line 1276 in wikipedia.py, almost as if the page was redirecting to itself.
Pywikipedia [http] trunk/pywikipedia (r8194, 2010/05/18, 15:27:06)
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3]
config-settings:
use_api = True
use_api_login = True
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-06-25 10:08
Message:
Done in r8330
The pages may be yielded but must not load its references
----------------------------------------------------------------------
Comment By: Winston (winston365)
Date: 2010-06-25 00:03
Message:
I have attached a simple patch that seems to work around this for now.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3019985&group_…
Bugs item #3020887, was opened at 2010-06-24 18:31
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3020887&group_…
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: General
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Dan Nessett (dnessett)
Assigned to: xqt (xqt)
Summary: redirectRegex throws type error
Initial Comment:
Running MW 1.13.2, the following command throws a type error:
$ python add_text.py -cat:Pages_with_too_many_expensive_parser_function_calls -text:" " -summary:"Test edit:Category jog for [[:Category:Pages with too many expensive parser function calls|Pages with too many expensive parser function calls]]"
The result is:
Getting [[Category:Pages with too many expensive parser function calls]]...
Loading 2009 White House Forum on Health Reform/Related Articles...
Do you want to accept these changes? ([y]es, [N]o, [a]ll) a
Updating page [[2009 White House Forum on Health Reform/Related Articles]] via API
Loading 2010 United Kingdom general election/Related Articles...
Traceback (most recent call last):
File "add_text.py", line 417, in <module>
main()
File "add_text.py", line 413, in main
create=talkPage)
File "add_text.py", line 201, in add_text
text = page.get()
File "/usr/local/src/python/pywikipedia/local_sites/wikipedia.py", line 619, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop)
File "/usr/local/src/python/pywikipedia/local_sites/wikipedia.py", line 727, in _getEditPage
m = self.site().redirectRegex().match(pagetext)
File "/usr/local/src/python/pywikipedia/local_sites/wikipedia.py", line 6644, in redirectRegex
pattern = r'(?:' + '|'.join(keywords) + ')'
TypeError
version.py output is:
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r8311, 2010/06/22, 13:20:10)
Python 2.5.2 (r252:60911, Jan 20 2010, 21:48:48)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)]
config-settings:
use_api = True
use_api_login = True
This error occurs due to the following bug in the code. At line 6642 is the following code fragment:
try:
keywords = self.getmagicwords('redirect')
pattern = r'(?:' + '|'.join(keywords) + ')'
except KeyError:
# no localized keyword for redirects
pattern = r'#%s' % default
getmagicwords is a one line method that simply calls siteinfo (line 5480) with the key 'magicwords'. At line 5518, siteinfo calls getData to obtain site data. When looking for magicwords, the method executes "for entry in data[key]" at line 5527. For certain versions of MW, magicwords are not returned as part of the site data and therefore data[key] returns a null result. Eventually, this leads to the KeyError exception at line 5538.
The bug arises because siteinfo catches the KeyError exception and returns a result of "None". When the call is unwound back to line 6643 the provision for a KeyError at line 6645 is vacuous. The KeyError has already been caught by siteinfo.
Consequently, the statement at line 6644 executes. This causes a TypeError since the keyword arguement to .join() is null.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-06-25 09:20
Message:
fixed in r8329
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-06-24 23:29
Message:
Thanks a lot for analyzing it and these details. I'll fix it tomorrow.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3020887&group_…
Bugs item #2890167, was opened at 2009-11-01 03:54
Message generated for change (Comment added) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2890167&group_…
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: interwiki
Group: None
>Status: Closed
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: Woo-Jin Kim (kwj2772)
Assigned to: xqt (xqt)
Summary: interwiki.py: edit token always fails
Initial Comment:
Edit token always fails when I run interwiki.py. Following is output of bot
======Post-processing [[ko:: ]]======
Updating links on page [[id:Kategori:Pembantaian Rwanda]].
Changes to be made: Menambah: [[ko:: ]]
+ [[ko:: ]]
NOTE: Updating live wiki...
NOTE: You have new messages on wikipedia:id
WARNING: Your account on wikipedia:id does not have a bot flag. Its edits will b
e visible in the recent changes and it may get blocked.
Copy of watchlist is one month old, reloading
Retrieving watchlist for wikipedia:id
Updating page [[id:Kategori:Pembantaian Rwanda]] via API
Edit token has failed. Retrying.
Getting a token.
WARNING: Your account on wikipedia:id does not have a bot flag. Its edits will b
e visible in the recent changes and it may get blocked.
Sleeping for 8.7 seconds, 2009-11-01 12:46:28
Updating page [[id:Kategori:Pembantaian Rwanda]] via API
Edit token has failed. Giving up.
200 OK
Updating links on page [[en:Category:Rwandan Genocide]].
Changes to be made: Adding: [[ko:: ]]
+ [[ko:: ]]
NOTE: Performing a recursive query first to save time....
NOTE: Nothing left to do 2
NOTE: Updating live wiki...
NOTE: You have new messages on wikipedia:en
Sleeping for 8.4 seconds, 2009-11-01 12:46:39
Updating page [[en:Category:Rwandan Genocide]] via API
Edit token has failed. Retrying.
Getting a token.
Sleeping for 8.7 seconds, 2009-11-01 12:46:48
Updating page [[en:Category:Rwandan Genocide]] via API
Edit token has failed. Giving up.
200 OK
Dump ko <wikipedia> saved
C:\Python26\pywikipedia>version.py
Pywikipedia [http] trunk/pywikipedia (r7576, 2009/10/31, 00:35:16)
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)]
C:\Python26\pywikipedia>
Please give me some advices to fix this issue. Thanks
----------------------------------------------------------------------
>Comment By: SourceForge Robot (sf-robot)
Date: 2010-06-25 02:20
Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-06-10 12:33
Message:
Please tell me whether this bug is still valid. Since this works for me I
guess this tracker is out of date.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2890167&group_…