ralph icon indicating copy to clipboard operation
ralph copied to clipboard

Error when run `ralph`

Open Ridermansb opened this issue 8 years ago • 0 comments

Run ralph

And result:

    Traceback (most recent call last):
      File "/usr/local/bin/ralph", line 182, in <module>
        for value in data['arguments'][argument]['values']:
    KeyError: 'values'

I have 2 files in blueprints folder

{
  "blueprint": "iso {*iso} {*device} {buffer?}",
  "command": "dd if={iso} of=/dev/{device} bs={buffer}",

  "arguments": {
    "iso": {
      "errors": {
        "missing": "ISO file is required"
      }
    },

    "device": {
      "errors": {
        "missing": "Device file is required, you can list using `df` command"
      }
    },

    "buffer": {
      "values": {
        "default": "4M"
      }
    }

  }
}
{
  "blueprint": "speedmv {*input} {*output} {*speed?} -r {*ration}",
  "command": "ffmpeg -i {input} -r {ration} -filter:v 'setpts={speed}*PTS' {output}",

  "arguments": {
    "input": {
      "errors": {
        "missing": "Input file is required"
      }
    },

    "output": {
      "errors": {
        "missing": "Output file is required"
      }
    },

    "ration": {
      "values": {
        "default": "16"
      }
    },

    "speed": {
      "values": {
        "default": "0.5"
      }
    }

  }
}

Ridermansb avatar Aug 06 '15 00:08 Ridermansb