Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PermissionError: [Errno 13] Permission denied: '/opt/app-root/lib/python3.9/site-packages/langkit/langkit_data' #322

Open
pradeepdev-1995 opened this issue Feb 26, 2025 · 0 comments

Comments

@pradeepdev-1995
Copy link

Getting the below error in Ubuntu server after deployment.

from langkit import llm_metrics,extract,injections,toxicity
  File "/opt/app-root/lib/python3.9/site-packages/langkit/injections.py", line 95, in <module>
    init()
  File "/opt/app-root/lib/python3.9/site-packages/langkit/injections.py", line 36, in init
    embeddings_path = os.path.join(_get_data_home(), path)
  File "/opt/app-root/lib/python3.9/site-packages/langkit/utils.py", line 27, in _get_data_home
    os.makedirs(data_path)
  File "/usr/lib64/python3.9/os.py", line 225, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/opt/app-root/lib/python3.9/site-packages/langkit/langkit_data

But this is working fine on my local Ubuntu machine. The deployment, however, is Docker-based.

From where can I download the Langkit data directly?

Once I download the data, I can place it in the root directory of the Dockerfile itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant