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

Cannot import local files on Linux #6703

Closed
nlholdem opened this issue Nov 22, 2024 · 1 comment
Closed

Cannot import local files on Linux #6703

nlholdem opened this issue Nov 22, 2024 · 1 comment

Comments

@nlholdem
Copy link

Setting the Source Storage asks me to set LOCAL_FILES_SERVING_ENABLED environment variable, but it is already set
A clear and concise description of what the bug is.

To Reproduce

  1. Create new project
  2. In Cloud Storage, set to local files.
  3. Set absolute path
  4. Click 'Add Storage''
  5. See error:
    [ErrorDetail(string="Serving local files can be dangerous, so it's disabled by default. You can enable it with LOCAL_FILES_SERVING_ENABLED environment variable, please check docs: https://labelstud.io/guide/storage.html#Local-storage", code='invalid')]
    The documentation actually mentions a different env variable, LABEL_STUDIO_LOCAL_FILES_SERVING_ENABLED. In any case I set both of these in my shell before launching label-studio. I even put them in label-studio's own file at ~/.local/share/label-studio/.env. Still get the same error.

Environment (please complete the following information):

  • OS: Ubuntu 22.04
  • Label Studio Version 1.14.0.post0
@nlholdem
Copy link
Author

My mistake, I hadn't exported the variable.

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