Skip to content

Can't run the "Chat with a Local CLI" example: exit status 127 with error output: failed to run: ERROR: #912

@deepnodes

Description

@deepnodes

Followed the steps https://docs.gptscript.ai/examples/cli

  1. Add the new file:

vi cli-demo.gpt

Then, input the contents listed in the doc.

  1. Then run:

gptscript cli-demo.gpt

It shows error in the output:

run encountered an error: ERROR: The following is the help text for the gh cli and some of its sub-commands. Use these when figuring out how to construct new commands. Note that the --search flag is used for filtering and sorting as well; there is no dedicated --sort flag.
: exit status 127 with error output: failed to run: ERROR: The following is the help text for the gh cli and some of its sub-commands. Use these when figuring out how to construct new commands. Note that the --search flag is used for filtering and sorting as well; there is no dedicated --sort flag.
: exit status 127

From the output, I can see the echo part already works, but I don't know what is the exit 127 means?

How can I fix this issue and run the "Chat with a Local CLI" example?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions