From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: json module Date: Tue, 26 Jul 2016 23:35:22 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113fb6b099b5d2053890add0 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSA0b-0003wP-0f for help-guix@gnu.org; Tue, 26 Jul 2016 17:35:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSA0Z-0005jt-La for help-guix@gnu.org; Tue, 26 Jul 2016 17:35:24 -0400 Received: from mail-io0-x22d.google.com ([2607:f8b0:4001:c06::22d]:36735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSA0Z-0005jM-EP for help-guix@gnu.org; Tue, 26 Jul 2016 17:35:23 -0400 Received: by mail-io0-x22d.google.com with SMTP id b62so44505256iod.3 for ; Tue, 26 Jul 2016 14:35:23 -0700 (PDT) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix --001a113fb6b099b5d2053890add0 Content-Type: text/plain; charset=UTF-8 I'm trying this Guix project https://github.com/wordempire/guix/ because I wanted to try Jelle's recursive npm importer but when I ./pre-inst-env guix import npm ciccio I get a backtrace and an error: ERROR: In procedure scm-error: ERROR: no code for module (json) (I can provide the whole backtrace if requested) This doesn't happen with the Guix I cloned from the official repo In the chat I was advised that (json) is an external module, to inspect the GUIX_LOAD_PATH and GUIX_LOAD_COMPILED_PATH variables So here we go: Jelle's Guix: [catonano@xps guix] $ ./pre-inst-env env | grep "GUILE_LOAD_PATH" GUILE_LOAD_PATH=/home/catonano/jelle/guix:/home/catonano/jelle/guix [catonano@xps guix] $ ./pre-inst-env env | grep "GUILE_LOAD_COMPILED_PATH" GUILE_LOAD_COMPILED_PATH=/home/catonano/jelle/guix:/home/catonano/.guix-profile/lib/guile/2.2/ccache [catonano@xps guix] $ ./pre-inst-env guile GNU Guile 2.0.11 Copyright (C) 1995-2014 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)> %load-path $1 = ("/home/catonano/jelle/guix" "/home/catonano/jelle/guix" "/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/share/guile/site" "/usr/share/guile") scheme@(guile-user)> AND the Guix coming from the official repo [catonano@xps guix] $ ./pre-inst-env env | grep "GUILE_LOAD_PATH" GUILE_LOAD_PATH=/home/catonano/guix:/home/catonano/guix [catonano@xps guix] $ ./pre-inst-env env | grep "GUILE_LOAD_COMPILED_PATH" GUILE_LOAD_COMPILED_PATH=/home/catonano/guix:/home/catonano/.guix-profile/lib/guile/2.2/ccache [catonano@xps guix] $ ./pre-inst-env guile GNU Guile 2.0.11 Copyright (C) 1995-2014 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)> %load-path $1 = ("/home/catonano/guix" "/home/catonano/guix" "/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/share/guile/site" "/usr/share/guile") scheme@(guile-user)> why the offical Guix is ok with the json module and Jelle's Guix is not ? --001a113fb6b099b5d2053890add0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I'm = trying this Guix project
https://github.com/wordempire/guix/

because I wanted to try Jelle's recursive npm importer

= but when I
./pre-inst-env guix import npm ciccio

I get a b= acktrace and an error:
ERROR: In procedure scm-error:
ERROR: no code = for module (json)

(I can provide the whole backtrace if reques= ted)

This doesn't happen with the Guix I cloned from = the official repo

In the chat I was advised that (j= son) is an external module, to inspect the GUIX_LOAD_PATH and GUIX_LOAD_COM= PILED_PATH variables

So here we go: Jelle's Guix:

[= catonano@xps guix] $ ./pre-inst-env env | grep "GUILE_LOAD_PATH"<= br>GUILE_LOAD_PATH=3D/home/catonano/jelle/guix:/home/catonano/jelle/guix
[catonano@xps guix] $ ./pre-inst-env env | grep "GUILE_LOAD_COMPI= LED_PATH"
GUILE_LOAD_COMPILED_PATH=3D/home/catonano/jelle/guix:/hom= e/catonano/.guix-profile/lib/guile/2.2/ccache

[catonano@xps gu= ix] $ ./pre-inst-env guile
GNU Guile 2.0.11
Copyright (C) 1995-2014 F= ree Software Foundation, Inc.

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

Enter `,help' for help.
scheme@(guile-user= )> %load-path
$1 =3D ("/home/catonano/jelle/guix" "/home/catonano/jelle/guix= "=20 "/usr/share/guile/2.0" "/usr/share/guile/site/2.0"=20 "/usr/share/guile/site" "/usr/share/guile")
scheme@(= guile-user)>



AND the Guix coming from the official= repo



[catonano@xps guix] $ ./pre-inst-env env | grep "= ;GUILE_LOAD_PATH"
GUILE_LOAD_PATH=3D/home/catonano/guix:/home/caton= ano/guix

[catonano@xps guix] $ ./pre-inst-env env | grep "GUILE= _LOAD_COMPILED_PATH"
GUILE_LOAD_COMPILED_PATH=3D/home/catonano/guix= :/home/catonano/.guix-profile/lib/guile/2.2/ccache

[catonano@xps gui= x] $ ./pre-inst-env guile
GNU Guile 2.0.11
Copyright (C) 1995-2014 Fr= ee 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&= #39; for details.

Enter `,help' for help.
scheme@(guile-user)= > %load-path
$1 =3D ("/home/catonano/guix" "/home/catonano/guix" "= ;/usr/share/guile/2.0"=20 "/usr/share/guile/site/2.0" "/usr/share/guile/site" &qu= ot;/usr/share/guile")
scheme@(guile-user)>




<= /div>why the offical Guix is ok with the json module and Jelle's Guix i= s not ?
--001a113fb6b099b5d2053890add0--