https://bugzilla.wikimedia.org/show_bug.cgi?id=59013
Web browser: --- Bug ID: 59013 Summary: KeyError in site.py in token function when token type is "move" Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: pyfisch@googlemail.com Classification: Unclassified Mobile Platform: ---
Created attachment 14181 --> https://bugzilla.wikimedia.org/attachment.cgi?id=14181&action=edit Terminal output
There is only an "edittoken" and no "movetoken" in the item dict:
{u'lastrevid': 503550838, u'pageid': 17875787, u'title': u'Category talk:Contents', u'starttimestamp': u'2013-12-28T10:25:42Z', u'counter': u'', u'length': 1820, u'contentmodel': u'wikitext', u'pagelanguage': u'en', u'touched': u'2013-08-05T20:18:23Z', u'ns': 15}
A complete log is in the attachment.
https://bugzilla.wikimedia.org/show_bug.cgi?id=59013
Sorawee Porncharoenwase nullzero.free@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nullzero.free@gmail.com
--- Comment #1 from Sorawee Porncharoenwase nullzero.free@gmail.com --- This is strange. I can move my page by bot normally. Are you still facing this problem?
https://bugzilla.wikimedia.org/show_bug.cgi?id=59013
--- Comment #2 from pyfisch@googlemail.com --- Yes, I am still facing this problem, but only in simulation mode and on en:Category:Contents if moving en:Category:Contents to a different target before. I am using the most current version from git.
https://bugzilla.wikimedia.org/show_bug.cgi?id=59013
Mpaa mpaa.wiki@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mpaa.wiki@gmail.com
--- Comment #3 from Mpaa mpaa.wiki@gmail.com --- python category.py move -simulate -lang:en -v Works for me in Core on wikipedia on Category:Contents
https://bugzilla.wikimedia.org/show_bug.cgi?id=59013
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |jayvdb@gmail.com Resolution|--- |WORKSFORME
--- Comment #4 from John Mark Vandenberg jayvdb@gmail.com --- It looks like this code has changed, as it now throws an exception.
$ python pwb.py category.py move -simulate -lang:en -v -from:Category:Contents -to:Category:ContentsX .... SIMULATION: move action blocked. Site("en", "wikipedia").login(False) called when a previous login was in progress. Error saving page [[Category:ContentsX]] (Page [[en:Category:ContentsX]] doesn't exist.) ...backtrace... PageNotSaved: [[Category:ContentsX]]: Page [[en:Category:ContentsX]] doesn't exist.
Please re-open if the problem still exists with the current code.
pywikipedia-bugs@lists.wikimedia.org