Urbanecm added a comment. |
Just login on Commons manually before you run the bot for the first time.
Dne so 15. čvc 2017 21:06 uživatel WalterKlosse <
no-re...@phabricator.wikimedia.org> napsal:
WalterKlosse added a comment.
I have the same problem after i login i write pwb.py commonscat
-start:Category:! -summary:Přidáno commonscat za použití bota and it
respond this:
WARNING CommonscatBot.*init* set the Bot.site property; this is only
needed when the Bot accesses many sites.Retrieving 50 pages from wikipedia:cs.
Kategorie:'s-Hertogenbosch <<<
Commonscat template is already on Kategorie:'s-Hertogenbosch
WARNING API error mwoauth-invalid-authorization-invalid-user: The
authorization headers in your request are for a user that does not exist
here0 pages read
0 pages written
Execution time: 1 seconds
Script terminated by exception:
ERROR NoUsername: Failed OAuth authentication for commons:commons: The
authorization headers in your request are for a user that does not existhere
Traceback (most recent call last):
File "/srv/paws/pwb/pwb.py", line 263, 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/commonscat.py", line 549, in <module>
main()File "/srv/paws/pwb/scripts/commonscat.py", line 541, in main
bot.run()File "/srv/paws/pwb/pywikibot/bot.py", line 1525, in run
super(Bot, self).run()File "/srv/paws/pwb/pywikibot/bot.py", line 1434, in run
self.treat(page)File "/srv/paws/pwb/scripts/commonscat.py", line 254, in treat
self.addCommonscat(page)File "/srv/paws/pwb/scripts/commonscat.py", line 305, in addCommonscat
currentCommonscatTarget)File "/srv/paws/pwb/scripts/commonscat.py", line 453, in checkCommonscatLink
commonsPage = pywikibot.Page(commonsSite, "Category:" + name)File "/srv/paws/pwb/pywikibot/tools/__init__.py", line 1448, in wrapper
return obj(*__args, **__kw)File "/srv/paws/pwb/pywikibot/page.py", line 2179, in init
super(Page, self).__init__(source, title, ns)File "/srv/paws/pwb/pywikibot/page.py", line 163, in init
self._link = Link(title, source=source, defaultNamespace=ns)File "/srv/paws/pwb/pywikibot/page.py", line 5086, in init
self._defaultns = self._source.namespaces[defaultNamespace]File "/srv/paws/pwb/pywikibot/site.py", line 1014, in namespaces
self._namespaces = NamespacesDict(self._build_namespaces())File "/srv/paws/pwb/pywikibot/site.py", line 2612, in _build_namespaces
is_mw114 = MediaWikiVersion(self.version()) >= MediaWikiVersion('1.14')File "/srv/paws/pwb/pywikibot/site.py", line 2725, in version
version = self.siteinfo.get('generator', expiry=1).split(' ')[1]File "/srv/paws/pwb/pywikibot/site.py", line 1676, in get
preloaded = self._get_general(key, expiry)File "/srv/paws/pwb/pywikibot/site.py", line 1622, in _get_general
default_info = self._get_siteinfo(props, expiry)File "/srv/paws/pwb/pywikibot/site.py", line 1548, in _get_siteinfo
data = "">File "/srv/paws/pwb/pywikibot/data/api.py", line 2342, in submit
self._data = super(CachedRequest, self).submit()File "/srv/paws/pwb/pywikibot/data/api.py", line 2175, in submit
% (self.site, info))pywikibot.exceptions.NoUsername: Failed OAuth authentication for
commons:commons: The authorization headers in your request are for a user
thatdoes not exist here
<class 'pywikibot.exceptions.NoUsername'>
CRITICAL: Closing network session.
*TASK DETAIL*
https://phabricator.wikimedia.org/T136114*EMAIL PREFERENCES*
https://phabricator.wikimedia.org/settings/panel/emailpreferences/*To: *WalterKlosse
*Cc: *WalterKlosse, MarcoAurelio, Abbe98, pywikibot-bugs-list, Framawiki,
Tgr, matej_suchanek, Urbanecm, Dvorapa, Zppix, Jane023, yuvipanda,
Capt_Swing, Krenair
Cc: WalterKlosse, MarcoAurelio, Abbe98, pywikibot-bugs-list, Framawiki, Tgr, matej_suchanek, Urbanecm, Dvorapa, Zppix, Jane023, yuvipanda, Capt_Swing, Krenair
_______________________________________________ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs