alezost / guix.el

Emacs interface for GNU Guix package manager
https://emacs-guix.gitlab.io/website/
GNU General Public License v3.0
139 stars 16 forks source link

Using guix pull complains about lack of bootstrap binaries. #6

Open jellelicht opened 7 years ago

jellelicht commented 7 years ago

When running guix pull via M-x guix, P, r, I get a *Guix Repl* with the following output:

GNU Guile 2.2.2
Copyright (C) 1995-2017 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> ,m (emacs-guix)
scheme@(emacs-guix)> (guix-command "pull")
$4 = #t
scheme@(emacs-guix)> 
It's been nice interacting with you!
Press C-c C-z to bring me back.
GNU Guile 2.2.2
Copyright (C) 1995-2017 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> ,m (emacs-guix)
scheme@(emacs-guix)> 

I am using

Some debugging on the created guix repl gives me the following:

scheme@(emacs-guix)> (guix-command-output "pull")
$4 = ""
$5 = "guix pull: error: could not find bootstrap binary 'guile-2.0.9.tar.xz' for system 'x86_64-linux'\n"

Invoking guix pull from any shell does seem to have the desired effect, and does not mention the bootstrap binary problem.

alezost commented 7 years ago

Wow, I didn't expect anyone uses "M-x guix" and especially "pull" :-) BTW, there is also "M-x guix-pull".

I don't reproduce this error. Maybe there is some problem with load paths or environment variables. Could you check in the REPL the values of %load-path and %load-compiled-path variables?

jellelicht commented 7 years ago

Well, currently I am not using it either :wink:

scheme@(guile-user)> ,m (emacs-guix)
scheme@(emacs-guix)> %load-path
$4 = ("/home/jelle/.emacs.d/elpa/guix-20170902.1128/scheme" "/home/jelle/.config/guix/latest" "/home/jelle/.emacs.d/elpa/geiser-20170827.1755/scheme/guile/" "/home/jelle/.guix-profile/share/guile/site/2.2" "/gnu/store/0kay0503aqwxx6rrhnqr1jmdlcwm9wy2-guile-2.2.2/share/guile/2.2" "/gnu/store/0kay0503aqwxx6rrhnqr1jmdlcwm9wy2-guile-2.2.2/share/guile/site/2.2" "/gnu/store/0kay0503aqwxx6rrhnqr1jmdlcwm9wy2-guile-2.2.2/share/guile/site" "/gnu/store/0kay0503aqwxx6rrhnqr1jmdlcwm9wy2-guile-2.2.2/share/guile")
scheme@(emacs-guix)> %load-compiled-path
$5 = ("/home/jelle/.config/guix/latest" "/home/jelle/.guix-profile/lib/guile/2.2/site-ccache" "/home/jelle/.guix-profile/share/guile/site/2.2" "/gnu/store/0kay0503aqwxx6rrhnqr1jmdlcwm9wy2-guile-2.2.2/lib/guile/2.2/ccache" "/gnu/store/0kay0503aqwxx6rrhnqr1jmdlcwm9wy2-guile-2.2.2/lib/guile/2.2/site-ccache")
alezost commented 7 years ago

Well, currently I am not using it either 😉

Do you mean you used it in the past (in Emacs-Guix 0.3.2?) and it worked?

These paths look OK to me. To be honest, I have no idea why this error could happen. I tested it on GuixSD, maybe there is something specific to a non-GuixSD system. I'll test it there soon, but even if I will reproduce, I doubt I can do anything. Most of the Guix internals is still a mystery for me :blush:

jellelicht commented 6 years ago

TBH, I know that this worked on my GuixSD installation, but as my T400 is being repaired I am currently running Guix on Ubuntu. Thanks for looking into this nonetheless :+1: