Open danshaw opened 7 months ago
I'm also getting this error:
PermissionError: [Errno 13] Permission denied: '/home/libretranslate/.local/share/argos-translate'
I've read that I need to change permissions to 1032 and I have done that, but I am still getting the same error.
I'm running rootless podman
and I see a similar error ever after chown
ing.
Traceback (most recent call last):
File "/app/./venv/bin/libretranslate", line 5, in <module>
from libretranslate.main import main
File "/app/venv/lib/python3.11/site-packages/libretranslate/__init__.py", line 2, in <module>
from .main import main
File "/app/venv/lib/python3.11/site-packages/libretranslate/main.py", line 5, in <module>
from libretranslate.app import create_app
File "/app/venv/lib/python3.11/site-packages/libretranslate/app.py", line 12, in <module>
import argostranslatefiles
File "/app/venv/lib/python3.11/site-packages/argostranslatefiles/__init__.py", line 1, in <module>
from argostranslatefiles.argostranslatefiles import *
File "/app/venv/lib/python3.11/site-packages/argostranslatefiles/argostranslatefiles.py", line 1, in <module>
from argostranslate.translate import ITranslation
File "/app/venv/lib/python3.11/site-packages/argostranslate/translate.py", line 10, in <module>
from argostranslate import apis, fewshot, package, sbd, settings
File "/app/venv/lib/python3.11/site-packages/argostranslate/package.py", line 13, in <module>
from argostranslate import networking, settings
File "/app/venv/lib/python3.11/site-packages/argostranslate/networking.py", line 6, in <module>
from argostranslate.utils import error, info
File "/app/venv/lib/python3.11/site-packages/argostranslate/utils.py", line 4, in <module>
from argostranslate import settings
File "/app/venv/lib/python3.11/site-packages/argostranslate/settings.py", line 19, in <module>
os.makedirs(data_dir, exist_ok=True)
File "<frozen os>", line 225, in makedirs
PermissionError: [Errno 13] Permission denied: '/home/libretranslate/.local/share/argos-translate'
Description
When running docker compose, I am getting the following trace error on the libretranslate container. Is this a port problem? Or maybe a directory permissions problem?
This stems from an issue where when I upload a video, I get a "Failed Upload" message, but the video does in fact upload. Not sure if this issue is related to that.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No errors.
Environment
Logs and Configuration
LibreTranslate log:
Docker Compose File