Closed SylvianHemus closed 1 year ago
chatgpt reset - wrong type argument: epc nil
Can you try (setq python-interpreter "python3")
?
Something of this variant worked, thank you. Here is what solved my problem
#+begin_src emacs-lisp :tangle yes
(straight-use-package 'epc)
(use-package chatgpt
:straight (:host github :repo "joshcho/ChatGPT.el" :files ("dist" "*.el"))
:init
(setq python-interpreter "python3")
(require 'python)
(setq chatgpt-repo-path "~/.emacs.d/straight/repos/ChatGPT.el/")
:bind ("C-c q" . chatgpt-query))
#+end_src
presumably, I made an error by writing "python-shell-interpreter" instead of "python-interpreter". Capital in Python3 should have been python3 (lowercase). Also presumably it should be set within the use-package, not outside of it.