I get the error message Logged in on wikipedia:de via OAuth as Herzi Pinki, but expect as ISO 3166 Bot
family = "wikipedia" mylang='de' usernames['wikipedia']['de'] = u'ISO 3166 Bot'
I used my global account Herzi Pinki to log in with OAuth to paws. How can I change user on paws to run my scripts under the bot user?
(I tried to set up paws access for the other user 'ISO 3166 Bot', could authenticate via OAuth, but then could not start myServer. See T185434).
Traceback (most recent call last): File "/srv/paws/pwb/pwb.py", line 264, in <module> if not main(): File "/srv/paws/pwb/pwb.py", line 257, in main run_python_file(filename, [filename] + args, argvu, file_package) File "/srv/paws/pwb/pwb.py", line 121, in run_python_file main_mod.__dict__) File "/srv/paws/pwb/scripts/login.py", line 196, in <module> main() File "/srv/paws/pwb/scripts/login.py", line 179, in main site.login(sysop, autocreate=autocreate) File "/srv/paws/pwb/pywikibot/site.py", line 2108, in login right=self._username[sysop])) pywikibot.exceptions.NoUsername: Logged in on wikipedia:de via OAuth as Herzi Pinki, but expect as ISO 3166 Bot CRITICAL: Closing network session. <class 'pywikibot.exceptions.NoUsername'>