jinnovation / kele.el

🥤 Spritzy Kubernetes cluster management for Emacs
https://jonathanj.in/kele.el/
Apache License 2.0
72 stars 4 forks source link

Error upon installation: plz-0.7.1.tar Not found #216

Closed zck closed 1 month ago

zck commented 1 month ago

Upon installing kele, I got an error about plz-0.7.1 not being found. It looks like 0.8 was released in April; https://elpa.gnu.org/packages/plz-0.8.tar loads fine.

The part of my init file that loads it:

(use-package kele
  :config
  (kele-mode 1))

Full stacktrace:

Debugger entered--Lisp error: (file-error "https://elpa.gnu.org/packages/plz-0.7.1.tar" "Not found")
  signal(file-error ("https://elpa.gnu.org/packages/plz-0.7.1.tar" "Not found"))
  package--with-response-buffer-1("https://elpa.gnu.org/packages/" #f(compiled-function () #<bytecode -0x1df2ce894ea089dd>) :file "plz-0.7.1.tar" :async nil :error-function #f(compiled-function () #<bytecode 0x198000153e91>) :noerror nil)
  package-install-from-archive(#s(package-desc :name plz :version (0 7 1) :summary "HTTP library" :reqs ((emacs (26 3))) :kind tar :archive "gnu" :dir nil :extras ((:url . "https://github.com/alphapapa/plz.el") (:keywords "comm" "network" "http") (:maintainer "Adam Porter" . "adam@alphapapa.net") (:authors ("Adam Porter" . "adam@alphapapa.net")) (:commit . "c701f5d3722b38d9e1a4223d7c06e879ddba5e69")) :signed nil))
  mapc(package-install-from-archive (#s(package-desc :name plz :version (0 7 1) :summary "HTTP library" :reqs ((emacs (26 3))) :kind tar :archive "gnu" :dir nil :extras ((:url . "https://github.com/alphapapa/plz.el") (:keywords "comm" "network" "http") (:maintainer "Adam Porter" . "adam@alphapapa.net") (:authors ("Adam Porter" . "adam@alphapapa.net")) (:commit . "c701f5d3722b38d9e1a4223d7c06e879ddba5e69")) :signed nil) #s(package-desc :name async :version (20240108 1526) :summary "Asynchronous processing in Emacs" :reqs ((emacs (24 4))) :kind tar :archive "melpa" :dir nil :extras ((:commit . "d040f72cb0be5265d50ac541ddb09ebbc68b7908") (:authors ("John Wiegley" . "jwiegley@gmail.com")) (:maintainers ("Thierry Volpiatto" . "thievol@posteo.net")) (:maintainer "Thierry Volpiatto" . "thievol@posteo.net") (:keywords "async") (:url . "https://github.com/jwiegley/emacs-async")) :signed nil) #s(package-desc :name kele :version (20230326 33) :summary "Spritzy Kubernetes cluster management" :reqs ((emacs (28 1)) (async (1 9 7)) (dash (2 19 1)) (f (0 20 0)) (ht (2 3)) (plz (0 4)) (s (1 13 0)) (yaml (0 5 1))) :kind tar :archive "melpa" :dir nil :extras ((:commit . "15e841fb7bbc08545534e466ce831d6e80fd8901") (:authors ("Jonathan Jin" . "me@jonathanj.in")) (:maintainers ("Jonathan Jin" . "me@jonathanj.in")) (:maintainer "Jonathan Jin" . "me@jonathanj.in") (:keywords "kubernetes" "tools") (:url . "https://github.com/jinnovation/kele.el")) :signed nil)))
  package-download-transaction((#s(package-desc :name plz :version (0 7 1) :summary "HTTP library" :reqs ((emacs (26 3))) :kind tar :archive "gnu" :dir nil :extras ((:url . "https://github.com/alphapapa/plz.el") (:keywords "comm" "network" "http") (:maintainer "Adam Porter" . "adam@alphapapa.net") (:authors ("Adam Porter" . "adam@alphapapa.net")) (:commit . "c701f5d3722b38d9e1a4223d7c06e879ddba5e69")) :signed nil) #s(package-desc :name async :version (20240108 1526) :summary "Asynchronous processing in Emacs" :reqs ((emacs (24 4))) :kind tar :archive "melpa" :dir nil :extras ((:commit . "d040f72cb0be5265d50ac541ddb09ebbc68b7908") (:authors ("John Wiegley" . "jwiegley@gmail.com")) (:maintainers ("Thierry Volpiatto" . "thievol@posteo.net")) (:maintainer "Thierry Volpiatto" . "thievol@posteo.net") (:keywords "async") (:url . "https://github.com/jwiegley/emacs-async")) :signed nil) #s(package-desc :name kele :version (20230326 33) :summary "Spritzy Kubernetes cluster management" :reqs ((emacs (28 1)) (async (1 9 7)) (dash (2 19 1)) (f (0 20 0)) (ht (2 3)) (plz (0 4)) (s (1 13 0)) (yaml (0 5 1))) :kind tar :archive "melpa" :dir nil :extras ((:commit . "15e841fb7bbc08545534e466ce831d6e80fd8901") (:authors ("Jonathan Jin" . "me@jonathanj.in")) (:maintainers ("Jonathan Jin" . "me@jonathanj.in")) (:maintainer "Jonathan Jin" . "me@jonathanj.in") (:keywords "kubernetes" "tools") (:url . "https://github.com/jinnovation/kele.el")) :signed nil)))
  package-install(kele)
  use-package-ensure-elpa(kele (t) nil)
  (progn (use-package-ensure-elpa 'kele '(t) 'nil) (defvar use-package--warning65 #'(lambda (keyword err) (let ((msg (format "%s/%s: %s" ... keyword ...))) (display-warning 'use-package msg :error)))) (condition-case err (if (not (require 'kele nil t)) (display-warning 'use-package (format "Cannot load %s" 'kele) :error) (condition-case err (progn (kele-mode 1) t) ((debug error) (funcall use-package--warning65 :config err)))) ((debug error) (funcall use-package--warning65 :catch err))))
  eval((progn (use-package-ensure-elpa 'kele '(t) 'nil) (defvar use-package--warning65 #'(lambda (keyword err) (let ((msg ...)) (display-warning 'use-package msg :error)))) (condition-case err (if (not (require 'kele nil t)) (display-warning 'use-package (format "Cannot load %s" 'kele) :error) (condition-case err (progn (kele-mode 1) t) ((debug error) (funcall use-package--warning65 :config err)))) ((debug error) (funcall use-package--warning65 :catch err)))) nil)
  elisp--eval-last-sexp(nil)
  eval-last-sexp(nil)
  funcall-interactively(eval-last-sexp nil)
  call-interactively(eval-last-sexp nil nil)
  command-execute(eval-last-sexp)
zck commented 1 month ago

Somehow, installing kele from the list of packages in list-buffer actually installs it. It seems to download plz 0.8.

I'm running into problems post-install, but that's a separate issue I'll track down and see if it warrants a bug submission.

jinnovation commented 1 month ago

Thanks for the bug report. Not sure where the issue specifically is. I wonder if package-refresh-contents was necessary, given that 0.7.1 is a legacy version of plz and 0.8.0 (as well as 0.7.3) have been out for some time now.

In any case, I've bumped the version of plz specified in the package metadata to 0.8 anyway.

I'm running into problems post-install, but that's a separate issue I'll track down and see if it warrants a bug submission.

Sounds good. Feel free to submit issues for any weird things that come up.

alphapapa commented 1 month ago

@jinnovation FWIW, this error always means that the user's Emacs has an outdated list of packages and needs to update the package list before installing packages.

Having said that, plz v0.8 has no relevant changes, but plz v0.9 will have some general improvements; so when I release v0.9 (probably in a few days), you might want to bump the required version again. :)

jinnovation commented 1 month ago

FWIW, this error always means that the user's Emacs has an outdated list of packages and needs to update the package list before installing packages.

Sounds great. Closing this issue then. @zck, feel free to reopen if you run into further issues.