Code Monkey home page Code Monkey logo

Comments (10)

xenodium avatar xenodium commented on June 12, 2024 1

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.

japhir avatar japhir commented on June 12, 2024

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.

xenodium avatar xenodium commented on June 12, 2024

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...

  1. M-x package-delete chatgpt-shell
  2. Restart Emacs
  3. Use the use-package snippet (installing and setting the key).
  4. M-x chatgpt-shell
  5. 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.

xenodium avatar xenodium commented on June 12, 2024

ps. What Emacs version are you on?

from chatgpt-shell.

japhir avatar japhir commented on June 12, 2024

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.

japhir avatar japhir commented on June 12, 2024

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.

xenodium avatar xenodium commented on June 12, 2024

Something's up with local package registry. Could you try refreshing packages and install again?

from chatgpt-shell.

japhir avatar japhir commented on June 12, 2024

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.

japhir avatar japhir commented on June 12, 2024

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.

japhir avatar japhir commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.