https://bugzilla.wikimedia.org/show_bug.cgi?id=70447

            Bug ID: 70447
           Summary: movepages.py unable to login if no password.lwp is
                    present
           Product: Pywikibot
           Version: core (2.0)
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
       Web browser: ---
   Mobile Platform: ---

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to