help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using ELPA in batch mode on Windows fails


From: Robin Neatherway
Subject: Using ELPA in batch mode on Windows fails
Date: Thu, 2 Oct 2014 12:40:53 +0100

Hi,

I have an automated test suite that downloads a few packages from ELPA
to simulate a fresh install. It runs perfectly well on Linux and OSX,
but not on Windows with Emacs 24.3.1. A simple way to reproduce the
problem is:

>c:\utils\emacs\bin\emacs -Q --batch -f toggle-debug-on-error --eval "(setq 
>package-archives '((\"gnu\" . \"http://elpa.gnu.org/packages/\";)))" --eval 
>"(package-refresh-contents)"
Debug on Error enabled globally
Contacting host: elpa.gnu.org:80
Memory exhausted--use C-x s then exit and restart Emacs

I also tried using an up to date binary from
http://sourceforge.net/projects/emacs-bin/ dated 9th September 2014.
This fails to find gpg:

>c:\utils\emacs-trunk\bin\emacs -Q --batch -f toggle-debug-on-error --eval 
>"(setq package-archives '((\"gnu\" . \"http://elpa.gnu.org/packages/\";)))" 
>--eval "(package-refresh-contents)"
Debug on Error enabled globally
Contacting host: elpa.gnu.org:80
Contacting host: elpa.gnu.org:80
Debugger entered--Lisp error: (file-error "Searching for program" "no
such file or directory" "
gpg")
  start-process("epg" #<buffer  *epg*> "gpg" "--no-tty" "--status-fd"
"1" "--yes" "--homedir" "
d:/dev/rneatherway-fsharpbinding/emacs/tmp/.emacs.d/elpa/gnupg"
"--command-fd" "0" "--output" "
c:/Users/robnea/AppData/Local/Temp/epg-output3804P5-" "--verify" "--"
"c:/Users/robnea/AppData/
Local/Temp/epg-signature3804jvu" "-")
... snip ...

while using MELPA works fine:

D:\dev\rneatherway-fsharpbinding\FSharp.AutoComplete>c:\utils\emacs-trunk\bin\emacs
--batch -f toggle-debug-on-error --eval "(setq package-archives
'((\"melpa\" . \"http://melpa.milkbox.net/packages/\";)))" --eval
"(package-refresh-contents)"
Debug on Error enabled globally
Contacting host: melpa.milkbox.net:80
Contacting host: melpa.milkbox.net:80



I'm not quite sure how to proceed debugging this, but something seems
to be not quite right with the Windows build.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]