[CBLX] gtts-cli, aide (cf. typescript-with-debug en pj)

[ Thread Index | Date Index | More lists.tuxfamily.org/carrefourblinux Archives ]


Re moi!

Je renvois une sortie typescript d'essai avec gtts-cli 
mais j'y ai ajouté l'option --debug
pour que vous ayiez + d'éléments!

Merci,
@+
Aldo.
 
Script started on 2024-02-29 07:02:13+01:00 [TERM="linux" TTY="/dev/tty3" COLUMNS="170" LINES="48"]
aldo@mediamonster-HP-ProBook-450-G4:/tmp$ gtts-cli "Hello" -l 'en' -o hello.mp3
gtts.tts - WARNING - Unable to get language list: 'NoneType' object is not subscriptable
Usage: gtts-cli [OPTIONS] <text>

Error: Unable to find token seed! Did https://translate.google.com change?
aldo@mediamonster-HP-ProBook-450-G4:/tmp$ gtts-cli --debug
Usage: gtts-cli [OPTIONS] <text>

Error: Invalid value for "<text>": <text> or -f/--file <file> required
aldo@mediamonster-HP-ProBook-450-G4:/tmp$ gtts-cli --debug"Hello" -l 'en' -o hello.mp3 --debug
gtts - DEBUG - Unable to get language list: 'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gtts/lang.py", line 36, in tts_langs
    langs.update(_fetch_langs())
  File "/usr/lib/python3/dist-packages/gtts/lang.py", line 62, in _fetch_langs
    js_path = soup.find(src=re.compile(JS_FILE))['src']
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gtts/cli.py", line 68, in validate_lang
    if lang not in tts_langs():
  File "/usr/lib/python3/dist-packages/gtts/lang.py", line 41, in tts_langs
    raise RuntimeError("Unable to get language list: %s" % str(e))
RuntimeError: Unable to get language list: 'NoneType' object is not subscriptable
gtts.tts - DEBUG - text: Hello
gtts.tts - DEBUG - lang: en
gtts.tts - DEBUG - slow: False
gtts.tts - DEBUG - lang_check: True
gtts.tts - DEBUG - pre_processor_funcs: [<function tone_marks at 0x7f07961e0c10>, <function end_of_line at 0x7f07961a8160>, <function abbreviations at 0x7f07961a81f0>, <function word_sub at 0x7f07961a8280>]
gtts.tts - DEBUG - tokenizer_func: <bound method Tokenizer.run of re.compile('(?<=\\?).|(?<=!).|(?<=?).|(?<=!).|(?<!\\.[a-z])\\. |(?<!\\.[a-z]), |(?<!\\d):|¡|、|,|:|…|\\)|;|،|\\]|\\\n|‥|。|\\[|\\(|¿|—', re.IGNORECASE) from: [<function tone_marks at 0x7f07961a83a0>, <function period_comma at 0x7f07961a84c0>, <function colon at 0x7f07961a8550>, <function other_punctuation at 0x7f07961a85e0>]>
gtts.tts - DEBUG - Unable to get language list: 'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gtts/lang.py", line 36, in tts_langs
    langs.update(_fetch_langs())
  File "/usr/lib/python3/dist-packages/gtts/lang.py", line 62, in _fetch_langs
    js_path = soup.find(src=re.compile(JS_FILE))['src']
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gtts/tts.py", line 119, in __init__
    langs = tts_langs()
  File "/usr/lib/python3/dist-packages/gtts/lang.py", line 41, in tts_langs
    raise RuntimeError("Unable to get language list: %s" % str(e))
RuntimeError: Unable to get language list: 'NoneType' object is not subscriptable
gtts.tts - WARNING - Unable to get language list: 'NoneType' object is not subscriptable
gtts.tts - DEBUG - pre-processing: <function tone_marks at 0x7f07961e0c10>
gtts.tts - DEBUG - pre-processing: <function end_of_line at 0x7f07961a8160>
gtts.tts - DEBUG - pre-processing: <function abbreviations at 0x7f07961a81f0>
gtts.tts - DEBUG - pre-processing: <function word_sub at 0x7f07961a8280>
gtts.tts - DEBUG - text_parts: 1
Usage: gtts-cli [OPTIONS] <text>

Error: Unable to find token seed! Did https://translate.google.com change?
aldo@mediamonster-HP-ProBook-450-G4:/tmp$ exit
exit

Script done on 2024-02-29 07:05:47+01:00 [COMMAND_EXIT_CODE="2"]


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