[translations] Re: Side effects of MR 84 with scripts

[ Thread Index | Date Index | More lilynet.net/translations Archives ]


Le 09/08/2020 à 13:12, Han-Wen Nienhuys a écrit :
On Sun, Aug 9, 2020 at 12:44 PM Han-Wen Nienhuys <hanwenn@xxxxxxxxx> wrote:

make translation-status
translations-status.py
Reading documents...
Generating status pages...
translations-status.py:717: warning: using markup = TexiMarkup (): ugly
HTML
      output, questionable PDF and info output.
      Consider using HTML-only markup = HTMLMarkup ()
Traceback (most recent call last):
    File
"/home/jcharles/GIT/Traduc/scripts/auxiliar/translations-status.py",
line 817, in <module>
      open(os.path.join(l, 'en/translations.itexi'),
'w').write(lang_status_page)
FileNotFoundError: [Errno 2] No such file or directory:
'ca/en/translations.itexi'
make: *** [GNUmakefile:483: translation-status] Error 1


thanks; there was a straightforward problem that I have a fix for, but now
I get

  Traceback (most recent call last):
   File "/home/hanwen/vc/lilypond/scripts/auxiliar/translations-status.py",
line 782, in <module>
     master_docs = [MasterTelyDocument(os.path.normpath(filename))
   File "/home/hanwen/vc/lilypond/scripts/auxiliar/translations-status.py",
line 782, in <listcomp>
     master_docs = [MasterTelyDocument(os.path.normpath(filename))
   File "/home/hanwen/vc/lilypond/scripts/auxiliar/translations-status.py",
line 669, in __init__
     [(lang, self.translated_factory(os.path.join(lang, self.filename),
   File "/home/hanwen/vc/lilypond/scripts/auxiliar/translations-status.py",
line 669, in <listcomp>
     [(lang, self.translated_factory(os.path.join(lang, self.filename),
   File "/home/hanwen/vc/lilypond/scripts/auxiliar/translations-status.py",
line 682, in translated_factory
     return TranslatedTelyDocument(filename, self, parent)
   File "/home/hanwen/vc/lilypond/scripts/auxiliar/translations-status.py",
line 419, in __init__
     self.translation = translation[self.language]
TypeError: 'set' object is not subscriptable


which was apparently caused by

14f96a55304d4133a02e5669a56d371a79ac62b8 is the first bad commit
commit 14f96a55304d4133a02e5669a56d371a79ac62b8
Author: Jean Abou Samra <jean@xxxxxxxxxxxxx>
Date:   Sun Jul 12 17:38:42 2020 +0200

     Python cleanup (V): Clean up langdefs.py

Sorry that I haven't participated enough with it.


no worries, the documentation build is too complicated for its own good. I
wouldn't blame anyone who wants to stay away from it.


Not being a developer often doesn't help much…


MR321 is OK for me.
Thanks for having resolved the problem.

Cheers,
--
Jean-Charles



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/