Ruthven reopened this task as "Open".
Ruthven added a comment.
Hi all, sorry to reopen this, but I think that problem I encountered is
related.
I am using delete.py under PAWS. I applied the patch above, but I obtain the
same result: not being able to "undelete" files in a project where I am sysop.
> @PAWS:~$ pwb.py login -family:commons -lang:commons
> Logged in on commons:commons as Ruthven.
> @PAWS:~$ pwb.py scripts/delete -undelete -file:ff -summary:"OTRS
[[ticket:2019121410003163]]" -lang:commons -family:commons
> File:Luigi Martignon 1969 - Jole.jpg <<<
> 0 pages read
> 0 pages written
> Execution time: 0 seconds
> Script terminated by exception:
> ERROR: NoUsername: No sysop is permitted with OAuth
> Traceback (most recent call last):
>
> File "/srv/paws/pwb/pwb.py", line 250, in <module>
> if not main():
> File "/srv/paws/pwb/pwb.py", line 243, in main
> run_python_file(filename, [filename] + args, argvu, file_package)
> File "/srv/paws/pwb/pwb.py", line 95, in run_python_file
> main_mod.__dict__)
> File "scripts/delete.py", line 307, in <module>
> main()
> File "scripts/delete.py", line 299, in main
> bot.run()
> File "/srv/paws/pwb/pywikibot/bot.py", line 1702, in run
> super(MultipleSitesBot, self).run()
> File "/srv/paws/pwb/pywikibot/bot.py", line 1505, in run
> self.treat(page)
> File "/srv/paws/pwb/pywikibot/bot.py", line 1732, in treat
> self.treat_page()
> File "scripts/delete.py", line 197, in treat_page
> self.current_page.undelete(self.summary)
> File "/srv/paws/pwb/pywikibot/tools/__init__.py", line 1738, in wrapper
> return obj(*__args, **__kw)
> File "/srv/paws/pwb/pywikibot/page.py", line 2030, in undelete
> self.site.undelete_page(self, reason, undelete_revs)
> File "/srv/paws/pwb/pywikibot/site.py", line 1317, in callee
> self.login(True)
> File "/srv/paws/pwb/pywikibot/site.py", line 2080, in login
> raise NoUsername('No sysop is permitted with OAuth')
>
> pywikibot.exceptions.NoUsername: No sysop is permitted with OAuth
> CRITICAL: Exiting due to uncaught exception <class
'pywikibot.exceptions.NoUsername'>
TASK DETAIL
https://phabricator.wikimedia.org/T233608
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Huji, Ruthven
Cc: Ruthven, jhsoby, Dvorapa, Framawiki, Mpaa, Xqt, Huji, Aklapper,
pywikibot-bugs-list, revi, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont,
JJMC89, Altostratus, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista,
Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs