Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install package: file missing #8480

Closed
TLINDEN opened this issue Apr 11, 2023 · 4 comments
Closed

Unable to install package: file missing #8480

TLINDEN opened this issue Apr 11, 2023 · 4 comments

Comments

@TLINDEN
Copy link
Contributor

TLINDEN commented Apr 11, 2023

Hi,

I'm not sure if this belongs to this repo. If not I'd appreciate an advice where to report this issue to.

I'm trying to install expand-region with: (package-install 'expand-region) and get the following error message:

Contacting host: melpa.org:443 [2 times]
Parsing tar file...done
Extracting...done
package-autoload-ensure-default-file: Opening output file: No such file or directory, /home/scip/.emacs-init.d/elpa-27.1/expand-region-20221030.957/expand-region-autoloads.el

Debug log:

Debugger entered--Lisp error: (file-missing "Opening output file" "No such file or directory" "/home/scip/.emacs-init.d/elpa-27.1/expand-region-2...")
  write-region(";;; expand-region-autoloads.el --- automatically e..." nil "/home/scip/.emacs-init.d/elpa-27.1/expand-region-2..." nil silent)
  package-autoload-ensure-default-file("/home/scip/.emacs-init.d/elpa-27.1/expand-region-2...")
  package-generate-autoloads(expand-region "/home/scip/.emacs-init.d/elpa-27.1/expand-region-2...")
  package--make-autoloads-and-stuff(#s(package-desc :name expand-region :version (20221030 957) :summary "Increase selected region by semantic units." :reqs nil :kind tar :archive "melpa" :dir nil :extras ((:commit . "b70feaa644310dc2d599dc277cd20a1f2b6446ac") (:authors ("Magnar Sveen" . "[email protected]")) (:maintainer "Magnar Sveen" . "[email protected]") (:keywords "marking" "region")) :signed nil) "/home/scip/.emacs-init.d/elpa-27.1/expand-region-2...")
  package-unpack(#s(package-desc :name expand-region :version (20221030 957) :summary "Increase selected region by semantic units." :reqs nil :kind tar :archive "melpa" :dir nil :extras ((:commit . "b70feaa644310dc2d599dc277cd20a1f2b6446ac") (:authors ("Magnar Sveen" . "[email protected]")) (:maintainer "Magnar Sveen" . "[email protected]") (:keywords "marking" "region")) :signed nil))
  #f(compiled-function (&optional good-sigs) #<bytecode 0x158389bfec9d>)(nil)
  #f(compiled-function () #<bytecode 0x158389bfecfd>)()
  package--with-response-buffer-1("https://melpa.org/packages/" #f(compiled-function () #<bytecode 0x158389bfecd1>) :file "expand-region-20221030.957.tar.sig" :async nil :error-function #f(compiled-function () #<bytecode 0x158389bfecfd>) :noerror t)
  package--check-signature("https://melpa.org/packages/" "expand-region-20221030.957.tar" "expand-region-20221030.957/\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..." nil #f(compiled-function (&optional good-sigs) #<bytecode 0x158389bfec9d>))
  #f(compiled-function () #<bytecode 0x15838989a121>)()
  package--with-response-buffer-1("https://melpa.org/packages/" #f(compiled-function () #<bytecode 0x15838989a121>) :file "expand-region-20221030.957.tar" :async nil :error-function #f(compiled-function () #<bytecode 0x158389309e7d>) :noerror nil)
  package-install-from-archive(#s(package-desc :name expand-region :version (20221030 957) :summary "Increase selected region by semantic units." :reqs nil :kind tar :archive "melpa" :dir nil :extras ((:commit . "b70feaa644310dc2d599dc277cd20a1f2b6446ac") (:authors ("Magnar Sveen" . "[email protected]")) (:maintainer "Magnar Sveen" . "[email protected]") (:keywords "marking" "region")) :signed nil))
  mapc(package-install-from-archive (#s(package-desc :name expand-region :version (20221030 957) :summary "Increase selected region by semantic units." :reqs nil :kind tar :archive "melpa" :dir nil :extras ((:commit . "b70feaa644310dc2d599dc277cd20a1f2b6446ac") (:authors ("Magnar Sveen" . "[email protected]")) (:maintainer "Magnar Sveen" . "[email protected]") (:keywords "marking" "region")) :signed nil)))
  package-download-transaction((#s(package-desc :name expand-region :version (20221030 957) :summary "Increase selected region by semantic units." :reqs nil :kind tar :archive "melpa" :dir nil :extras ((:commit . "b70feaa644310dc2d599dc277cd20a1f2b6446ac") (:authors ("Magnar Sveen" . "[email protected]")) (:maintainer "Magnar Sveen" . "[email protected]") (:keywords "marking" "region")) :signed nil)))
  package-install(expand-region)
  eval((package-install 'expand-region) t)
  eval-expression((package-install 'expand-region) nil nil 127)
  funcall-interactively(eval-expression (package-install 'expand-region) nil nil 127)
  call-interactively(eval-expression record nil)
  command-execute(eval-expression record)
  execute-extended-command(nil "eval-expression" "eval-ex")
  funcall-interactively(execute-extended-command nil "eval-expression" "eval-ex")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

The directory in question /home/scip/.emacs-init.d/elpa-27.1/expand-region-20221030.957/ does not exist (or it has been deleted after the error).

I can't install change-inner as well, because it depends on expand-region. However, both of them can be installed with el-get.

PS: I've got the same problem with iedit :(

@tarsius
Copy link
Member

tarsius commented Apr 12, 2023

I'm not sure if this belongs to this repo.

It looks like an issue with your local setup, and while it involves package.el, it is unlikely that some Melpa issue plays a role in it.

Also this sounds like the kind of issue, where simply restarting Emacs has a good chance of making the issue go away. M-x package-refresh-contents might help too.

/home/scip/.emacs-init.d/elpa-27.1/expand-region-20221030.957/

This is an unusual path. Should be ~/.emacs.d or ~/.config/emacs, instead of ~/.emacs-init.d. Also it's usually elpa, not elpa-VERSION (though it is possible I have missed some recent changes in this area).

@tarsius tarsius closed this as completed Apr 12, 2023
@TLINDEN
Copy link
Contributor Author

TLINDEN commented Apr 12, 2023

@tarsius sorry, I meant I had already updated and closed this issue but it seems I forgot it. The issue is being caused by use-package, I opened a case there.

The "wrong" directory was caused because I was in the middle of re-organizing my emacs configs, so this was the transition dir. The elpa directory is customized to contain the emacs version, I took this from purcell's config. The idea here is to have an emacs version specific package directory.

@spearman
Copy link

I have the same problem and I don't think I am using use-package unless it is part of package-install by default.

Debugger entered--Lisp error: (file-missing "Opening output file" "No such file or directory" "/home/spearman/.emacs.d/elpa/auto-complete-1.5.1/a...")
  package-autoload-ensure-default-file("/home/spearman/.emacs.d/elpa/auto-complete-1.5.1/a...")
  package-generate-autoloads(auto-complete "/home/spearman/.emacs.d/elpa/auto-complete-1.5.1")
  package--make-autoloads-and-stuff(#s(package-desc :name auto-complete :version (1 5 1) :summary "Auto Completion for GNU Emacs" :reqs ((popup (0 5 0)) (cl-lib (0 5))) :kind tar :archive "melpa-stable" :dir nil :extras ((:commit . "0655b7f1e6c0f8475adc55f2b86404a877f26a77") (:authors ("Tomohiro Matsuyama" . "[email protected]")) (:maintainer "Tomohiro Matsuyama" . "[email protected]") (:keywords "completion" "convenience") (:url . "https://github.com/auto-complete/auto-complete")) :signed nil) "/home/spearman/.emacs.d/elpa/auto-complete-1.5.1")
  package-unpack(#s(package-desc :name auto-complete :version (1 5 1) :summary "Auto Completion for GNU Emacs" :reqs ((popup (0 5 0)) (cl-lib (0 5))) :kind tar :archive "melpa-stable" :dir nil :extras ((:commit . "0655b7f1e6c0f8475adc55f2b86404a877f26a77") (:authors ("Tomohiro Matsuyama" . "[email protected]")) (:maintainer "Tomohiro Matsuyama" . "[email protected]") (:keywords "completion" "convenience") (:url . "https://github.com/auto-complete/auto-complete")) :signed nil))
  #f(compiled-function (&optional good-sigs) #<bytecode 0x74ab2aa31acd69c>)(nil)
  #f(compiled-function () #<bytecode 0x176cd8d10ed61e5>)()
  package--with-response-buffer-1("https://stable.melpa.org/packages/" #f(compiled-function () #<bytecode 0x128e81501d2d4bf9>) :file "auto-complete-1.5.1.tar.sig" :async nil :error-function #f(compiled-function () #<bytecode 0x176cd8d10ed61e5>) :noerror t)
  package--check-signature("https://stable.melpa.org/packages/" "auto-complete-1.5.1.tar" "auto-complete-1.5.1/\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..." nil #f(compiled-function (&optional good-sigs) #<bytecode 0x74ab2aa31acd69c>))
  #f(compiled-function () #<bytecode -0x67fb6b51a73e32c>)()
  package--with-response-buffer-1("https://stable.melpa.org/packages/" #f(compiled-function () #<bytecode -0x67fb6b51a73e32c>) :file "auto-complete-1.5.1.tar" :async nil :error-function #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_75> :noerror nil)
  package-install-from-archive(#s(package-desc :name auto-complete :version (1 5 1) :summary "Auto Completion for GNU Emacs" :reqs ((popup (0 5 0)) (cl-lib (0 5))) :kind tar :archive "melpa-stable" :dir nil :extras ((:commit . "0655b7f1e6c0f8475adc55f2b86404a877f26a77") (:authors ("Tomohiro Matsuyama" . "[email protected]")) (:maintainer "Tomohiro Matsuyama" . "[email protected]") (:keywords "completion" "convenience") (:url . "https://github.com/auto-complete/auto-complete")) :signed nil))
  package-download-transaction((#s(package-desc :name auto-complete :version (1 5 1) :summary "Auto Completion for GNU Emacs" :reqs ((popup (0 5 0)) (cl-lib (0 5))) :kind tar :archive "melpa-stable" :dir nil :extras ((:commit . "0655b7f1e6c0f8475adc55f2b86404a877f26a77") (:authors ("Tomohiro Matsuyama" . "[email protected]")) (:maintainer "Tomohiro Matsuyama" . "[email protected]") (:keywords "completion" "convenience") (:url . "https://github.com/auto-complete/auto-complete")) :signed nil)))
  package-install(auto-complete)
  (if (package-installed-p package) nil (package-install package))
  (while --dolist-tail-- (setq package (car --dolist-tail--)) (if (package-installed-p package) nil (package-install package)) (setq --dolist-tail-- (cdr --dolist-tail--)))
  (let ((--dolist-tail-- package-list) package) (while --dolist-tail-- (setq package (car --dolist-tail--)) (if (package-installed-p package) nil (package-install package)) (setq --dolist-tail-- (cdr --dolist-tail--))))
  load-with-code-conversion("/home/spearman/.emacs.d/init.el" "/home/spearman/.emacs.d/init.el" t t)
  load("/home/spearman/.emacs.d/init" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode -0xb55e791f5d992c4>) #f(compiled-function () #<bytecode -0x1f3c686ddc0cdc35>) t)
  command-line()
  normal-top-level()

@spearman
Copy link

spearman commented May 4, 2023

Still haven't figured this out. Rolling back to Emacs 27.2 didn't seem to help.

I did discover that the auto-complete-1.5.1 directory has been created in the local directory where I started emacs. So my workaround for now is to go into ~/.emacs.d/elpa and start emacs there when installing any new packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants