joshcho / ChatGPT.el

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

EPC server error #41

Closed philohistoria closed 1 year ago

philohistoria commented 1 year ago

Hello, I was able to use chatgpt in command line (through chatgpt-server).

But when I try to use it in Emacs, the error shows:

Process epc:server:4 exited abnormally with code 127

does anyone know a possible fix or diagnosis? Thanks a lot!

philohistoria commented 1 year ago

figured out a solution myself. I am using pyenv and my emacs does not recognize python interpreter position. Has to set up pyenv location

(require 'epc)

(defvar my-epc (epc:start-epc "/Users/HOMEFOLDER/.pyenv/shims/python3" '("my-server.py")))