Error Message:
[22:03:43.349] STDERR: Gist[[Run Script] functions.sh: line 236: python: command not found
I'm not sure how does the shim work for Alfred? I have python 2 installed via pyenv:
❯ which python ─╯
/Users/liren/.pyenv/shims/python
❯ python --version ─╯
Python 2.7.18
However the /usr/bin/python3 executable could be read by the Alfred Workflow, so I tried changing the script to python3:
echo -n "$1" | python3 -c 'import json,sys; print json.dumps(sys.stdin.read())'
But I don't think the string can be parsed correctly because I will still get error from gist API:
{
"message": "Problems parsing JSON",
"documentation_url": "https://docs.github.com/rest/reference/gists#create-a-gist"
}
Error Message:
I'm not sure how does the shim work for Alfred? I have python 2 installed via pyenv:
However the
/usr/bin/python3executable could be read by the Alfred Workflow, so I tried changing the script topython3:But I don't think the string can be parsed correctly because I will still get error from gist API: