Page MenuHomePhabricator raising TypeError
Closed, ResolvedPublicBUG REPORT


user@pc:~/python/core {master}$ python scripts/ -index:Works_Translated_by_William_Whiston.djvu -djvu:Works_Translated_by_William_Whiston.djvu -pages:551-778 -summary:"upload text from djvu file" -force -simulate

uploading text from /home/user/python/core/Works_Translated_by_William_Whiston.djvu to [[Index:Works Translated by William Whiston.djvu]]

ERROR: Fatal error:
Traceback (most recent call last):
  File "scripts/", line 205, in <module>
  File "scripts/", line 199, in main
    bot = DjVuTextBot(djvu, index_page, pages=pages, site=site, **options)
  File "scripts/", line 69, in __init__
    super().__init__(, **kwargs)
TypeError: __init__() got multiple values for keyword argument 'site'

Event Timeline

Change 725452 had a related patch set uploaded (by Mpaa; author: Mpaa):

[pywikibot/core@master] [bugfix] pass site arg only once to DjVuTextBot

JJMC89 assigned this task to Mpaa.
JJMC89 added a project: Pywikibot-Scripts.
JJMC89 updated the task description. (Show Details)
JJMC89 removed a project: Patch-For-Review.

Change 725452 merged by jenkins-bot:

[pywikibot/core@master] [bugfix] pass site arg only once to DjVuTextBot