Last modified: 2014-08-22 17:56:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71889, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69889 - unexpected keyword argument 'site' while moving category
unexpected keyword argument 'site' while moving category
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
category.py (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-22 08:13 UTC by JAn Dudík
Modified: 2014-08-22 17:56 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description JAn Dudík 2014-08-22 08:13:42 UTC
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
Comment 1 Gerrit Notification Bot 2014-08-22 09:04:05 UTC
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
Comment 2 Mpaa 2014-08-22 09:08:11 UTC
Next time please leave at least one failing case to allow to reproduce the bug.
Kategória:Obce_v_Lypoveckom_rajóne was empty.
Comment 3 Gerrit Notification Bot 2014-08-22 12:53:48 UTC
Change 155699 merged by jenkins-bot:
Bug 69889-unexpected keyword argument 'site' while moving category

https://gerrit.wikimedia.org/r/155699

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links