jeblad created this task.
jeblad added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  Seems like a reordering of scripts has failed, and `purge` lacks its i14n 
directory. That is `scripts/i18n/purge`is missing. Probably other scripts are 
missing too.
  
    (.venv) john@hydra:~/pywikipedia/core$ python pwb.py touch -lang:no 
-family:wikipedia -file:"/home/john/unconnected.wiki"
    
    Retrieving 50 pages from wikipedia:no.
    
    0 pages read
    0 pages written
    Execution time: 0 seconds
    Script terminated by exception:
    
    ERROR: TranslationError: No English translation has been defined for 
TranslateWiki key
    "pywikibot-touch". It can happen due to lack of i18n submodule or
    files or an outdated submodule. See
    https://www.mediawiki.org/wiki/Manual:Pywikibot/i18n
    Traceback (most recent call last):
      File "pwb.py", line 250, in <module>
        if not main():
      File "pwb.py", line 243, in main
        run_python_file(filename, [filename] + args, argvu, file_package)
      File "pwb.py", line 95, in run_python_file
        main_mod.__dict__)
      File "./scripts/touch.py", line 135, in <module>
        main()
      File "./scripts/touch.py", line 127, in main
        bot.run()
      File "/home/john/pywikipedia/core/pywikibot/bot.py", line 1702, in run
        super(MultipleSitesBot, self).run()
      File "/home/john/pywikipedia/core/pywikibot/bot.py", line 1505, in run
        self.treat(page)
      File "./scripts/touch.py", line 60, in treat
        page.touch(botflag=self.getOption('botflag'))
      File "/home/john/pywikipedia/core/pywikibot/page.py", line 1425, in touch
        summary = i18n.twtranslate(self.site, 'pywikibot-touch')
      File "/home/john/pywikipedia/core/pywikibot/tools/__init__.py", line 
1738, in wrapper
        return obj(*__args, **__kw)
      File "/home/john/pywikipedia/core/pywikibot/i18n.py", line 758, in 
twtranslate
        twtitle, __url__)))
    pywikibot.i18n.TranslationError: No English translation has been defined 
for TranslateWiki key
    "pywikibot-touch". It can happen due to lack of i18n submodule or
    files or an outdated submodule. See
    https://www.mediawiki.org/wiki/Manual:Pywikibot/i18n
    CRITICAL: Exiting due to uncaught exception <class 
'pywikibot.i18n.TranslationError'>
  
  Doing a
  
    git pull origin stable --recurse-submodules
  
  I get
  
    From https://gerrit.wikimedia.org/r/pywikibot/core
     * tag                 stable     -> FETCH_HEAD
    Fetching submodule scripts/i18n
    Already up to date.
    error: Your local changes to the following files would be overwritten by 
checkout:
        .travis.yml
        Gruntfile.js
        add_text/aeb.json
        add_text/an.json
    … 
        category/
    Aborting
    Unable to checkout '1b27d7923e2101b788b234b932681c82ed740fa7' in submodule 
path 'scripts/i18n'

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

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

To: jeblad
Cc: Aklapper, pywikibot-bugs-list, jeblad, Wenyi, Tbscho, MayS, Mdupont, 
JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to