Comments (10)
Ah good to hear. Looks like the installation and setup are good now. Error is coming straight from the OpenAI API. It's an account/billing issue with OpenAI from here on, similar to #69 (comment) Closing issue.
from chatgpt-shell.
By the way, I've revoked the key in case the weird bytes/or somewhere in plain text in the attached file I'm giving away my OpenAI key ;-)
from chatgpt-shell.
Thanks for reporting.
First, installing it directly through use-package gave me an error that I cannot find back in my messages. Maybe it was this one? reference to free variable ‘chatgpt-shell’
I'd need to see the entire use-package
snippet to help troubleshoot.
and used this menu to install it.
Installing via package menu should not be needed with use-package :ensure t
.
The following snippet just worked for me to install from MELPA:
(use-package chatgpt-shell
:ensure t
:custom
(chatgpt-shell-openai-key
(lambda ()
(auth-source-pass-get 'secret "openai-key"))))
Looks like it's something with the authentication going wrong! I hope this is enough to help debug it :)
Lemme try to replicate, but I'll need reproducible steps. Maybe start over...
M-x package-delete chatgpt-shell
- Restart Emacs
- Use the use-package snippet (installing and setting the key).
M-x chatgpt-shell
ChatGPT> hello
Hello! How can I assist you today?
If the above doesn't work, share the entire use-package snippet and any errors you see.
from chatgpt-shell.
ps. What Emacs version are you on?
from chatgpt-shell.
I had the same use-package snippet as you, took it from the README. I'm on emacs 28 something. I can try to rerun tonight.
from chatgpt-shell.
Here's the error I get after removing the package and then running the use-package snippet:
Debugger entered--Lisp error: (file-error "http://melpa.org/packages/chatgpt-shell-20230428.7..." "Not found")
signal(file-error ("http://melpa.org/packages/chatgpt-shell-20230428.7..." "Not found"))
package--with-response-buffer-1("http://melpa.org/packages/" #f(compiled-function () #<bytecode -0x108f104fb385072b>) :file "chatgpt-shell-20230428.750.el" :async nil :error-function #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_73> :noerror nil)
package-install-from-archive(#s(package-desc :name chatgpt-shell :version (20230428 750) :summary "Interaction mode for ChatGPT" :reqs ((emacs (27 1)) (shell-maker (0 17 1))) :kind single :archive "melpa" :dir nil :extras ((:commit . "dbc99097fb14d36466ea78e143ca8b233a0dac86") (:authors ("Alvaro Ramirez https://xenodium.com")) (:maintainers ("Alvaro Ramirez https://xenodium.com")) (:maintainer "Alvaro Ramirez https://xenodium.com") (:url . "https://github.com/xenodium/chatgpt-shell")) :signed nil))
package-download-transaction((#s(package-desc :name chatgpt-shell :version (20230428 750) :summary "Interaction mode for ChatGPT" :reqs ((emacs (27 1)) (shell-maker (0 17 1))) :kind single :archive "melpa" :dir nil :extras ((:commit . "dbc99097fb14d36466ea78e143ca8b233a0dac86") (:authors ("Alvaro Ramirez https://xenodium.com")) (:maintainers ("Alvaro Ramirez https://xenodium.com")) (:maintainer "Alvaro Ramirez https://xenodium.com") (:url . "https://github.com/xenodium/chatgpt-shell")) :signed nil)))
package-install(chatgpt-shell)
use-package-ensure-elpa(chatgpt-shell (t) nil)
(progn (use-package-ensure-elpa 'chatgpt-shell '(t) 'nil) (defvar use-package--warning98 #'(lambda (keyword err) (let ((msg (format "%s/%s: %s" ... keyword ...))) (display-warning 'use-package msg :error)))) (condition-case err (progn (let ((custom--inhibit-theme-enable nil)) (if (memq 'use-package custom-known-themes) nil (custom-declare-theme 'use-package 'use-package-theme nil) (enable-theme 'use-package) (setq custom-enabled-themes (remq 'use-package custom-enabled-themes))) (custom-theme-set-variables 'use-package '(chatgpt-shell-openai-key (lambda nil ...) nil nil "Customized with use-package chatgpt-shell"))) (let ((now (current-time))) (message "%s..." "Loading package chatgpt-shell") (prog1 (if (not (require ... nil t)) (display-warning 'use-package (format "Cannot load %s" ...) :error)) (let ((elapsed ...)) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Loading package chatgpt-shell" elapsed) (message "%s...done" "Loading package chatgpt-shell")))))) ((debug error) (funcall use-package--warning98 :catch err))))
(progn (progn (use-package-ensure-elpa 'chatgpt-shell '(t) 'nil) (defvar use-package--warning98 #'(lambda (keyword err) (let ((msg ...)) (display-warning 'use-package msg :error)))) (condition-case err (progn (let ((custom--inhibit-theme-enable nil)) (if (memq 'use-package custom-known-themes) nil (custom-declare-theme 'use-package 'use-package-theme nil) (enable-theme 'use-package) (setq custom-enabled-themes (remq ... custom-enabled-themes))) (custom-theme-set-variables 'use-package '(chatgpt-shell-openai-key ... nil nil "Customized with use-package chatgpt-shell"))) (let ((now (current-time))) (message "%s..." "Loading package chatgpt-shell") (prog1 (if (not ...) (display-warning ... ... :error)) (let (...) (if ... ... ...))))) ((debug error) (funcall use-package--warning98 :catch err)))))
elisp--eval-last-sexp(nil)
eval-last-sexp(nil)
funcall-interactively(eval-last-sexp nil)
command-execute(eval-last-sexp)
from chatgpt-shell.
Something's up with local package registry. Could you try refreshing packages and install again?
from chatgpt-shell.
Is that the same as M-x package-refresh-contents, which I had done for my first try already? Or the thing that happens when you press U after list-packages (which I've also done). I can try it in a clean environment in a bit.
from chatgpt-shell.
When I run it with with-emacs use-package and then run your use-package snippet from scratch, I only get some warnings:
Warning (comp): chatgpt-shell.el:1176:31: Warning: reference to free variable ‘org-babel-default-header-args’ Disable showing Disable logging
Warning (comp): chatgpt-shell.el:1183:48: Warning: reference to free variable ‘org-babel-error-buffer-name’ Disable showing Disable logging
Warning (comp): chatgpt-shell.el:1175:31: Warning: the function ‘org-babel-merge-params’ is not known to be defined. Disable showing Disable logging
Warning (comp): chatgpt-shell.el:1172:29: Warning: the function ‘org-babel-process-params’ is not known to be defined. Disable showing Disable logging
so there must be something going on in my configuration or with the interaction with something there… hmmm
from chatgpt-shell.
Ok I've now followed all steps to start from scratch, and this time it launched it's separate buffer! Then it told me I had provided an incorrect API key, which I fixed by calling the second example of authentication in your README (getting it to look in ~/.authinfo). Now I've run into an upstream issue: You exceeded your current quota, please check your plan and billing details.curl: (22) The requested URL returned error: 429
;-).
Thanks for the help, I think that fixes my issues and perhaps gives you some pointers for getting it to run cleanly in a fresh install. Cheers!
PS: I'm on: GNU Emacs 29.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.32, cairo version 1.17.4) of 2022-03-05
from chatgpt-shell.
Related Issues (20)
- selecting prompt for compose HOT 1
- shell maker cursor not returning properly at the end of prompt HOT 1
- better chatgpt-shell-prompt-compose interactions with existing prompt HOT 2
- Can't fold #+RESULT: section in org-babel HOT 3
- Prompt user to save shell transcript if pending HOT 1
- Tutorial on how to use, if possible Jan and other open source alternatives to chatgpt HOT 1
- Add variable to disable transcript saving prompt on exit HOT 1
- Closing the chatgpt-shell compose window while answer is streaming in 'hangs' Emacs until finished and produces many errors HOT 3
- Make display-buffer-alist configuration customizable HOT 6
- Is there a way to start a new session AND clear the chat buffer? HOT 2
- Interference of shell-maker HOT 2
- Dependence on curl HOT 1
- chatgpt-shell does not require dired
- chatgpt-shell-describe-image fails with the error "/usr/bin/emacs: /usr/bin/curl: Argument list too long" HOT 12
- Groq's API support HOT 3
- Using local Ollama models HOT 1
- How can I send a line?
- Installing dall-e-shell gives a warning/error HOT 2
- curl: (48) An unknown option was passed in to libcurl HOT 2
- You exceeded your current quota HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-shell.