* Using Guix API in a foreign distribution
@ 2017-04-15 14:46 sirgazil
2017-04-15 23:04 ` Chris Marusich
0 siblings, 1 reply; 5+ messages in thread
From: sirgazil @ 2017-04-15 14:46 UTC (permalink / raw)
To: help-guix
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?
Thanks,
---
https://sirgazil.bitbucket.io/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Using Guix API in a foreign distribution
2017-04-15 14:46 Using Guix API in a foreign distribution sirgazil
@ 2017-04-15 23:04 ` Chris Marusich
2017-04-16 3:14 ` sirgazil
0 siblings, 1 reply; 5+ messages in thread
From: Chris Marusich @ 2017-04-15 23:04 UTC (permalink / raw)
To: sirgazil; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 2729 bytes --]
sirgazil <sirgazil@zoho.com> 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:
--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.12.0-6.73a4
marusich@odin:~$ env | grep GUILE
GUILE_LOAD_PATH=/home/marusich/.guix-profile/share/guile/site/2.0
GUILE_LOAD_COMPILED_PATH=/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 = -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)>
marusich@odin:~$
--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.
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Using Guix API in a foreign distribution
2017-04-15 23:04 ` Chris Marusich
@ 2017-04-16 3:14 ` sirgazil
2017-04-16 9:25 ` Ludovic Courtès
0 siblings, 1 reply; 5+ messages in thread
From: sirgazil @ 2017-04-16 3:14 UTC (permalink / raw)
To: Chris Marusich; +Cc: help-guix
Hi Chris, thanks for checking.
On 15/04/17 18:04, Chris Marusich wrote:
> sirgazil <sirgazil@zoho.com> 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:
>
> --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.12.0-6.73a4
> marusich@odin:~$ env | grep GUILE
> GUILE_LOAD_PATH=/home/marusich/.guix-profile/share/guile/site/2.0
> GUILE_LOAD_COMPILED_PATH=/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 = -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)>
> marusich@odin:~$
> --8<---------------cut here---------------end--------------->8---
>
> Can you share the output of similar commands on your system?
Here it is:
$ guix package --list-installed | grep guix
guix 0.12.0-7.aabe out
/gnu/store/24fa9898h2aa7k7fcbp67kwrwgrxlgi5-guix-0.12.0-7.aabe
$ env | grep GUILE
GUILE_LOAD_PATH=/home/sirgazil/.guix-profile/share/guile/site/2.2
GUILE_LOAD_COMPILED_PATH=/home/sirgazil/.guix-profile/lib/guile/2.2/site-ccache:/home/sirgazil/.guix-profile/share/guile/site/2.2
$ find -L $(env | grep GUILE | cut -d = -f 2 | tr : '\n' | sort | uniq)
-name packages.scm
$
So, guix modules are available in ".guix-profile/share/guile/site/2.0"
but not in ".guix-profile/share/guile/site/2.2".
> 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.
>
No. If I install guile 2.0.14, I can load guix modules just fine.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Using Guix API in a foreign distribution
2017-04-16 3:14 ` sirgazil
@ 2017-04-16 9:25 ` Ludovic Courtès
2017-04-16 14:27 ` sirgazil
0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2017-04-16 9:25 UTC (permalink / raw)
To: sirgazil; +Cc: help-guix
Hi sirgazil!
sirgazil <sirgazil@zoho.com> skribis:
> So, guix modules are available in ".guix-profile/share/guile/site/2.0"
> but not in ".guix-profile/share/guile/site/2.2".
This is because the ‘guix’ package in Guix currently builds against
Guile 2.0, not 2.2.
The reason for this is that one of its dependencies, Guile-SSH, is not
2.2-ready yet; I’ve submitted patches to fix that a few days ago so
hopefully that’ll be resolved very soon!
HTH,
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Using Guix API in a foreign distribution
2017-04-16 9:25 ` Ludovic Courtès
@ 2017-04-16 14:27 ` sirgazil
0 siblings, 0 replies; 5+ messages in thread
From: sirgazil @ 2017-04-16 14:27 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: help-guix
On 16/04/17 04:25, Ludovic Courtès wrote:
> Hi sirgazil!
>
> sirgazil <sirgazil@zoho.com> skribis:
>
>> So, guix modules are available in ".guix-profile/share/guile/site/2.0"
>> but not in ".guix-profile/share/guile/site/2.2".
> This is because the ‘guix’ package in Guix currently builds against
> Guile 2.0, not 2.2.
>
> The reason for this is that one of its dependencies, Guile-SSH, is not
> 2.2-ready yet; I’ve submitted patches to fix that a few days ago so
> hopefully that’ll be resolved very soon!
Good. No problem then :)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-04-16 14:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-15 14:46 Using Guix API in a foreign distribution sirgazil
2017-04-15 23:04 ` Chris Marusich
2017-04-16 3:14 ` sirgazil
2017-04-16 9:25 ` Ludovic Courtès
2017-04-16 14:27 ` sirgazil
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.