all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jeremy Korwin-Zmijowski <jeremy@korwin-zmijowski.fr>
To: zimoun <zimon.toutoune@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Failed to connect to guix daemon socket in pure env
Date: Thu, 20 Feb 2020 08:54:53 +0100	[thread overview]
Message-ID: <e2b3e06c01027decb7b2ccb6721b00601b4f74cd.camel@korwin-zmijowski.fr> (raw)
In-Reply-To: <d9a7d1819e84376969554058a8c95d1a65ee8c64.camel@korwin-zmijowski.fr>

[-- Attachment #1: Type: text/plain, Size: 4043 bytes --]

Le jeudi 20 février 2020 à 08:53 +0100, Jeremy Korwin-Zmijowski a
écrit :
> Le jeudi 20 février 2020 à 01:17 +0100, zimoun a écrit :
> > Hi Jeremy,
> > 
> > On Thu, 20 Feb 2020 at 00:33, Jeremy Korwin-Zmijowski
> > <jeremy@korwin-zmijowski.fr> wrote:
> > 
> > > $ ./pre-inst-env guix package --install-from-file=emacs-ac-
> > > geiser.scm
> > > guix package: error: failed to connect to
> > > `/usr/local/var/guix/daemon-
> > > socket/socket': No such file or directory
> > > 
> > > Any idea ?
> > 
> > Is the daemon up?
> > As root "systemctl start guix-daemon".
> > 
> > Does the simple "guix install foo" work for you?
> > 
> > And how have you installed Guix?
> > 
> > 
> > Cheers,
> > simon
> 
> Hey Simon!
> 
> Thank you it does help.
> 
> Now the process stucks here ("emacs-ac-geiser.scm" is my almost hand-
> made definition):
> 
> $ ./pre-inst-env guix package --install-from-file=emacs-ac-geiser.scm
> [...]
> View build log at
> '/var/log/guix/drvs/9s/6pm5yamchw1b9ywl74lw8rbpgkyk7d-emacs-ac-
> geiser-
> v0.1.drv.bz2'.
> $ bzless /var/log/guix/drvs/9s/6pm5yamchw1b9ywl74lw8rbpgkyk7d-emacs-
> ac-
> geiser-v0.1.drv.bz2
> 
>    [...]
>    starting phase `build'
>    Checking /gnu/store/byvq8drq990mkl4v0yc1llg8r3jc8q3v-emacs-ac-
>    geiser-v0.1/share/emacs/site-lisp/...
>    Compiling /gnu/store/byvq8drq990mkl4v0yc1llg8r3jc8q3v-emacs-ac-
>    geiser-v0.1/share/emacs/site-lisp/ac-geiser-v0.1-autoloads.el...
>    Compiling /gnu/store/byvq8drq990mkl4v0yc1llg8r3jc8q3v-emacs-ac-
>    geiser-v0.1/share/emacs/site-lisp/ac-geiser.el...
>    Cannot open load file: No such file or directory, geiser
>    command "/gnu/store/wmn02s4a2l5l5zaiv9lwahh808pdlpn4-emacs-
> minimal-
>    26.3/bin/emacs" "--quick" "--batch" "--eval=(progn (setq byte-
>    compile-debug t) (byte-recompile-directory (file-name-as-directory
>    \"/gnu/store/byvq8drq990mkl4v0yc1llg8r3jc8q3v-emacs-ac-geiser-
>    v0.1/share/emacs/site-lisp\") 0 1))" failed with status 255
> 
> See whole log in attached "emacs-ac-geiser-v0.1.drv.bz2" file
> 
> The same error occurs with :
> $ guix environment --pure guix --ad-hoc emacs emacs-geiser emacs-
> auto-
> complete
> 
> or even
> 
> $ guix environment --pure guix
> 
> 
> 
> To try from a different angle, I did it all over again with
> 
> $ ./pre-inst-env guix import elpa --archive=melpa-stable ac-geiser
> 
> I copied the resulted definition in "emacs-ac-geiser-imported.scm"
> 
> $ guix environment --pure guix --ad-hoc emacs emacs-geiser emacs-
> auto-
> complete
> 
> $ ./pre-inst-env guix package --install-from-file=emacs-ac-geiser-
> imported.scm
> 
> Backtrace:
>           14 (apply-smob/1 #<catch-closure 7f182e9fd720>)
> In ice-9/boot-9.scm:
>     705:2 13 (call-with-prompt _ _ #<procedure default-prompt-
> handle?>)
> In ice-9/eval.scm:
>     619:8 12 (_ #(#(#<directory (guile-user) 7f182e6a8140>)))
> In guix/ui.scm:
>   1824:12 11 (run-guix-command _ . _)
> In ice-9/boot-9.scm:
>     829:9 10 (catch _ _ #<procedure 7f182e5ed430 at guix/ui.scm:657?>
> ?)
>     829:9  9 (catch _ _ #<procedure 7f182e5ed448 at guix/ui.scm:791?>
> ?)
> In guix/scripts/package.scm:
>    951:10  8 (_)
> In guix/status.scm:
>     768:4  7 (call-with-status-report _ _)
> In guix/scripts/package.scm:
>    959:14  6 (_)
> In guix/build/syscalls.scm:
>    1145:4  5 (call-with-file-lock/no-wait _ _ _)
> In guix/scripts/package.scm:
>    897:21  4 (_)
>     608:4  3 (options->installable ((install . #<package emacs-?>) ?)
> ?)
> In srfi/srfi-1.scm:
>    697:23  2 (filter-map #<procedure 7f182bf4a658 at guix/scripts?> .
> #)
> In guix/profiles.scm:
>    316:24  1 (package->manifest-entry #<package emacs-ac-geiser@0.1?>
> ?)
> In emacs-ac-geiser-imported.scm:
>      24:6  0 (propagated-inputs #<package emacs-ac-geiser@0.1 emacs-
> ?>)
> 
> emacs-ac-geiser-imported.scm:24:6: In procedure propagated-inputs:
> error: emacs-geiser: unbound variable
> 
> 
> Don't know what I can do more than the virtual env including emacs-
> geiser already...
> 
> Jérémy
> 

And the definitions... haha could help !

[-- Attachment #2: emacs-ac-geiser.scm --]
[-- Type: text/x-scheme, Size: 1118 bytes --]

(define-module (emacs-ac-geiser)
  #:use-module (guix packages)
  #:use-module (guix git-download)
  #:use-module (guix licenses)
  #:use-module (guix build-system emacs)
  #:use-module ((guix licenses) #:prefix license:))

(define-public emacs-ac-geiser
  (package
   (name "emacs-ac-geiser")
   (version "v0.1")
   (source (origin
	    (method git-fetch)
	    (uri (git-reference
		  (url "https://github.com/xiaohanyu/ac-geiser/")
		  (commit version)))
	    (file-name (git-file-name name version))
	    (sha256
	     (base32
	      "02ifz25rq64z0ifxs52aqdz0iz4mi6xvj88hcn3aakkmsj749vvn"))))
   (build-system emacs-build-system)
   (home-page "https://github.com/xiaohanyu/ac-geiser/")
   (synopsis "Emacs auto-complete backend for geiser.")
   (description
    "This project is inspired by ac-slime and ac-nrepl, which makes Scheme programming in Emacs more enjoyable by providing a completion source for the popular Emacs interactive auto-completion framework auto-complete.

Where geiser provides it, pop-up documentation for completed symbols will be displayed.")
   (license license:bsd-3)))

emacs-ac-geiser

[-- Attachment #3: emacs-ac-geiser-imported.scm --]
[-- Type: text/x-scheme, Size: 1015 bytes --]

(define-module (emacs-ac-geiser)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix licenses)
  #:use-module (guix build-system emacs)
  #:use-module ((guix licenses) #:prefix license:))

(define-public emacs-ac-geiser
  (package
    (name "emacs-ac-geiser")
    (version "0.1")
    (source
      (origin
        (method url-fetch)
        (uri (string-append
               "https://stable.melpa.org/packages/ac-geiser-"
               version
               ".tar"))
        (sha256
          (base32
            "17l5bpzpldzyazbpjg67f17x3n5q081xffx4jz7jblbk7bcybzrj"))))
    (build-system emacs-build-system)
    (propagated-inputs
      `(("emacs-geiser" ,emacs-geiser)
        ("emacs-auto-complete" ,emacs-auto-complete)))
    (home-page "https://github.com/xiaohanyu/ac-geiser/")
    (synopsis "Auto-complete backend for geiser")
    (description
      "Provides one auto-complete source for Scheme projects using geiser.
")
    (license license:bsd-3)))
    
emacs-ac-geiser

  reply	other threads:[~2020-02-20  7:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-19 23:33 Failed to connect to guix daemon socket in pure env Jeremy Korwin-Zmijowski
2020-02-20  0:17 ` zimoun
2020-02-20  7:53   ` Jeremy Korwin-Zmijowski
2020-02-20  7:54     ` Jeremy Korwin-Zmijowski [this message]
2020-02-20  8:13       ` Jeremy Korwin-Zmijowski
2020-02-20 10:10         ` zimoun
2020-02-21 12:59           ` zimoun
2020-02-22 10:26             ` Jérémy Korwin-Zmijowski
2020-02-20  0:25 ` zimoun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e2b3e06c01027decb7b2ccb6721b00601b4f74cd.camel@korwin-zmijowski.fr \
    --to=jeremy@korwin-zmijowski.fr \
    --cc=help-guix@gnu.org \
    --cc=zimon.toutoune@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.