Page MenuHomePhabricator

TranslationError : scripts/i18n submodule not fetched
Closed, ResolvedPublic

Description

The git submodule scripts/i18n is necessary for running scripts.

/srv/pwb/pwb.py add_text -page:"test" -text:"Hello world." 

Traceback (most recent call last):                                                                                                        
  File "/srv/pwb/pwb.py", line 248, in <module>                                                                                           
    if not main():                                                                                                                        
  File "/srv/pwb/pwb.py", line 242, in main                                                                                               
    run_python_file(filename, [filename] + args, argvu, file_package)                                                                     
  File "/srv/pwb/pwb.py", line 120, in run_python_file                                                                                    
    main_mod.__dict__)                                                                                                                    
  File "/srv/pwb/scripts/add_text.py", line 362, in <module>                                                                              
    main()                                                                                                                                
  File "/srv/pwb/scripts/add_text.py", line 359, in main                                                                                  
    create=talkPage)                                                                                                                      
  File "/srv/pwb/scripts/add_text.py", line 132, in add_text                                                                              
    {'adding': addText[:200]})                                                                                                            
  File "/srv/pwb/pywikibot/i18n.py", line 594, in twtranslate                                                                             
    % (_messages_package_name, twtitle, __url__))                                                                                         
pywikibot.i18n.TranslationError: Unable to load messages package scripts.i18n for bundle add_text-adding                                  
It can happen due to lack of i18n submodule or files. Read https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Pywikibot/i18n        
<class 'pywikibot.i18n.TranslationError'>                                                                                                 
CRITICAL: Closing network session.

Event Timeline

jayvdb raised the priority of this task from to Medium.
jayvdb updated the task description. (Show Details)
jayvdb added a project: PAWS.

ah, ok, let me rebuild with submodule fetch too

yuvipanda claimed this task.

This works now