c0desurfer / alfred-openai-chatgpt

This Alfred workflow uses OpenAI ChatGPT to generate output from queries. See https://chat.openai.com/ for a demo.
Apache License 2.0
17 stars 3 forks source link

make more robust #2

Open gingerbeardman opened 1 year ago

gingerbeardman commented 1 year ago

[12:23:40.354] Logging Started...
[12:23:42.544] OpenAI ChatGPT[Keyword] Processing complete
[12:23:42.547] OpenAI ChatGPT[Keyword] Passing output 'what is love?' to Run Script
[12:23:42.835] ERROR: OpenAI ChatGPT[Run Script] pyenv: no such command `virtualenv-init'
pyenv: no such command `activate'
dyld[57018]: Library not loaded: '/opt/homebrew/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/Python'
  Referenced from: '/usr/local/bin/python'
  Reason: tried: '/opt/homebrew/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/Python' (no such file), '/Library/Frameworks/Python.framework/Versions/3.9/Python' (no such file), '/System/Library/Frameworks/Python.framework/Versions/3.9/Python' (no such file)
[12:23:42.840] OpenAI ChatGPT[Run Script] Processing complete
[12:23:42.840] OpenAI ChatGPT[Run Script] Passing output '' to Copy to Clipboard```
aegixx commented 1 year ago

@gingerbeardman I had to initialize my environment using pyenv virtualenv-init default to create the virtualenv.

Though you may also be missing the pyenv-virtualenv module (https://github.com/pyenv/pyenv-virtualenv)