[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using the Guile json module in a gexp

From: Christopher Baines
Subject: Using the Guile json module in a gexp
Date: Mon, 11 Sep 2017 07:58:41 +0100


So I'm having some trouble using the Guile json module in a gexp.
I've added (with-imported-modules '((json)) ...), and the
module-import-compiled builder crashes.

           4 (primitive-load "/gnu/store/35zv0m9wwd2nz3agyywv09d3k5v?")
In srfi/srfi-1.scm:
    640:9  3 (for-each #<procedure c10700 at ice-9/eval.scm:333:13 ?> ?)
In ice-9/eval.scm:
   245:16  2 (_ #(#(#<directory (guix build utils) 83f6e0> "/gn?") #))
In ice-9/boot-9.scm:
  1519:24  1 (_ "./json.scm")
In unknown file:
           0 (stat "./json.scm" #<undefined>)

ERROR: In procedure stat:
ERROR: In procedure stat: No such file or directory: "./json.scm"

The builder doesn't call stat directly, the stack trace gives line
numbers within other code, and its infeasible to add debugging mesasges
to the builder, as that requires rebuilding the world (at least with
the way I am running it).

I'll try and see if I can evaluate the same code outside of the
derivation to track down where it's calling stat, but let me know if
you can see what is going wrong.



Attachment: pgpov8ChXM8Mu.pgp
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]