Last modified: 2014-08-07 07:50:26 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T61013, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59013 - KeyError in site.py in token function when token type is "move"
KeyError in site.py in token function when token type is "move"
Status: RESOLVED WORKSFORME
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-28 10:42 UTC by pyfisch
Modified: 2014-08-07 07:50 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Terminal output (3.26 KB, text/plain)
2013-12-28 10:42 UTC, pyfisch
Details

Description pyfisch 2013-12-28 10:42:14 UTC
Created attachment 14181 [details]
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.
Comment 1 Sorawee Porncharoenwase 2014-02-06 18:23:50 UTC
This is strange. I can move my page by bot normally. Are you still facing this problem?
Comment 2 pyfisch 2014-04-17 18:16:06 UTC
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.
Comment 3 Mpaa 2014-04-18 17:03:36 UTC
python category.py move -simulate -lang:en -v
Works for me in Core on wikipedia on Category:Contents
Comment 4 John Mark Vandenberg 2014-07-25 21:32:48 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links