Page MenuHomePhabricator

djvutext.py failure => got multiple values for keyword argument 'site'
Closed, DuplicatePublicBUG REPORT

Description

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/djvutext.py -djvu:The_Strand_Magazine_\(Volume_4\).djvu -index::The_Strand_Magazine_\(Volume_4\).djvu
  • python3 scripts/djvutext.py -djvu:The_Strand_Magazine_\(Volume_4\).djvu -index::The_Strand_Magazine_\(Volume_4\).djvu -lang:en -family:wikisource
  • python3 scripts/djvutext.py -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/djvutext.py -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/djvutext.py", line 204, in <module>
    main()
  File "scripts/djvutext.py", line 198, in main
    bot = DjVuTextBot(djvu, index_page, pages=pages, site=site, **options)
  File "scripts/djvutext.py", line 68, in __init__
    super().__init__(site=index.site, **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