Page MenuHomePhabricator
Paste P9269

movepages.py failing in hiwikisource
ActivePublic

Authored by jhsoby on Oct 8 2019, 9:02 PM.
Referenced Files
F30594493: raw.txt
Oct 8 2019, 9:02 PM
Subscribers
None
jhsoby@jhsoby:~/pywikibot$ python3 pwb.py movepages -family:wikisource -lang:hi -pairsfile:hiwikisource-move.txt -noredirect -pt:1
Moving page [[पृष्ठ:Aaj Bhi Khare Hain Talaab (Hindi).pdf/113]] to [[पृष्ठ:Aaj Bhi Khare Hain Talaab (Hindi).pdf/११३]]
Moving page [[पृष्ठ:Aaj Bhi Khare Hain Talaab (Hindi).pdf/114]] to [[पृष्ठ:Aaj Bhi Khare Hain Talaab (Hindi).pdf/११४]]
WARNING: API error cantmove: You do not have permission to move pages.
Traceback (most recent call last):
File "/home/jhsoby/pywikibot/pywikibot/site.py", line 5516, in movepage
result = req.submit()
File "/home/jhsoby/pywikibot/pywikibot/data/api.py", line 2080, in submit
raise APIError(**result['error'])
pywikibot.data.api.APIError: cantmove: You do not have permission to move pages. [help:See https://hi.wikisource.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes.]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "pwb.py", line 297, in <module>
if not main():
File "pwb.py", line 292, in main
run_python_file(filename, [filename] + args, argvu, file_package)
File "pwb.py", line 96, in run_python_file
main_mod.__dict__)
File "./scripts/movepages.py", line 271, in <module>
main()
File "./scripts/movepages.py", line 255, in main
bot.moveOne(page, pair[1])
File "./scripts/movepages.py", line 89, in moveOne
noredirect=self.getOption('noredirect'))
File "/home/jhsoby/pywikibot/pywikibot/tools/__init__.py", line 1744, in wrapper
return obj(*__args, **__kw)
File "/home/jhsoby/pywikibot/pywikibot/tools/__init__.py", line 1827, in wrapper
return obj(*new_args, **new_kwargs)
File "/home/jhsoby/pywikibot/pywikibot/page.py", line 1902, in move
noredirect=noredirect)
File "/home/jhsoby/pywikibot/pywikibot/site.py", line 1323, in callee
return fn(self, *args, **kwargs)
File "/home/jhsoby/pywikibot/pywikibot/site.py", line 5553, in movepage
raise Error(on_error % errdata)
pywikibot.exceptions.Error: User JhsBot is not authorized to move pages on wikisource:hi wiki
CRITICAL: Exiting due to uncaught exception <class 'pywikibot.exceptions.Error'>

Event Timeline

jhsoby updated the paste's language from python to autodetect.