Billinghurst created this task.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  When attempting to use djuvtext.py, using syntax used previously, I am 
getting the error
  
    tools.wikisource-bot@tools-bastion-05:~$ python pwb.py djvutext.py -lang:en 
-family:wikisource -djvu:Melbourne_and_Mars.djvu -index:Melbourne_and_Mars.djvu 
-pages:107-116
    uploading text from /data/project/wikisource-bot/Melbourne_and_Mars.djvu to 
[[Index:Melbourne and Mars.djvu]]
    
    0 pages read
    0 pages written
    Execution time: 0 seconds
    Script terminated by exception:
    
    ERROR: ValueError: Page Melbourne and Mars.djvu/107 must belong to Page: 
namespace
    ERROR: Fatal error:
    Traceback (most recent call last):
      File "./scripts/djvutext.py", line 206, in <module>
        main()
      File "./scripts/djvutext.py", line 202, in main
        bot.run()
      File "/data/project/pywikibot/public_html/core/pywikibot/bot.py", line 
1395, in run
        for page in self.generator:
      File "./scripts/djvutext.py", line 104, in gen
        page = ProofreadPage(self._index.site, title)
      File 
"/data/project/pywikibot/public_html/core/pywikibot/proofreadpage.py", line 98, 
in __init__
        % (self.title(), site.proofread_page_ns))
    `
  
  I can see one code change in gerrit since I last utilised the script.
  
  The target is https://en.wikisource.org/wiki/Index:Melbourne_and_Mars.djvu
  The source is a local copy of 
https://commons.wikimedia.org/wiki/File:Melbourne_and_Mars.djvu
  (source used: wget 
https://upload.wikimedia.org/wikipedia/commons/8/86/Melbourne_and_Mars.djvu)
  
  I can reproduce separately with a different file

TASK DETAIL
  https://phabricator.wikimedia.org/T130908

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Billinghurst
Cc: Aklapper, pywikibot-bugs-list, Billinghurst



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to