technomancy / emacs-starter-kit

[ARCHIVED] this is ancient history
GNU General Public License v3.0
2.87k stars 887 forks source link

package-initialize fails with File error: Cannot open load file, inversion #155

Closed tibbe closed 11 years ago

tibbe commented 11 years ago

Using a pristine checkout of emacs-starter-kit v1, Emacs 23.1.1, and no user-specific config, init.el fails to load with this error:

File error: Cannot open load file, inversion

Starting emacs with --debug-init gives this backtrace:

Debugger entered--Lisp error: (file-error "Cannot open load file" "inversion")
  require(inversion)
  eval-buffer(#<buffer  *load*<3>> nil "/home/tibell/.emacs.d/elpa/eieio-1.4/eieio.el" nil t)  ; Reading at buffer position 2218
  load-with-code-conversion("/home/tibell/.emacs.d/elpa/eieio-1.4/eieio.el" "/home/tibell/.emacs.d/elpa/eieio-1.4/eieio.el" nil t)
  require(eieio)
  eval-buffer(#<buffer  *load*<2>> nil "/home/tibell/.emacs.d/elpa/gh-0.5.3/gh-autoloads.el" nil t)  ; Reading at buffer position 189
  load-with-code-conversion("/home/tibell/.emacs.d/elpa/gh-0.5.3/gh-autoloads.el" "/home/tibell/.emacs.d/elpa/gh-0.5.3/gh-autoloads.el" nil t)
  load("/home/tibell/.emacs.d/elpa/gh-0.5.3/gh-autoloads" nil t)
  (let* ((name ...) (version-str ...) (pkg-dir ...)) (unless pkg-dir (error "Internal error: unable to find directory for `%s-%s'" name version-str)) (when (file-exists-p ...)$
  package-activate-1(gh [(0 5 3) ((eieio ...) (pcache ...) (logito ...)) "A GitHub library for Emacs"])
  (if fail (warn "Unable to activate package `%s'.\nRequired package `%s-%s' is unavailable" package (car fail) (package-version-join ...)) (package-activate-1 package pkg-vec$
  (let ((fail ...)) (if fail (warn "Unable to activate package `%s'.\nRequired package `%s-%s' is unavailable" package ... ...) (package-activate-1 package pkg-vec)))
  (cond ((null found) (package-built-in-p package version)) ((memq package package-activated-list) t) (t (let ... ...)))
  (let ((pkg-vec ...) available-version found) (when pkg-vec (setq available-version ... found ...)) (cond (... ...) (... t) (t ...)))
  package-activate(gh (0 5 3))
  (if (package-activate (car req) (cadr req)) nil (throw (quote dep-failure) req))
  (unless (package-activate (car req) (cadr req)) (throw (quote dep-failure) req))
  (while --dolist-tail-- (setq req (car --dolist-tail--)) (unless (package-activate ... ...) (throw ... req)) (setq --dolist-tail-- (cdr --dolist-tail--)))
  (let ((--dolist-tail-- ...) req) (while --dolist-tail-- (setq req ...) (unless ... ...) (setq --dolist-tail-- ...)))
  (dolist (req (package-desc-reqs pkg-vec)) (unless (package-activate ... ...) (throw ... req)))
  (catch (quote dep-failure) (dolist (req ...) (unless ... ...)))
  (let ((fail ...)) (if fail (warn "Unable to activate package `%s'.\nRequired package `%s-%s' is unavailable" package ... ...) (package-activate-1 package pkg-vec)))
  (cond ((null found) (package-built-in-p package version)) ((memq package package-activated-list) t) (t (let ... ...)))
  (let ((pkg-vec ...) available-version found) (when pkg-vec (setq available-version ... found ...)) (cond (... ...) (... t) (t ...)))
  package-activate(gist (1 0 2))
  (while --dolist-tail-- (setq elt (car --dolist-tail--)) (package-activate (car elt) (package-desc-vers ...)) (setq --dolist-tail-- (cdr --dolist-tail--)))
  (let ((--dolist-tail-- package-alist) elt) (while --dolist-tail-- (setq elt ...) (package-activate ... ...) (setq --dolist-tail-- ...)))
  (dolist (elt package-alist) (package-activate (car elt) (package-desc-vers ...)))
  (if no-activate nil (dolist (elt package-alist) (package-activate ... ...)))
  (unless no-activate (dolist (elt package-alist) (package-activate ... ...)))
  package-initialize()
  eval-buffer(#<buffer  *load*> nil "/home/tibell/.emacs.d/init.el" nil t)  ; Reading at buffer position 1293
  load-with-code-conversion("/home/tibell/.emacs.d/init.el" "/home/tibell/.emacs.d/init.el" t t)
  load("/home/tibell/.emacs.d/init" t t)
  #[nil "^H\205\264^@   \306=\203^Q^@\307^H\310Q\2027^@ \311=\2033^@\312\307\313\314#\203#^@\315\2027^@\312\307\313\316#\203/^@\317\2027^@\315\2027^@\307^H\320Q^Z\321^S\322\n\$
  command-line()
  normal-top-level()

The mentioned buffer position, 1293, corresponds to the call to package-initialize init init.el.

Here's the compilation log from rm -rf elpa/* and re-starting Emacs:

Leaving directory `/home/tibell/.emacs.d/elpa/idle-highlight-mode-1.1.2'

Compiling file /home/tibell/.emacs.d/elpa/idle-highlight-mode-1.1.2/idle-highlight-mode-pkg.el at Fri Nov  2 10:39:20 2012
Entering directory `/home/tibell/.emacs.d/elpa/idle-highlight-mode-1.1.2/'

Compiling file /home/tibell/.emacs.d/elpa/idle-highlight-mode-1.1.2/idle-highlight-mode.el at Fri Nov  2 10:39:20 2012

In idle-highlight-word-at-point:
idle-highlight-mode.el:75:7:Warning: reference to free variable
    `idle-highlight-mode'

In idle-highlight-unhighlight:
idle-highlight-mode.el:89:1:Warning: defsubst `idle-highlight-unhighlight' was
    used before it was defined

Compiling no file at Fri Nov  2 10:39:21 2012
Leaving directory `/home/tibell/.emacs.d/elpa/inf-ruby-2.2.3'

Compiling file /home/tibell/.emacs.d/elpa/inf-ruby-2.2.3/inf-ruby-pkg.el at Fri Nov  2 10:39:21 2012
Entering directory `/home/tibell/.emacs.d/elpa/inf-ruby-2.2.3/'

Compiling file /home/tibell/.emacs.d/elpa/inf-ruby-2.2.3/inf-ruby.el at Fri Nov  2 10:39:21 2012

Compiling no file at Fri Nov  2 10:39:21 2012
Leaving directory `/home/tibell/.emacs.d/elpa/yaml-mode-0.0.7'

Compiling file /home/tibell/.emacs.d/elpa/yaml-mode-0.0.7/yaml-mode-pkg.el at Fri Nov  2 10:39:21 2012
Entering directory `/home/tibell/.emacs.d/elpa/yaml-mode-0.0.7/'

Compiling file /home/tibell/.emacs.d/elpa/yaml-mode-0.0.7/yaml-mode.el at Fri Nov  2 10:39:22 2012

In yaml-electric-bar-and-angle:
yaml-mode.el:370:17:Warning: `last-command-char' is an obsolete variable (as
    of Emacs at least 19.34); use `last-command-event' instead.

Compiling no file at Fri Nov  2 10:39:22 2012
Leaving directory `/home/tibell/.emacs.d/elpa/find-file-in-project-3.2'

Compiling file /home/tibell/.emacs.d/elpa/find-file-in-project-3.2/find-file-in-project-pkg.el at Fri Nov  2 10:39:22 2012
Entering directory `/home/tibell/.emacs.d/elpa/find-file-in-project-3.2/'

Compiling file /home/tibell/.emacs.d/elpa/find-file-in-project-3.2/find-file-in-project.el at Fri Nov  2 10:39:22 2012

In ffip-project-root:
find-file-in-project.el:100:39:Warning: Function `some' from cl package called
    at runtime

Compiling no file at Fri Nov  2 10:39:33 2012
Leaving directory `/home/tibell/.emacs.d/elpa/magit-1.2.0'

Compiling file /home/tibell/.emacs.d/elpa/magit-1.2.0/magit-bisect.el at Fri Nov  2 10:39:33 2012
Entering directory `/home/tibell/.emacs.d/elpa/magit-1.2.0/'

Compiling file /home/tibell/.emacs.d/elpa/magit-1.2.0/magit-blame.el at Fri Nov  2 10:39:33 2012

Compiling file /home/tibell/.emacs.d/elpa/magit-1.2.0/magit-key-mode.el at Fri Nov  2 10:39:33 2012

Compiling file /home/tibell/.emacs.d/elpa/magit-1.2.0/magit-pkg.el at Fri Nov  2 10:39:33 2012

Compiling file /home/tibell/.emacs.d/elpa/magit-1.2.0/magit-stgit.el at Fri Nov  2 10:39:33 2012

In magit-stgit-mode:
magit-stgit.el:279:10:Warning: called-interactively-p called with 1 argument,
    but accepts only 0

Compiling file /home/tibell/.emacs.d/elpa/magit-1.2.0/magit-svn.el at Fri Nov  2 10:39:33 2012

In magit-svn-mode:
magit-svn.el:231:12:Warning: called-interactively-p called with 1 argument,
    but accepts only 0

Compiling file /home/tibell/.emacs.d/elpa/magit-1.2.0/magit-topgit.el at Fri Nov  2 10:39:33 2012

In magit-topgit-mode:
magit-topgit.el:182:10:Warning: called-interactively-p called with 1 argument,
    but accepts only 0

Compiling file /home/tibell/.emacs.d/elpa/magit-1.2.0/magit-wip.el at Fri Nov  2 10:39:33 2012

Compiling file /home/tibell/.emacs.d/elpa/magit-1.2.0/magit.el at Fri Nov  2 10:39:34 2012

Compiling file /home/tibell/.emacs.d/elpa/magit-1.2.0/rebase-mode.el at Fri Nov  2 10:39:34 2012

Compiling no file at Fri Nov  2 10:39:35 2012
Leaving directory `/home/tibell/.emacs.d/elpa/tabulated-list-0'

Compiling file /home/tibell/.emacs.d/elpa/tabulated-list-0/tabulated-list-pkg.el at Fri Nov  2 10:39:35 2012
Entering directory `/home/tibell/.emacs.d/elpa/tabulated-list-0/'

Compiling file /home/tibell/.emacs.d/elpa/tabulated-list-0/tabulated-list.el at Fri Nov  2 10:39:35 2012

Compiling no file at Fri Nov  2 10:39:36 2012
Leaving directory `/home/tibell/.emacs.d/elpa/logito-0.1'

Compiling file /home/tibell/.emacs.d/elpa/logito-0.1/logito-pkg.el at Fri Nov  2 10:39:36 2012
Entering directory `/home/tibell/.emacs.d/elpa/logito-0.1/'

Compiling file /home/tibell/.emacs.d/elpa/logito-0.1/logito.el at Fri Nov  2 10:39:36 2012
logito.el:34:1:Error: Cannot open load file: eieio

Compiling no file at Fri Nov  2 10:39:37 2012
Leaving directory `/home/tibell/.emacs.d/elpa/pcache-0.2.3'

Compiling file /home/tibell/.emacs.d/elpa/pcache-0.2.3/pcache-pkg.el at Fri Nov  2 10:39:37 2012
Entering directory `/home/tibell/.emacs.d/elpa/pcache-0.2.3/'

Compiling file /home/tibell/.emacs.d/elpa/pcache-0.2.3/pcache.el at Fri Nov  2 10:39:37 2012
pcache.el:57:1:Error: Cannot open load file: eieio

Compiling no file at Fri Nov  2 10:39:39 2012
Leaving directory `/home/tibell/.emacs.d/elpa/gh-0.5.3'

Compiling file /home/tibell/.emacs.d/elpa/gh-0.5.3/gh-api.el at Fri Nov  2 10:39:39 2012
Entering directory `/home/tibell/.emacs.d/elpa/gh-0.5.3/'
gh-api.el:33:1:Error: Cannot open load file: eieio

Compiling file /home/tibell/.emacs.d/elpa/gh-0.5.3/gh-auth.el at Fri Nov  2 10:39:39 2012
gh-auth.el:33:1:Error: Cannot open load file: eieio

Compiling file /home/tibell/.emacs.d/elpa/gh-0.5.3/gh-cache.el at Fri Nov  2 10:39:39 2012
gh-cache.el:33:1:Error: Cannot open load file: eieio

Compiling file /home/tibell/.emacs.d/elpa/gh-0.5.3/gh-common.el at Fri Nov  2 10:39:39 2012
gh-common.el:33:1:Error: Cannot open load file: eieio

Compiling file /home/tibell/.emacs.d/elpa/gh-0.5.3/gh-gist.el at Fri Nov  2 10:39:39 2012
gh-gist.el:33:1:Error: Cannot open load file: eieio

Compiling file /home/tibell/.emacs.d/elpa/gh-0.5.3/gh-issues.el at Fri Nov  2 10:39:39 2012
gh-issues.el:37:1:Error: Cannot open load file: eieio

Compiling file /home/tibell/.emacs.d/elpa/gh-0.5.3/gh-oauth.el at Fri Nov  2 10:39:39 2012
gh-oauth.el:33:1:Error: Cannot open load file: eieio

Compiling file /home/tibell/.emacs.d/elpa/gh-0.5.3/gh-pkg.el at Fri Nov  2 10:39:39 2012

Compiling file /home/tibell/.emacs.d/elpa/gh-0.5.3/gh-pulls.el at Fri Nov  2 10:39:39 2012
gh-pulls.el:33:1:Error: Cannot open load file: eieio

Compiling file /home/tibell/.emacs.d/elpa/gh-0.5.3/gh-repos.el at Fri Nov  2 10:39:39 2012
gh-repos.el:33:1:Error: Cannot open load file: eieio

Compiling file /home/tibell/.emacs.d/elpa/gh-0.5.3/gh.el at Fri Nov  2 10:39:39 2012
gh.el:29:1:Error: Cannot open load file: eieio

Compiling no file at Fri Nov  2 10:39:42 2012
Leaving directory `/home/tibell/.emacs.d/elpa/eieio-1.4'

Compiling file /home/tibell/.emacs.d/elpa/eieio-1.4/eieio-comp.el at Fri Nov  2 10:39:42 2012
Entering directory `/home/tibell/.emacs.d/elpa/eieio-1.4/'

In byte-compile-file-form-defmethod:
eieio-comp.el:95:30:Warning: reference to free variable `bytecomp-outbuffer'

In end of data:
eieio-comp.el:202:1:Warning: the following functions are not known to be defined:
    compiled-function-arglist, compiled-function-instructions,
    compiled-function-constants, compiled-function-stack-depth,
    compiled-function-doc-string, compiled-function-interactive,
    eieio-defgeneric-form

Compiling file /home/tibell/.emacs.d/elpa/eieio-1.4/eieio-opt.el at Fri Nov  2 10:39:42 2012
eieio-opt.el:32:1:Error: Cannot open load file: inversion

Compiling file /home/tibell/.emacs.d/elpa/eieio-1.4/eieio-pkg.el at Fri Nov  2 10:39:42 2012

Compiling file /home/tibell/.emacs.d/elpa/eieio-1.4/eieio.el at Fri Nov  2 10:39:42 2012
eieio.el:61:1:Error: Cannot open load file: inversion

Compiling no file at Fri Nov  2 10:39:43 2012
Leaving directory `/home/tibell/.emacs.d/elpa/gist-1.0.2'

Compiling file /home/tibell/.emacs.d/elpa/gist-1.0.2/gist-pkg.el at Fri Nov  2 10:39:43 2012
Entering directory `/home/tibell/.emacs.d/elpa/gist-1.0.2/'

Compiling file /home/tibell/.emacs.d/elpa/gist-1.0.2/gist.el at Fri Nov  2 10:39:43 2012
gist.el:44:1:Error: Cannot open load file: eieio
technomancy commented 11 years ago

Looks like gist.el has been updated with a new version that requires Emacs 24. Might be able to work around it by removing references to the gist package.

tibbe commented 11 years ago

I can confirm that removing the mention of gist in starter-kit-elpa.el works around the issue.

anno1337 commented 9 years ago

Works for me too. Thanks.