joshcho / ChatGPT.el

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

chatgpt--query: Symbol’s value as variable is void: python-interpreter #29

Closed jayden-dang closed 1 year ago

jayden-dang commented 1 year ago

i has configurated for python-shell-interpreter is python3, but it not working.

C-Hipple commented 1 year ago

@vugomars Can you elaborate on your fix? I'm experiencing the same issue

jayden-dang commented 1 year ago

@vugomars Can you elaborate on your fix? I'm experiencing the same issue

@C-Hipple This line sets the default Python interpreter for the current Emacs session. It should be the path to your Python 3 executable. To apply the fix, you need to add this line to your Emacs configuration file (e.g., .emacs, init.el) and replace "/usr/local/bin/python3" with the correct path to your Python 3 executable. This should resolve the issue you are encountering. (setq python-interpreter "/usr/local/bin/python3") or you can check it in my configuration was published in my github.

C-Hipple commented 1 year ago

Perfect thank you! For anyone coming to this in the future, I was using pyenv so mine was: (setq python-interpreter "/Users/MYUSERNAME/.pyenv/shims/python")