From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: Using Guix API in a foreign distribution Date: Sat, 15 Apr 2017 16:04:52 -0700 Message-ID: <87fuh9e0h7.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1czWkW-000624-KX for help-guix@gnu.org; Sat, 15 Apr 2017 19:05:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1czWkV-0008MA-BU for help-guix@gnu.org; Sat, 15 Apr 2017 19:05:00 -0400 Received: from mail-pg0-x235.google.com ([2607:f8b0:400e:c05::235]:35362) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1czWkV-0008Lk-60 for help-guix@gnu.org; Sat, 15 Apr 2017 19:04:59 -0400 Received: by mail-pg0-x235.google.com with SMTP id 72so48367179pge.2 for ; Sat, 15 Apr 2017 16:04:59 -0700 (PDT) In-Reply-To: (sirgazil@zoho.com's message of "Sat, 15 Apr 2017 09:46:31 -0500") 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: sirgazil Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable sirgazil writes: > Hi, > > I'm using Guix 20170415.01 (binary installation) on Debian 8, and I was > hoping to use the Guix API by installing the guix package as a normal > user, but it seems Guile can't find guix modules: > > ---------------------------------------------------------------------- > > $ guile > GNU Guile 2.2.0 > 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)> (use-modules (guix packages)) > While compiling expression: > ERROR: no code for module (guix packages) > > ---------------------------------------------------------------------- > > I'm using Guile from Guix, and I have all the environment variables set > as suggested by "guix package --search-paths". Also, I can install Guile > libraries from Guix and Guile finds them without problems. > > So, is anyone able to use the Guix API in this way, or do you have to > clone the Guix repository for that? It works for me on a foreign distro. This is what I see: =2D-8<---------------cut here---------------start------------->8--- marusich@odin:~$ guix package --list-installed | grep guix guix 0.12.0-6.73a4 out /gnu/store/3xwb1alcv5xd2zgcxp1d1bqqgv0afxj2-guix-0.1= 2.0-6.73a4 marusich@odin:~$ env | grep GUILE GUILE_LOAD_PATH=3D/home/marusich/.guix-profile/share/guile/site/2.0 GUILE_LOAD_COMPILED_PATH=3D/home/marusich/.guix-profile/lib/guile/2.0/site-= ccache:/home/marusich/.guix-profile/share/guile/site/2.0 marusich@odin:~$ find -L $(env | grep GUILE | cut -d =3D -f 2 | tr : '\n' |= sort | uniq) -name packages.scm /home/marusich/.guix-profile/share/guile/site/2.0/guix/packages.scm /home/marusich/.guix-profile/share/guile/site/2.0/gnu/packages.scm marusich@odin:~$ guile GNU Guile 2.0.13 Copyright (C) 1995-2016 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)> (use-modules (guix packages)) scheme@(guile-user)>=20 marusich@odin:~$=20 =2D-8<---------------cut here---------------end--------------->8--- Can you share the output of similar commands on your system? By the way, I see you're using Guile 2.2. Does this same problem occur when using Guile 2.0? I think Guix is still compiled using Guile 2.0, so I get warnings when trying to import (guix packages) using Guile 2.2. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAljypxQACgkQ3UCaFdgi Rp3LJw//WEfsOedH0hzVaC78sSTu3gQv9AKegmjyvU51LecIXj/j1bpty80enjtx orYrDhvsMSyTVxYhS1M2+lXTsPKkFICuOehFB/eXc7lUsKTL4CLu8ietokca9knm GHyeYx1WvdW4WuSqpasJ55L421hWWsy4MsMOSe/zf6cULYEtrE1IxnJyiimrHn7f IWBUJYuWl8cye8OQrUxcLD63AaiBdpo7hIrV5ypcC8DMPDUHZ3SwG/C2aKbvVy1M XWZ/jHpIaAVN7lG/LXntl9x3ue4ulzpNXXquWZ9nLpl2cyfo0PvXWcPnpcijlSF+ 8CgQfDuMuVni75MiMc87iujucssO+Kh6GV479FX0OOwW8LwxmgMPw4w4SbZlqthN mCWIqkD1gDHl6eDpXrfc7caVTY4BUwKm8HpEGxv8OEJZblmJFC0Uyia//wrK/h0I /qYl544ospUVTDPgiy/1dNIF3LgY+2PXzZ2jFFsjCVr+AT2cW3sX4id8dVLrwb0x 82aAtgLeSEtQX2cXLim0D2Kh3w9H8j5Xalu9rdZkkzNVZCeyqE1k46XFFme9k9RW FUP6gIiEdABY/LAQI8WMWboqnAu0c078U/O3wgUJ/BWQ0nSVFF3fUUpaz7DoxxgO JD2o5Ds6z41uihxF7zlTz7Q2ukii2vgccnAdxU94k05k+WuC+us= =+xVP -----END PGP SIGNATURE----- --=-=-=--