DogLooksGood / emacs-rime

RIME ㄓ in Emacs
GNU General Public License v3.0
476 stars 68 forks source link

Required package ‘posframe-0.1.0’ is unavailable. #156

Closed hongyi-zhao closed 3 years ago

hongyi-zhao commented 3 years ago

On Ubuntu 20.04, I use the git master branch of Emacs and emacs-rime. Today, when I start Emacs, I meet the following error:

$ emacs --debug-init
Unable to activate package ‘rime’.
Required package ‘posframe-0.1.0’ is unavailable

And the following info in backtrace buffer:

Debugger entered--Lisp error: (file-error "https://melpa.org/packages/posframe-20210409.140.e..." "Not found")
  signal(file-error ("https://melpa.org/packages/posframe-20210409.140.e..." "Not found"))
  package--with-response-buffer-1("https://melpa.org/packages/" #f(compiled-function () #<bytecode -0xed85cec82fdef5b>) :file "posframe-20210409.140.el" :async nil :error-function #f(compiled-function () #<bytecode 0x1e0000153e91>) :noerror nil)
  package-install-from-archive(#s(package-desc :name posframe :version (20210409 140) :summary "Pop a posframe (just a frame) at point" :reqs ((emacs (26))) :kind single :archive "melpa" :dir nil :extras ((:commit . "428d471bbc224db38a554006d30c38bdd3407ce4") (:authors ("Feng Shu" . "tumashu@163.com")) (:maintainer "Feng Shu" . "tumashu@163.com") (:keywords "convenience" "tooltip") (:url . "https://github.com/tumashu/posframe")) :signed nil))
  mapc(package-install-from-archive (#s(package-desc :name posframe :version (20210409 140) :summary "Pop a posframe (just a frame) at point" :reqs ((emacs (26))) :kind single :archive "melpa" :dir nil :extras ((:commit . "428d471bbc224db38a554006d30c38bdd3407ce4") (:authors ("Feng Shu" . "tumashu@163.com")) (:maintainer "Feng Shu" . "tumashu@163.com") (:keywords "convenience" "tooltip") (:url . "https://github.com/tumashu/posframe")) :signed nil)))
  package-download-transaction((#s(package-desc :name posframe :version (20210409 140) :summary "Pop a posframe (just a frame) at point" :reqs ((emacs (26))) :kind single :archive "melpa" :dir nil :extras ((:commit . "428d471bbc224db38a554006d30c38bdd3407ce4") (:authors ("Feng Shu" . "tumashu@163.com")) (:maintainer "Feng Shu" . "tumashu@163.com") (:keywords "convenience" "tooltip") (:url . "https://github.com/tumashu/posframe")) :signed nil)))
  #f(compiled-function (pkg &optional dont-select) "Install the package PKG.\nPKG can be a `package-desc' or a symbol naming one of the\navailable packages in an archive in `package-archives'.  When\ncalled interactively, prompt for the package name.\n\nMark the installed package as selected by adding it to\n`package-selected-packages'.\n\nWhen called from Lisp and optional argument DONT-SELECT is\nnon-nil, install the package but do not add it to\n`package-selected-packages'.\n\nIf PKG is a `package-desc' and it is already installed, don't try\nto install it but still mark it as selected." (interactive #f(compiled-function () #<bytecode -0x1cee9527d1809212>)) #<bytecode -0x15b1bee33e65dabf>)(posframe)
  apply(#f(compiled-function (pkg &optional dont-select) "Install the package PKG.\nPKG can be a `package-desc' or a symbol naming one of the\navailable packages in an archive in `package-archives'.  When\ncalled interactively, prompt for the package name.\n\nMark the installed package as selected by adding it to\n`package-selected-packages'.\n\nWhen called from Lisp and optional argument DONT-SELECT is\nnon-nil, install the package but do not add it to\n`package-selected-packages'.\n\nIf PKG is a `package-desc' and it is already installed, don't try\nto install it but still mark it as selected." (interactive #f(compiled-function () #<bytecode -0x1cee9527d1809212>)) #<bytecode -0x15b1bee33e65dabf>) posframe)
  package-install(posframe)
  (if (package-installed-p package) nil (package-install package))
  prelude-require-package(posframe)
  mapc(prelude-require-package (dash flycheck posframe s ein w3m smartparens valign))
  prelude-require-packages((dash flycheck posframe s ein w3m smartparens valign))
  (if (prelude-packages-installed-p) nil (message "%s" "Emacs Prelude is now refreshing its package databa...") (package-refresh-contents) (message "%s" " done.") (prelude-require-packages prelude-packages))
  prelude-install-packages()
  eval-buffer(#<buffer  *load*> nil "/home/werner/.emacs.d/init.el" nil t)  ; Reading at buffer position 10394
  load-with-code-conversion("/home/werner/.emacs.d/init.el" "/home/werner/.emacs.d/init.el" t t)
  load("/home/werner/.emacs.d/init" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode 0xf1938509f904d1a>) #f(compiled-function () #<bytecode -0x1f3c692ddc0ebef5>) t)
  command-line()
  normal-top-level()

Any hints for fixing this problem?

Regards, HY

conao3 commented 3 years ago

Please do package-refresh-contents before install.