joshcho / ChatGPT.el

ChatGPT in Emacs
GNU General Public License v3.0
397 stars 34 forks source link

chatgpt-query results in "searching for program" #64

Closed Vjust closed 12 months ago

Vjust commented 12 months ago

On MacOS, Gnu Emacs 29.1 Apple Silicon.

Ran these commands (per the Readme) -

pip install --upgrade pip pip install setuptools pip install git+https://github.com/llm-workflow-engine/llm-workflow-engine

(I am unable to use quelpa/straight etc. On MacOS. So I cloned this repo, and did "load-library ... chatgpt.el, which returns a "t" when I execute that line in init.el)

With my venv activated , I run emacs in a terminal . when I issue the emacs command "chatgpt-query" - i see the message "Searching for program, is a directory". The variable "chat-gpt-cli-file-path" is empty. So chatgpt.el seems to have installed, but an underlying dependency (CLI tool) seems missing.

OPENAI_API_KEY is also set.

Am I missing a step.

joshcho commented 12 months ago

Thanks for raising the isuse. If you can try the following things and let me know, I'd appreciate it:

  1. which chatgpt on the command line
  2. which lwe
  3. I just pushed a quick change. Pull and see if that works.
Vjust commented 12 months ago

which chatgpt Returns empty

which lwe Returns a bin file path inside my virtual env

Sorry jumped the gun, will pull now and test & report here

Vjust commented 12 months ago

Ok it works now , after doing a pull!!

( prompts to create a db and a user account)

Thanks @joshcho

joshcho commented 12 months ago

No worries, thanks for catching this. Let me know if anything feels finicky