https://bugzilla.wikimedia.org/show_bug.cgi?id=69889
Bug ID: 69889 Summary: unexpected keywrod argument 'site' while moving category Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: category.py Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jan.dudik@gmail.com Web browser: --- Mobile Platform: ---
I want to rename category. I usually do it in compat, but this time I tried core, because developers says that compat is deprecated.
pwb.py category move -lang:sk -from:Obce_v_Lypoveckom_rajóne -to:Dediny_v_Lypoveckom_rajóne
Retrieving 50 pages from wikipedia:sk. Traceback (most recent call last): File "D:\Py\rewrite\pwb.py", line 171, in <module> run_python_file(fn, argv, argvu) File "D:\Py\rewrite\pwb.py", line 69, in run_python_file exec(compile(source, filename, "exec"), main_mod.__dict__) File "D:\Py\rewrite\scripts\category.py", line 1173, in <module> main() File "D:\Py\rewrite\scripts\category.py", line 1162, in main bot.run() File "D:\Py\rewrite\scripts\category.py", line 548, in run self._change(pagegenerators.CategorizedPageGenerator(self.oldcat)) File "D:\Py\rewrite\scripts\category.py", line 580, in _change inPlace=self.inplace) File "D:\Py\rewrite\pywikibot\page.py", line 1709, in change_category site=self.site) File "D:\Py\rewrite\pywikibot\tools.py", line 310, in wrapper return method(*__args, **__kw) TypeError: __init__() got an unexpected keyword argument 'site' <type 'exceptions.TypeError'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
Note: sk is not my default language, target category already exists
In compat it works as expected
https://bugzilla.wikimedia.org/show_bug.cgi?id=69889
--- Comment #1 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 155699 had a related patch set uploaded by Mpaa: Bug 69889-unexpected keyword argument 'site' while moving category
https://gerrit.wikimedia.org/r/155699
https://bugzilla.wikimedia.org/show_bug.cgi?id=69889
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=69889
Mpaa mpaa.wiki@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mpaa.wiki@gmail.com Summary|unexpected keywrod argument |unexpected keyword argument |'site' while moving |'site' while moving |category |category
https://bugzilla.wikimedia.org/show_bug.cgi?id=69889
--- Comment #2 from Mpaa mpaa.wiki@gmail.com --- Next time please leave at least one failing case to allow to reproduce the bug. Kategória:Obce_v_Lypoveckom_rajóne was empty.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69889
--- Comment #3 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 155699 merged by jenkins-bot: Bug 69889-unexpected keyword argument 'site' while moving category
https://gerrit.wikimedia.org/r/155699
https://bugzilla.wikimedia.org/show_bug.cgi?id=69889
Mpaa mpaa.wiki@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED Resolution|--- |FIXED
pywikipedia-bugs@lists.wikimedia.org