[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guile code snippet
From: |
Olivier Dion |
Subject: |
Re: Guile code snippet |
Date: |
Thu, 21 Apr 2022 16:08:49 -0400 |
On Thu, 21 Apr 2022, Ricardo Wurmus <rekado@elephly.net> wrote:
>>> This is now fixed with commit
>>> dceec9ecb9e24252ab9130f7a3626c00b2ff1a68.
I tried this:
--8<---------------cut here---------------start------------->8---
process foo
packages "guile" "guile-fibers"
# /bin/guile {
(use-modules (fibers))
}
workflow bar
processes foo
--8<---------------cut here---------------end--------------->8---
and got:
#v+
info: .07 Loading workflow file `test.w'...
info: .75 Computing workflow `bar'...
run: 1.35 Executing: /bin/sh -c
/gnu/store/4a49gb4b2ha7hms9jddkzf0d4hj5wqj5-gwl-foo.scm '((inputs) (outputs)
(values) (name . "foo"))'
;;; Stat of /home/old/softwares/gwl/ (use-modules (fibers)) failed:
;;; In procedure stat: No such file or directory: "/home/old/softwares/gwl/
(use-modules (fibers)) "
Backtrace:
0 (primitive-load "/home/old/softwares/gwl/ (use-modules ?")
ERROR: In procedure primitive-load:
In procedure open-file: No such file or directory:
"/home/old/softwares/gwl/ (use-modules (fibers)) "
#v-
seems like the interpreter is trying to stat the concatenation of
/bin/guile and the code.
Also tried this:
--8<---------------cut here---------------start------------->8---
process foo
packages "guile" "guile-fibers"
procedure
. `(begin
(use-modules (fibers)))
workflow bar
processes foo
--8<---------------cut here---------------end--------------->8---
and got:
#v+
info: .08 Loading workflow file `test.w'...
info: .75 Computing workflow `bar'...
run: 1.35 Executing: /bin/sh -c
/gnu/store/fp7fi4ksr16mlgwncdl38w9nw5a9kn15-gwl-foo.scm '((inputs) (outputs)
(values) (name . "foo"))'
Backtrace:
5 (primitive-load "/gnu/store/fp7fi4ksr16mlgwncdl38w9nw5a?")
In ice-9/eval.scm:
619:8 4 (_ #(#(#(#(#(#(#(#<directory (guil?> ?) ?) ?) ?) ?) ?) ?))
In ice-9/boot-9.scm:
3935:20 3 (process-use-modules _)
222:17 2 (map1 (((fibers))))
3936:31 1 (_ ((fibers)))
3330:6 0 (resolve-interface (fibers) #:select _ #:hide _ #:prefix ?)
ice-9/boot-9.scm:3330:6: In procedure resolve-interface:
no code for module (fibers)
error: 1.39 process `foo' failed with return value 1.
#v-
Looks like GUILE_LOAD_PATH is not set.
--
Olivier Dion
oldiob.dev
- Guile code snippet, Olivier Dion, 2022/04/19
- Re: Guile code snippet, Ricardo Wurmus, 2022/04/20
- Re: Guile code snippet, Olivier Dion, 2022/04/20
- Re: Guile code snippet, Ricardo Wurmus, 2022/04/20
- Re: Guile code snippet, Olivier Dion, 2022/04/21
- Re: Guile code snippet, Ricardo Wurmus, 2022/04/21
- Re: Guile code snippet,
Olivier Dion <=
- Re: Guile code snippet, Ricardo Wurmus, 2022/04/21
- Re: Guile code snippet, Olivier Dion, 2022/04/21