Last modified: 2014-09-05 23:31:04 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 T72447, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70447 - movepages.py unable to login if no password.lwp is present
movepages.py unable to login if no password.lwp is present
Status: RESOLVED FIXED
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: 2014-09-05 17:21 UTC by Mpaa
Modified: 2014-09-05 23:31 UTC (History)
0 users

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


Attachments

Description Mpaa 2014-09-05 17:21:09 UTC
After deleting password.lwp, it was unable to login with right username and rights.
Move action then fails.

To recover, I tried replace.py, who asked for a password, and then movepages.py was OK again.

Looks like replace.py has superpowers compared to movepages.py



user@pc:~/python/core {master}$ python scripts/movepages.py -pairs:pairs.txt -summary:"Bot request: move after Index move" -noredirect -pt:0
Moving page [[Page:Ackermann’s Repository of Arts 1809-v01-Jan-Jun.djvu/1]] to [[Page:Repository of Arts, Series 1, Volume 01, 1809, January-June.djvu/1]]
WARNING: API warning (tokens): action=tokens has been deprecated. Please use action=query&meta=tokens instead.
Action 'move' is not allowed for the current user
Traceback (most recent call last):
  File "scripts/movepages.py", line 283, in <module>
    main()
  File "scripts/movepages.py", line 271, in main
    bot.moveOne(page, pair[1])
  File "scripts/movepages.py", line 80, in moveOne
    deleteAndMove=self.getOption('noredirect'))
  File "/home/user/python/core/pywikibot/tools.py", line 315, in wrapper
    return method(*__args, **__kw)
  File "/home/user/python/core/pywikibot/page.py", line 1458, in move
    noredirect=deleteAndMove)
  File "/home/user/python/core/pywikibot/site.py", line 3606, in movepage
    token = self.tokens['move']
  File "/home/user/python/core/pywikibot/site.py", line 1168, in __getitem__
    storage = self.site._tokens.setdefault(self.site.user(), {})
KeyError: 'move'
<type 'exceptions.KeyError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
Comment 1 Mpaa 2014-09-05 23:31:04 UTC
https://gerrit.wikimedia.org/r/#/c/158805/ merged

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


Navigation
Links