Trying to run Libretranslate , HTTPError 403: Forbidden occurs

I am trying to run LibreTranslate on my workstation , however while running the main.py file , It gives me HTTPError 403: Forbidden showing problem in language_translate_fallback function and create_app in main function . I suppose there is problem in API fetch , however I haven’t made any changes in any of the API calls .

Updating language models
Found 92 models
Downloading Albanian → English (1.9) ...
(<HTTPError 403: 'Forbidden'>,)
(<HTTPError 403: 'Forbidden'>,)
(<HTTPError 403: 'Forbidden'>,)
(<HTTPError 403: 'Forbidden'>,)
Cannot update models (normal if you're offline): Download failed for Albanian → English
Traceback (most recent call last):
  File "/home/LibreTranslatorFolder/Libreenv/LibreTranslate/libretranslate/main.py", line 253, in <module>
    main()
  File "/home/LibreTranslatorFolder/Libreenv/LibreTranslate/libretranslate/main.py", line 226, in main
    app = create_app(args)
  File "/home/.local/lib/python3.10/site-packages/libretranslate/app.py", line 191, in create_app
    language_target_fallback = languages[1] if len(languages) >= 2 else languages[0]
IndexError: list index out of range

`

Something on your network seems to be blocking access to cloudflare (where the models are stored).

2 Likes