joshcho / ChatGPT.el

ChatGPT in Emacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Symbol's value as variable is void -- python-interpreter

SylvianHemus opened this issue · comments

#+begin_src emacs-lisp :tangle yes
  (setq python-shell-interpreter "Python3")
    (use-package chatgpt
      :straight (:host github :repo "joshcho/ChatGPT.el" :files ("dist" "*.el"))
      :init
      (require 'python)
      (setq chatgpt-repo-path "~/.emacs.d/straight/repos/ChatGPT.el/")
      :bind ("C-c q" . chatgpt-query))
    #+end_src

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.