Emacs will not start after attempting to setup helm/async packages

45 views
Skip to first unread message

SunilM

unread,
Oct 10, 2017, 4:08:43 PM10/10/17
to emacs-helm
emacs: GNU Emacs 25.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.22.19) of 2017-09-14
OS: Fedora 26

Was trying to solve a python mode problem by installing helm/async. Not the problems are worse.
After building helm and async according to project web page.
Getting a startup error and therefore commented out the config lines for helm and async.

Emacs still does not start with the following error!
I dont understand why emacs is still trying to load helm and async when i have commented the helm/async config lines in .emacs !!!


One of the semantic cache files still has :             ("helm-config" include nil nil [11627 11649])



Debugger entered--Lisp error: (file-error "Cannot open load file" "No such file or directory" "/home/sunil/.emacs.d/elpa/async/async-autoloads")
  load("/home/sunil/.emacs.d/elpa/async/async-autoloads" nil t)
  package--activate-autoloads-and-load-path([cl-struct-package-desc async (1 9) "Asynchronous processing in Emacs" nil nil nil "/home/sunil/.emacs.d/elpa/async" ((:keywords "async") (:url . "https://github.com/jwiegley/emacs-async")) nil])
  package--load-files-for-activation([cl-struct-package-desc async (1 9) "Asynchronous processing in Emacs" nil nil nil "/home/sunil/.emacs.d/elpa/async" ((:keywords "async") (:url . "https://github.com/jwiegley/emacs-async")) nil] nil)
  package-activate-1([cl-struct-package-desc async (1 9) "Asynchronous processing in Emacs" nil nil nil "/home/sunil/.emacs.d/elpa/async" ((:keywords "async") (:url . "https://github.com/jwiegley/emacs-async")) nil] nil deps)
  package-activate(async)
  package-activate-1([cl-struct-package-desc helm (2 8 5) "Helm is an Emacs incremental and narrowing framework" ((emacs (24 4)) (async (1 9 2)) (popup (0 5 3)) (helm-core (2 8 5))) nil nil "/home/sunil/.emacs.d/elpa/helm" ((:url . "https://emacs-helm.github.io/helm/")) nil] nil deps)
  package-activate(helm)
  package-initialize()
  eval-buffer(#<buffer  *load*> nil "/home/sunil/.emacs" nil t)  ; Reading at buffer position 841
  load-with-code-conversion("/home/sunil/.emacs" "/home/sunil/.emacs" t t)
  load("~/.emacs" t t)
  #[0 " \205\266 \306=\203 \307 \310Q\202? \311=\204 \307 \312Q\202?\313\307\314\315#\203*\316\202?\313\307\314\317#\203>\320\321\322!D\nB \323\202?\316\324 \325 \324\211#\210 \324=\203e\326\327\330\307 \331Q!\"\325 \324\211#\210 \324=\203d \210 \203\247\332 !\333\232\203\247\334 !\211\335P\336 !\203\201\211\202\214\336 !\203\213 \202\214\314\262 \203\245\337 \"\203\243\340\341 #\210\342\343!\210 \266 \f?\205\264\314 \325\344\324\211#)\262 \207" [init-file-user system-type delayed-warnings-list user-init-file inhibit-default-init inhibit-startup-screen ms-dos "~" "/_emacs" windows-nt "/.emacs" directory-files nil "^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" "^_emacs\\(\\.elc?\\)?$" initialization format-message "`_emacs' init file is deprecated, please use `.emacs'" "~/_emacs" t load expand-file-name "init" file-name-as-directory "/.emacs.d" file-name-extension "elc" file-name-sans-extension ".el" file-exists-p file-newer-than-file-p message "Warning: %s is newer than %s" sit-for 1 "default"] 7]()
  command-line()

Thierry Volpiatto

unread,
Oct 11, 2017, 2:43:04 AM10/11/17
to emacs...@googlegroups.com

Looks a problem with your installation, verify async package is really
installed and use its Melpa version, not the Elpa version (use package-pinned-packages).
Once done use .emacs-helm.sh to see if all work.

SunilM <sellp...@gmail.com> writes:

> I dont understand why emacs is still trying to load helm and async
> when i have commented the helm/async config lines in .emacs !!!

Because package-initialize try to load all packages that are in your
elpa directory.

> Debugger entered--Lisp error: (file-error "Cannot open load file" "No
> such file or directory"
> "/home/sunil/.emacs.d/elpa/async/async-autoloads")

The name of the package should not be "async" but something like "async-2017-xx-xx".


--
Thierry

SunilM

unread,
Oct 11, 2017, 3:23:48 PM10/11/17
to emacs-helm


On Wednesday, October 11, 2017 at 2:43:04 AM UTC-4, thierry v wrote:

Looks a problem with your installation, verify async package is really
installed and use its Melpa version, not the Elpa version (use package-pinned-packages).
Once done use .emacs-helm.sh to see if all work.

SunilM <sellp...@gmail.com> writes:

> I dont understand why emacs is still trying to load helm and async
> when i have commented the helm/async config lines in .emacs !!!  
Because package-initialize try to load all packages that are in your
elpa directory.

Thanks! Didnt know this. Renamed dirs in elpa directory and emacs is working again.

> Debugger entered--Lisp error: (file-error "Cannot open load file" "No
> such file or directory"
> "/home/sunil/.emacs.d/elpa/async/async-autoloads")

The name of the package should not be "async" but something like "async-2017-xx-xx".
Any idea on what it should be exactly ? the instructions on page https://emacs-helm.github.io/helm dont specify a format for the async dir.
 
 Also, the README in async doesnt really specify any to install into any specific directory structure/name.

So as to your explanation above, I removed helm and async dirs from under elpa and back to normal.
Excellent! Thanks.

Normal being all modes except one work: C++. perl, shell modes work as usual.
Python mode doesnt work, which is what i was trying to install helm and async to rectify.
But at least emacs is back and its alive!



--
Thierry

Thierry Volpiatto

unread,
Oct 12, 2017, 12:14:08 AM10/12/17
to emacs...@googlegroups.com

SunilM <sellp...@gmail.com> writes:

>> The name of the package should not be "async" but something like "async-2017-xx-xx".
> Any idea on what it should be exactly ? the instructions on
> pagehttps://emacs-helm.github.io/helm dont specify a format for the
> async dir.

You don't have to modify the directory names yourself in your Elpa
directory, package.el does that for you.

Read https://github.com/emacs-helm/helm/wiki/FAQ#errors-when-running-make

Also be sure to install async from Melpa and not Elpa which is outdated.
Use for this:

(setq package-pinned-packages '((async . "melpa")))

--
Thierry
Reply all
Reply to author
Forward
0 new messages