Page MenuHomePhabricator

commonscat.py crashes after start
Closed, ResolvedPublic

Description

When I run commonscat.py on Ru.WP it crashes quickly.

tools.rubinbot2@tools-login:~/core$ python pwb.py commonscat.py -start:Category:!
WARNING: CommonscatBot.__init__ set the Bot.site property; this is only needed when the Bot accesses many sites.
Retrieving 50 pages from wikipedia:ru.


>>> Категория:1004 год до н. э. <<<


>>> Категория:1000 год до н. э. <<<
Commons category does not exist. Examining deletion log...
Traceback (most recent call last):
  File "pwb.py", line 222, in <module>
    run_python_file(filename, argv, argvu, file_package)
  File "pwb.py", line 81, in run_python_file
    main_mod.__dict__)
  File "./scripts/commonscat.py", line 569, in <module>
    main()
  File "./scripts/commonscat.py", line 563, in main
    bot.run()
  File "/data/project/rubinbot2/core/pywikibot/bot.py", line 1115, in run
    self.treat(page)
  File "./scripts/commonscat.py", line 270, in treat
    self.addCommonscat(page)
  File "./scripts/commonscat.py", line 347, in addCommonscat
    commonscatLink = self.findCommonscatLink(page)
  File "./scripts/commonscat.py", line 418, in findCommonscatLink
    checkedCommonscat = self.checkCommonscatLink(possibleCommonscat)
  File "./scripts/commonscat.py", line 476, in checkCommonscatLink
    logitem = next(logpages)
TypeError: LogEntryListGenerator object is not an iterator
<type 'exceptions.TypeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
tools.rubinbot2@tools-login:~/core$

Details

Related Gerrit Patches:

Event Timeline

Rubin16 created this task.Jan 10 2015, 11:54 AM
Rubin16 raised the priority of this task from to Normal.
Rubin16 updated the task description. (Show Details)
Rubin16 added a project: Pywikibot.
Rubin16 added a subscriber: Rubin16.
Mpaa claimed this task.Jan 10 2015, 8:46 PM
XZise renamed this task from commoscat.py crashes after start to commonscat.py crashes after start.Jan 10 2015, 8:48 PM
XZise updated the task description. (Show Details)
XZise set Security to None.

Change 184155 had a related patch set uploaded (by Mpaa):
commoncat.py: align with LogEntry structure in core

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

Patch-For-Review

Change 184155 merged by jenkins-bot:
commoncat.py: align with LogEntry structure in core

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

Mpaa closed this task as Resolved.Jan 10 2015, 9:58 PM
Mpaa removed a project: Patch-For-Review.