Page MenuHomePhabricator failure => got multiple values for keyword argument 'site'
Closed, DuplicatePublicBUG REPORT


List of steps to reproduce (step by step, including full links if applicable):
Running command to extract work all get the same error

  • python3 scripts/ -djvu:The_Strand_Magazine_\(Volume_4\).djvu -index::The_Strand_Magazine_\(Volume_4\).djvu
  • python3 scripts/ -djvu:The_Strand_Magazine_\(Volume_4\).djvu -index::The_Strand_Magazine_\(Volume_4\).djvu -lang:en -family:wikisource
  • python3 scripts/ -djvu:The_Strand_Magazine_\(Volume_4\).djvu -index::The_Strand_Magazine_\(Volume_4\).djvu -site:wikisource:en

What happens?:

billinghurst@tools-sgebastion-07:~/wikisource-bot$ python3 scripts/ -djvu:The_Strand_Magazine_\(Volume_4\).djvu -index::The_Strand_Magazine_\(Volume_4\).djvu  -site:wikisource:en
uploading text from /mnt/nfs/labstore-secondary-tools-project/wikisource-bot/The_Strand_Magazine_(Volume_4).djvu to [[Index:The Strand Magazine (Volume 4).djvu]]
ERROR: Fatal error:
Traceback (most recent call last):
  File "scripts/", line 204, in <module>
  File "scripts/", line 198, in main
    bot = DjVuTextBot(djvu, index_page, pages=pages, site=site, **options)
  File "scripts/", line 68, in __init__
    super().__init__(, **kwargs)
TypeError: __init__() got multiple values for keyword argument 'site'

What should have happened instead?:

It should start to extract the files and apply the layers at enWS

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:

Related Objects