Page MenuHomePhabricator

CategoryTidyRobot fails using CategoryPreprocess class
Closed, ResolvedPublic

Description

$ python pwb.py category tidy
Which category do you want to tidy up? Počítače
Traceback (most recent call last):
  File "pwb.py", line 251, in <module>
    if not main():
  File "pwb.py", line 244, in main
    run_python_file(filename, [filename] + args, argvu, file_package)
  File "pwb.py", line 115, in run_python_file
    main_mod.__dict__)
  File "./scripts/category.py", line 1413, in <module>
    main()
  File "./scripts/category.py", line 1377, in main
    bot = CategoryTidyRobot(catTitle, catDB, genFactory.namespaces)
  File "./scripts/category.py", line 984, in __init__
    self.cat.members(namespaces=namespaces)))
  File "/home/pavel/pywikibot/pywikibot/bot.py", line 1494, in __init__
    super(Bot, self).__init__(**kwargs)
TypeError: __init__() got an unexpected keyword argument 'generator'
<class 'TypeError'>
CRITICAL: Closing network session.

Event Timeline

Xqt triaged this task as High priority.May 19 2018, 3:03 PM

Change 434205 had a related patch set uploaded (by Dvorapa; owner: Dvorapa):
[pywikibot/core@master] [bugfix] Revert getting members back to articles in category tidy

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

Xqt claimed this task.

Change 434205 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] Revert getting members back to articles in category tidy

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

Not solved, just reverted failure

Dvorapa renamed this task from Resolve a different behavior of articles and members in pywikibot.Category to CategoryTidyRobot fails using CategoryPreprocess class.May 20 2018, 11:16 PM
Dvorapa updated the task description. (Show Details)

Change 434277 had a related patch set uploaded (by Dvorapa; owner: Dvorapa):
[pywikibot/core@master] [bugfix] Fix class handling for category tidy

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

Dvorapa edited projects, added Pywikibot-Scripts; removed Pywikibot-General.
Dvorapa added a subscriber: Xqt.

Change 434277 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] Fix class handling for category add and tidy

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

Vvjjkkii renamed this task from CategoryTidyRobot fails using CategoryPreprocess class to xocaaaaaaa.Jul 1 2018, 1:09 AM
Vvjjkkii reopened this task as Open.
Vvjjkkii removed Dvorapa as the assignee of this task.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed subscribers: gerritbot, Aklapper.