Page MenuHomePhabricator fails to run because of incorrect number of arguments given to __init__()
Closed, ResolvedPublic


Pywikibot currently installed on Tool Labs has a buggy that fails to run even in a minimalistic setup:

$ python /shared/pywikipedia/core/scripts/ -page:SomePage -summary:someSummary fromString toString
Traceback (most recent call last):
  File "/shared/pywikipedia/core/scripts/", line 969, in <module>
  File "/shared/pywikipedia/core/scripts/", line 958, in main
  File "/shared/pywikipedia/core/pywikibot/tools/", line 1102, in wrapper
    return obj(*__args, **__kw)
TypeError: __init__() takes at most 10 arguments (11 given)
<type 'exceptions.TypeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort

Event Timeline

Blahma created this task.Jun 2 2015, 10:25 PM
Blahma raised the priority of this task from to High.
Blahma updated the task description. (Show Details)
Blahma added a project: Pywikibot.
Blahma added a subscriber: Blahma.
Restricted Application added subscribers: Aklapper, Unknown Object (MLST). · View Herald TranscriptJun 2 2015, 10:25 PM
XZise claimed this task.Jun 2 2015, 10:45 PM
XZise added a subscriber: XZise.

Yep 5d832536 has introduced that bug.

Change 215536 had a related patch set uploaded (by XZise):
[FIX] replace: Allow site to be given positionally

Change 215536 merged by jenkins-bot:
[FIX] replace: Allow site to be given positionally

Ricordisamoa closed this task as Resolved.Jun 2 2015, 11:37 PM
Ricordisamoa removed a project: Patch-For-Review.
Ricordisamoa set Security to None.
Ricordisamoa edited subscribers, added: Ricordisamoa; removed: gerritbot.