Page MenuHomePhabricator

djvutxt.py raising TypeError
Closed, ResolvedPublicBUG REPORT

Description

user@pc:~/python/core {master}$ python scripts/djvutext.py -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/djvutext.py", line 205, in <module>
    main()
  File "scripts/djvutext.py", line 199, in main
    bot = DjVuTextBot(djvu, index_page, pages=pages, site=site, **options)
  File "scripts/djvutext.py", line 69, in __init__
    super().__init__(site=index.site, **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

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

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

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