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: [email protected]
Reporter: [email protected]
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
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l