label-studio icon indicating copy to clipboard operation
label-studio copied to clipboard

label-studio export returns: unrecognized arguments: --path

Open Nika-St opened this issue 1 year ago • 0 comments

Describe the bug label-studio export returns: unrecognized arguments: --path

To Reproduce Steps to reproduce the behavior:

  1. in terminal, run label-studio export 28 JSON --path="./test.json"
  2. command retuns an error => Database and media directory: /home//.local/share/label-studio => Static URL is set to: /static/ usage: label-studio [-h] [--version] [-b] [-db DATABASE] [--data-dir DATA_DIR] [-d] [-c CONFIG_PATH] [-l LABEL_CONFIG] [--skip-long-migrations] [--ml-backends ML_BACKENDS [ML_BACKENDS ...]] [--sampling {sequential,uniform,prediction-score-min}] [--log-level {DEBUG,INFO,WARNING,ERROR}] [--internal-host INTERNAL_HOST] [-p PORT] [--host HOST] [--cert CERT_FILE] [--key KEY_FILE] [--initial-project-description PROJECT_DESC] [--password PASSWORD] [--username USERNAME] [--user-token USER_TOKEN] [--agree-fix-sqlite] {version,user,init,start,reset_password,shell,calculate_stats_all_orgs,export,annotations_fill_updated_by} ... label-studio: error: unrecognized arguments: --path=./test.json

Expected behavior Annotations from the project with id 28 exported in JSON format to the specified path, as described here: https://labelstud.io/guide/export.html

Environment (please complete the following information):

  • OS: Ubuntu 20.04.6 LTS
  • Label Studio Version 1.11.0

Additional context I have many labeled projects and I'd like so export them in multiple formats, so doing that manually in the UI would take too much time. I've written a bash script to loop over projects and formats and generate descriptive filenames, but the export command doesn't work Thanks!

Nika-St avatar Feb 11 '24 17:02 Nika-St