Bugs item #3550060, was opened at 2012-07-27 08:46
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3550060&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: 7
Private: No
Submitted By: vssun (vssun)
>Assigned to: xqt (xqt)
>Summary: query-continue crashes with mw 1.20wmf8
Initial Comment:
Replace.py crashes after checking some 100s of pages. Last part of error message is given below
No changes were necessary in [[artesian well]]
No changes were necessary in [[artful]]
No changes were necessary in [[article]]
Traceback (most recent call last):
File "/home/vssun/pywikipedia/pagegenerators.py", line 1210, in __iter__
for page in self.wrapped_gen:
File "/home/vssun/pywikipedia/pagegenerators.py", line 1087, in DuplicateFilterPageGenerator
for page in generator:
File "/home/vssun/pywikipedia/pagegenerators.py", line 539, in AllpagesPageGenerator
includeredirects=includeredirects):
File "/home/vssun/pywikipedia/wikipedia.py", line 7130, in allpages
params['apfrom'] = data['query-continue']['allpages']['apfrom']
KeyError: 'apfrom'
'apfrom'
0 pages were changed.
Output of Version.py is given below
Pywikipedia [http] trunk/pywikipedia (r10461, 2012/07/22, 16:33:39)
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-07-29 04:31
Message:
done in r10463
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-07-29 03:39
Message:
Seem this bug is introduced with mw 1.20wmf8, right?
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2012-07-28 04:48
Message:
According to
http://wikimedia.7.n6.nabble.com/Mediawiki-api-announce-Changes-to-continue…
:
* allpages (apfrom -> apcontinue)
So, in wikipedia.py line 7130, 'apfrom' should be changed to 'apcontinue'
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2012-07-28 04:37
Message:
Same with interwiki.py:
No changes needed on page [[es:Categoría:AN:Sustantivos]]
NOTE: The first unfinished subject is [[es:Categoría:ANG:Animales]]
NOTE: Number of pages queued is 99, trying to add 60 more.
Dump es (wiktionary) appended.
Traceback (most recent call last):
File "D:\Work\pywikipedia\interwiki.py", line 2583, in <module>
main()
File "D:\Work\pywikipedia\interwiki.py", line 2557, in main
bot.run()
File "D:\Work\pywikipedia\interwiki.py", line 2296, in run
self.queryStep()
File "D:\Work\pywikipedia\interwiki.py", line 2269, in queryStep
self.oneQuery()
File "D:\Work\pywikipedia\interwiki.py", line 2237, in oneQuery
site = self.selectQuerySite()
File "D:\Work\pywikipedia\interwiki.py", line 2210, in selectQuerySite
self.generateMore(globalvar.maxquerysize - mycount)
File "D:\Work\pywikipedia\interwiki.py", line 2118, in generateMore
page = self.pageGenerator.next()
File "D:\Work\pywikipedia\pagegenerators.py", line 1087, in
DuplicateFilterPag
eGenerator
for page in generator:
File "D:\Work\pywikipedia\pagegenerators.py", line 539, in
AllpagesPageGenerat
or
includeredirects=includeredirects):
File "D:\Work\pywikipedia\wikipedia.py", line 7130, in allpages
params['apfrom'] = data['query-continue']['allpages']['apfrom']
KeyError: 'apfrom'
Probable breaking changes in the API.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3550060&group_…
Bugs item #3550060, was opened at 2012-07-27 08:46
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3550060&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: 7
Private: No
Submitted By: vssun (vssun)
Assigned to: Nobody/Anonymous (nobody)
Summary: Replace.py crashes
Initial Comment:
Replace.py crashes after checking some 100s of pages. Last part of error message is given below
No changes were necessary in [[artesian well]]
No changes were necessary in [[artful]]
No changes were necessary in [[article]]
Traceback (most recent call last):
File "/home/vssun/pywikipedia/pagegenerators.py", line 1210, in __iter__
for page in self.wrapped_gen:
File "/home/vssun/pywikipedia/pagegenerators.py", line 1087, in DuplicateFilterPageGenerator
for page in generator:
File "/home/vssun/pywikipedia/pagegenerators.py", line 539, in AllpagesPageGenerator
includeredirects=includeredirects):
File "/home/vssun/pywikipedia/wikipedia.py", line 7130, in allpages
params['apfrom'] = data['query-continue']['allpages']['apfrom']
KeyError: 'apfrom'
'apfrom'
0 pages were changed.
Output of Version.py is given below
Pywikipedia [http] trunk/pywikipedia (r10461, 2012/07/22, 16:33:39)
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-07-29 03:39
Message:
Seem this bug is introduced with mw 1.20wmf8, right?
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2012-07-28 04:48
Message:
According to
http://wikimedia.7.n6.nabble.com/Mediawiki-api-announce-Changes-to-continue…
:
* allpages (apfrom -> apcontinue)
So, in wikipedia.py line 7130, 'apfrom' should be changed to 'apcontinue'
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2012-07-28 04:37
Message:
Same with interwiki.py:
No changes needed on page [[es:Categoría:AN:Sustantivos]]
NOTE: The first unfinished subject is [[es:Categoría:ANG:Animales]]
NOTE: Number of pages queued is 99, trying to add 60 more.
Dump es (wiktionary) appended.
Traceback (most recent call last):
File "D:\Work\pywikipedia\interwiki.py", line 2583, in <module>
main()
File "D:\Work\pywikipedia\interwiki.py", line 2557, in main
bot.run()
File "D:\Work\pywikipedia\interwiki.py", line 2296, in run
self.queryStep()
File "D:\Work\pywikipedia\interwiki.py", line 2269, in queryStep
self.oneQuery()
File "D:\Work\pywikipedia\interwiki.py", line 2237, in oneQuery
site = self.selectQuerySite()
File "D:\Work\pywikipedia\interwiki.py", line 2210, in selectQuerySite
self.generateMore(globalvar.maxquerysize - mycount)
File "D:\Work\pywikipedia\interwiki.py", line 2118, in generateMore
page = self.pageGenerator.next()
File "D:\Work\pywikipedia\pagegenerators.py", line 1087, in
DuplicateFilterPag
eGenerator
for page in generator:
File "D:\Work\pywikipedia\pagegenerators.py", line 539, in
AllpagesPageGenerat
or
includeredirects=includeredirects):
File "D:\Work\pywikipedia\wikipedia.py", line 7130, in allpages
params['apfrom'] = data['query-continue']['allpages']['apfrom']
KeyError: 'apfrom'
Probable breaking changes in the API.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3550060&group_…
Bugs item #3550060, was opened at 2012-07-27 08:46
Message generated for change (Comment added) made by malafaya
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3550060&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: 7
Private: No
Submitted By: vssun (vssun)
Assigned to: Nobody/Anonymous (nobody)
Summary: Replace.py crashes
Initial Comment:
Replace.py crashes after checking some 100s of pages. Last part of error message is given below
No changes were necessary in [[artesian well]]
No changes were necessary in [[artful]]
No changes were necessary in [[article]]
Traceback (most recent call last):
File "/home/vssun/pywikipedia/pagegenerators.py", line 1210, in __iter__
for page in self.wrapped_gen:
File "/home/vssun/pywikipedia/pagegenerators.py", line 1087, in DuplicateFilterPageGenerator
for page in generator:
File "/home/vssun/pywikipedia/pagegenerators.py", line 539, in AllpagesPageGenerator
includeredirects=includeredirects):
File "/home/vssun/pywikipedia/wikipedia.py", line 7130, in allpages
params['apfrom'] = data['query-continue']['allpages']['apfrom']
KeyError: 'apfrom'
'apfrom'
0 pages were changed.
Output of Version.py is given below
Pywikipedia [http] trunk/pywikipedia (r10461, 2012/07/22, 16:33:39)
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: André Malafaya Baptista (malafaya)
Date: 2012-07-28 04:48
Message:
According to
http://wikimedia.7.n6.nabble.com/Mediawiki-api-announce-Changes-to-continue…
:
* allpages (apfrom -> apcontinue)
So, in wikipedia.py line 7130, 'apfrom' should be changed to 'apcontinue'
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2012-07-28 04:37
Message:
Same with interwiki.py:
No changes needed on page [[es:Categoría:AN:Sustantivos]]
NOTE: The first unfinished subject is [[es:Categoría:ANG:Animales]]
NOTE: Number of pages queued is 99, trying to add 60 more.
Dump es (wiktionary) appended.
Traceback (most recent call last):
File "D:\Work\pywikipedia\interwiki.py", line 2583, in <module>
main()
File "D:\Work\pywikipedia\interwiki.py", line 2557, in main
bot.run()
File "D:\Work\pywikipedia\interwiki.py", line 2296, in run
self.queryStep()
File "D:\Work\pywikipedia\interwiki.py", line 2269, in queryStep
self.oneQuery()
File "D:\Work\pywikipedia\interwiki.py", line 2237, in oneQuery
site = self.selectQuerySite()
File "D:\Work\pywikipedia\interwiki.py", line 2210, in selectQuerySite
self.generateMore(globalvar.maxquerysize - mycount)
File "D:\Work\pywikipedia\interwiki.py", line 2118, in generateMore
page = self.pageGenerator.next()
File "D:\Work\pywikipedia\pagegenerators.py", line 1087, in
DuplicateFilterPag
eGenerator
for page in generator:
File "D:\Work\pywikipedia\pagegenerators.py", line 539, in
AllpagesPageGenerat
or
includeredirects=includeredirects):
File "D:\Work\pywikipedia\wikipedia.py", line 7130, in allpages
params['apfrom'] = data['query-continue']['allpages']['apfrom']
KeyError: 'apfrom'
Probable breaking changes in the API.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3550060&group_…
Bugs item #3550060, was opened at 2012-07-27 08:46
Message generated for change (Comment added) made by malafaya
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3550060&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: 7
Private: No
Submitted By: vssun (vssun)
Assigned to: Nobody/Anonymous (nobody)
Summary: Replace.py crashes
Initial Comment:
Replace.py crashes after checking some 100s of pages. Last part of error message is given below
No changes were necessary in [[artesian well]]
No changes were necessary in [[artful]]
No changes were necessary in [[article]]
Traceback (most recent call last):
File "/home/vssun/pywikipedia/pagegenerators.py", line 1210, in __iter__
for page in self.wrapped_gen:
File "/home/vssun/pywikipedia/pagegenerators.py", line 1087, in DuplicateFilterPageGenerator
for page in generator:
File "/home/vssun/pywikipedia/pagegenerators.py", line 539, in AllpagesPageGenerator
includeredirects=includeredirects):
File "/home/vssun/pywikipedia/wikipedia.py", line 7130, in allpages
params['apfrom'] = data['query-continue']['allpages']['apfrom']
KeyError: 'apfrom'
'apfrom'
0 pages were changed.
Output of Version.py is given below
Pywikipedia [http] trunk/pywikipedia (r10461, 2012/07/22, 16:33:39)
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: André Malafaya Baptista (malafaya)
Date: 2012-07-28 04:37
Message:
Same with interwiki.py:
No changes needed on page [[es:Categoría:AN:Sustantivos]]
NOTE: The first unfinished subject is [[es:Categoría:ANG:Animales]]
NOTE: Number of pages queued is 99, trying to add 60 more.
Dump es (wiktionary) appended.
Traceback (most recent call last):
File "D:\Work\pywikipedia\interwiki.py", line 2583, in <module>
main()
File "D:\Work\pywikipedia\interwiki.py", line 2557, in main
bot.run()
File "D:\Work\pywikipedia\interwiki.py", line 2296, in run
self.queryStep()
File "D:\Work\pywikipedia\interwiki.py", line 2269, in queryStep
self.oneQuery()
File "D:\Work\pywikipedia\interwiki.py", line 2237, in oneQuery
site = self.selectQuerySite()
File "D:\Work\pywikipedia\interwiki.py", line 2210, in selectQuerySite
self.generateMore(globalvar.maxquerysize - mycount)
File "D:\Work\pywikipedia\interwiki.py", line 2118, in generateMore
page = self.pageGenerator.next()
File "D:\Work\pywikipedia\pagegenerators.py", line 1087, in
DuplicateFilterPag
eGenerator
for page in generator:
File "D:\Work\pywikipedia\pagegenerators.py", line 539, in
AllpagesPageGenerat
or
includeredirects=includeredirects):
File "D:\Work\pywikipedia\wikipedia.py", line 7130, in allpages
params['apfrom'] = data['query-continue']['allpages']['apfrom']
KeyError: 'apfrom'
Probable breaking changes in the API.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3550060&group_…
Bugs item #3550060, was opened at 2012-07-27 08:46
Message generated for change (Tracker Item Submitted) made by vssun
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3550060&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: vssun (vssun)
Assigned to: Nobody/Anonymous (nobody)
Summary: Replace.py crashes
Initial Comment:
Replace.py crashes after checking some 100s of pages. Last part of error message is given below
No changes were necessary in [[artesian well]]
No changes were necessary in [[artful]]
No changes were necessary in [[article]]
Traceback (most recent call last):
File "/home/vssun/pywikipedia/pagegenerators.py", line 1210, in __iter__
for page in self.wrapped_gen:
File "/home/vssun/pywikipedia/pagegenerators.py", line 1087, in DuplicateFilterPageGenerator
for page in generator:
File "/home/vssun/pywikipedia/pagegenerators.py", line 539, in AllpagesPageGenerator
includeredirects=includeredirects):
File "/home/vssun/pywikipedia/wikipedia.py", line 7130, in allpages
params['apfrom'] = data['query-continue']['allpages']['apfrom']
KeyError: 'apfrom'
'apfrom'
0 pages were changed.
Output of Version.py is given below
Pywikipedia [http] trunk/pywikipedia (r10461, 2012/07/22, 16:33:39)
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3550060&group_…
Bugs item #3547327, was opened at 2012-07-22 10:20
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3547327&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: cosmetic changes
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Harriv (harriv)
Assigned to: Nobody/Anonymous (nobody)
Summary: cosmetics_changes.py chokes on big article
Initial Comment:
I tried to create list of 55000+ page category with category.py and cosmetic_changes enabled. Script seems to hang for a very long time. If cosmetic changes are disable, this doesn't occur.
Here's stack trace when CTRL-C is pressed:
^CTraceback (most recent call last):
File "category.py", line 1005, in <module>
main()
File "category.py", line 998, in main
bot.run()
File "category.py", line 536, in run
self.list.put(listString, comment=self.editSummary)
File "/home/users/harriv/wikibot/tmp/pywikipedia/wikipedia.py", line 2005, in put
newtext = ccToolkit.change(newtext)
File "/home/users/harriv/wikibot/tmp/pywikipedia/cosmetic_changes.py", line 166, in change
text = self.cleanUpLinks(text)
File "/home/users/harriv/wikibot/tmp/pywikipedia/cosmetic_changes.py", line 517, in cleanUpLinks
'startspace'])
File "/home/users/harriv/wikibot/tmp/pywikipedia/pywikibot/textlib.py", line 135, in replaceExcept
excMatch = dontTouchR.search(text, index)
KeyboardInterrupt
Version info:
Pywikipedia [http] trunk/pywikipedia (r10461, 2012/07/22, 16:33:39)
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5]
config-settings:
use_api = True
use_api_login = True
unicode test: triggers problem #3081100
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-07-25 22:09
Message:
Doesn't stop means it also hangs or runs into infinite loop?
btw. You should not use python < 2.7.2 on mediawiki sites. Do not use it
with cosmetic changes and on several sites where the unicode bug is
affected. In general you shouldn't use interwiki.py or featured.py which
are dealing with multiple language sites.
----------------------------------------------------------------------
Comment By: Harriv (harriv)
Date: 2012-07-24 00:00
Message:
Script doesn't stop if cosmetic changes are disabled.
My hosting provider is using Debian, and they have not yet updated Python..
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-07-23 21:39
Message:
Oh and btw you should update your python to release 2.7.2/3 when you are
working on several language sites due to unicode bug.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-07-23 21:36
Message:
Have you checked this issue with cosmetic changes disabled?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3547327&group_…