* guix import issue
@ 2015-06-13 1:30 Ben Woodcroft
2015-06-13 10:59 ` Ricardo Wurmus
0 siblings, 1 reply; 10+ messages in thread
From: Ben Woodcroft @ 2015-06-13 1:30 UTC (permalink / raw)
To: guix-devel
Hi,
I'm having a little trouble using guix import, after successfully
running guix pull. It seems to occur regardless of the specific package
I use, and a similar problem occurs when trying to import from cpan (and
perhaps others). I have not previously run guix import.
Any ideas?
$ guix import pypi GroopM
warning: failed to install locale: Invalid argument
Backtrace:
In ice-9/boot-9.scm:
2864: 19 [resolve-interface (guix scripts import ...) #:select ...]
2789: 18 [#<procedure 9e6f00 at ice-9/boot-9.scm:2777:4 (name #:optional
autoload version #:key ensure)> # ...]
3065: 17 [try-module-autoload (guix scripts import pypi) #f]
2401: 16 [save-module-excursion #<procedure 123aa20 at
ice-9/boot-9.scm:3066:17 ()>]
3085: 15 [#<procedure 123aa20 at ice-9/boot-9.scm:3066:17 ()>]
In unknown file:
?: 14 [primitive-load-path "guix/scripts/import/pypi" ...]
In guix/scripts/import/pypi.scm:
19: 13 [#<procedure 12a9940 ()>]
In ice-9/boot-9.scm:
2951: 12 [define-module* (guix scripts import ...) #:filename ...]
2926: 11 [resolve-imports (((guix ui)) ((guix utils)) ((guix import
pypi)) ...)]
2864: 10 [resolve-interface (guix import pypi) #:select ...]
2789: 9 [#<procedure 9e6f00 at ice-9/boot-9.scm:2777:4 (name #:optional
autoload version #:key ensure)> # ...]
3065: 8 [try-module-autoload (guix import pypi) #f]
2401: 7 [save-module-excursion #<procedure 123a8d0 at
ice-9/boot-9.scm:3066:17 ()>]
3085: 6 [#<procedure 123a8d0 at ice-9/boot-9.scm:3066:17 ()>]
In unknown file:
?: 5 [primitive-load-path "guix/import/pypi" ...]
In guix/import/pypi.scm:
19: 4 [#<procedure 12b0660 ()>]
In ice-9/boot-9.scm:
2951: 3 [define-module* (guix import pypi) #:filename ...]
2926: 2 [resolve-imports ((#) (#) (#) (#) ...)]
2867: 1 [resolve-interface (json) #:select ...]
In unknown file:
?: 0 [scm-error misc-error #f "~A ~S" ("no code for module" (json)) #f]
ERROR: In procedure scm-error:
ERROR: no code for module (json)
Thanks in advance,
ben.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: guix import issue
2015-06-13 1:30 guix import issue Ben Woodcroft
@ 2015-06-13 10:59 ` Ricardo Wurmus
2015-06-13 11:26 ` Ben Woodcroft
2015-06-13 11:52 ` Pjotr Prins
0 siblings, 2 replies; 10+ messages in thread
From: Ricardo Wurmus @ 2015-06-13 10:59 UTC (permalink / raw)
To: Ben Woodcroft; +Cc: guix-devel
Hi Ben,
> $ guix import pypi GroopM
[...]
> ERROR: In procedure scm-error:
> ERROR: no code for module (json)
This means that guile-json cannot be found. It is needed to parse the
JSON metadata for a given Python module.
You initially installed guix with the binary tarball method, did you
not? Did it work before "guix pull" or is this the very first time you
are trying it?
(I do not know why guile-json would not be present when guix was
installed via tarball, nor why it would be missing after "guix pull", so
I'm hoping for someone else to comment on this.)
~~ Ricardo
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: guix import issue
2015-06-13 10:59 ` Ricardo Wurmus
@ 2015-06-13 11:26 ` Ben Woodcroft
2015-06-13 13:14 ` Ludovic Courtès
2015-06-13 11:52 ` Pjotr Prins
1 sibling, 1 reply; 10+ messages in thread
From: Ben Woodcroft @ 2015-06-13 11:26 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: guix-devel
Hi, thanks for the reply.
On 13/06/15 20:59, Ricardo Wurmus wrote:
>> ERROR: In procedure scm-error:
>> ERROR: no code for module (json)
> This means that guile-json cannot be found. It is needed to parse the
> JSON metadata for a given Python module.
Hmm, installing didn't fix it though. The pythonpath thing was because I
just installed python2 and is unrelated I think. Unclear to me from the
output though, did it attempt to install it at that point?
ben@u:~/guix/ben/packages$ guix package -i guile-json
warning: failed to install locale: Invalid argument
The following package will be installed:
guile-json 0.4.0
/gnu/store/x1id8rf765mmjqiyr32chrma4ykx8qn5-guile-json-0.4.0
The following derivations will be built:
/gnu/store/3qpy8fk7r68yd65ck2a80557qymay0sk-profile.drv
/gnu/store/ahgxnsx70jpiz1xdhf5khs3kv155kpa3-ca-certificate-bundle.drv
/gnu/store/qahkhjwf7chmik70k70rzr0kzzx0i03m-info-dir.drv
5 packages in profile
The following environment variable definitions may be needed:
export PYTHONPATH="/home/ben/.guix-profile/lib/python2.7/site-packages"
ben@u:~/guix/ben/packages$ export
PYTHONPATH="/home/ben/.guix-profile/lib/python2.7/site-packages"
ben@u:~/guix/ben/packages$ guix package -i guile-json
warning: failed to install locale: Invalid argument
The following package will be upgraded:
guile-json 0.4.0 -> 0.4.0
/gnu/store/x1id8rf765mmjqiyr32chrma4ykx8qn5-guile-json-0.4.0
nothing to be done
ben@u:~/guix/ben/packages$ guix import pypi GroopM
warning: failed to install locale: Invalid argument
Backtrace:
In ice-9/boot-9.scm:
2864: 19 [resolve-interface (guix scripts import ...) #:select ...]
2789: 18 [#<procedure 19edba0 at ice-9/boot-9.scm:2777:4 (name
#:optional autoload version #:key ensure)> # ...]
3065: 17 [try-module-autoload (guix scripts import pypi) #f]
2401: 16 [save-module-excursion #<procedure 219c660 at
ice-9/boot-9.scm:3066:17 ()>]
3085: 15 [#<procedure 219c660 at ice-9/boot-9.scm:3066:17 ()>]
In unknown file:
?: 14 [primitive-load-path "guix/scripts/import/pypi" ...]
In guix/scripts/import/pypi.scm:
19: 13 [#<procedure 223d360 ()>]
In ice-9/boot-9.scm:
2951: 12 [define-module* (guix scripts import ...) #:filename ...]
2926: 11 [resolve-imports (((guix ui)) ((guix utils)) ((guix import
pypi)) ...)]
2864: 10 [resolve-interface (guix import pypi) #:select ...]
2789: 9 [#<procedure 19edba0 at ice-9/boot-9.scm:2777:4 (name #:optional
autoload version #:key ensure)> # ...]
3065: 8 [try-module-autoload (guix import pypi) #f]
2401: 7 [save-module-excursion #<procedure 219c510 at
ice-9/boot-9.scm:3066:17 ()>]
3085: 6 [#<procedure 219c510 at ice-9/boot-9.scm:3066:17 ()>]
In unknown file:
?: 5 [primitive-load-path "guix/import/pypi" ...]
In guix/import/pypi.scm:
19: 4 [#<procedure 223f020 ()>]
In ice-9/boot-9.scm:
2951: 3 [define-module* (guix import pypi) #:filename ...]
2926: 2 [resolve-imports ((#) (#) (#) (#) ...)]
2867: 1 [resolve-interface (json) #:select ...]
In unknown file:
?: 0 [scm-error misc-error #f "~A ~S" ("no code for module" (json)) #f]
ERROR: In procedure scm-error:
ERROR: no code for module (json)
Also, I have this problem on 2 boxes. The other box I did not have
guile-json installed (I think):
ben@ben:~/git/guix_ben/ben/packages$ guix package -I guile-json
warning: failed to install locale: Invalid argument
ben@ben:~/git/guix_ben/ben/packages$
> You initially installed guix with the binary tarball method, did you
> not? Did it work before "guix pull" or is this the very first time you
> are trying it?
Correct. My install procedure was I think quite by the book, as you know
at http://lists.open-bio.org/pipermail/bio-packaging/2015-June/000012.html
import never worked but then I cannot remember if I tried it or not.
I am running the daemon like so
root@u:~# /root/.guix-profile/bin/guix-daemon
--build-users-group=guix-builder --no-substitutes
> (I do not know why guile-json would not be present when guix was
> installed via tarball, nor why it would be missing after "guix pull", so
> I'm hoping for someone else to comment on this.)
ok.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: guix import issue
2015-06-13 11:26 ` Ben Woodcroft
@ 2015-06-13 13:14 ` Ludovic Courtès
2015-06-13 13:22 ` Ben Woodcroft
0 siblings, 1 reply; 10+ messages in thread
From: Ludovic Courtès @ 2015-06-13 13:14 UTC (permalink / raw)
To: Ben Woodcroft; +Cc: guix-devel
Ben Woodcroft <b.woodcroft@uq.edu.au> skribis:
> ben@u:~/guix/ben/packages$ guix package -i guile-json
> warning: failed to install locale: Invalid argument
> The following package will be installed:
> guile-json 0.4.0
> /gnu/store/x1id8rf765mmjqiyr32chrma4ykx8qn5-guile-json-0.4.0
>
> The following derivations will be built:
> /gnu/store/3qpy8fk7r68yd65ck2a80557qymay0sk-profile.drv
> /gnu/store/ahgxnsx70jpiz1xdhf5khs3kv155kpa3-ca-certificate-bundle.drv
> /gnu/store/qahkhjwf7chmik70k70rzr0kzzx0i03m-info-dir.drv
> 5 packages in profile
> The following environment variable definitions may be needed:
> export PYTHONPATH="/home/ben/.guix-profile/lib/python2.7/site-packages"
Actually ‘guix package’ has failed to tell you about the GUILE_LOAD_PATH
and GUILE_LOAD_COMPILED_PATH variables (that’s because Guile is not
explicitly installed, only used indirectly by Guix.)
I guess the following definitions will allow Guile-JSON to be found,
thereby allowing ‘guix import pypi’ to work:
export GUILE_LOAD_PATH=$HOME/.guix-profile/share/guile/site/2.0
export GUILE_LOAD_COMPILED_PATH=$HOME/.guix-profile/share/guile/site/2.0
Can you confirm?
I think we should improve this by changing the ‘guix’ package to have
the ‘guix’ command wrapped such that GUILE_LOAD_PATH is always correctly
set. I’ll work on that.
Thank you,
Ludo’.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: guix import issue
2015-06-13 13:14 ` Ludovic Courtès
@ 2015-06-13 13:22 ` Ben Woodcroft
2015-06-13 14:46 ` Alex Kost
0 siblings, 1 reply; 10+ messages in thread
From: Ben Woodcroft @ 2015-06-13 13:22 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guix-devel
On 13/06/15 23:14, Ludovic Courtès wrote:
> I guess the following definitions will allow Guile-JSON to be found,
> thereby allowing ‘guix import pypi’ to work:
>
> export GUILE_LOAD_PATH=$HOME/.guix-profile/share/guile/site/2.0
> export GUILE_LOAD_COMPILED_PATH=$HOME/.guix-profile/share/guile/site/2.0
>
> Can you confirm?
That changes the error. I have the suspicion that I have somehow mangled
guix on my system and this new error is unrelated (ctrl-C during guix
pull, perhaps?). So I'm guessing this is a confirmation?
ben@u:~/guix/ben/packages$ guix import pypi readlike
warning: failed to install locale: Invalid argument
starting download of `/tmp/guix-file.LIglRF' from
`https://pypi.python.org/pypi/readlike/json'...
;;; Failed to autoload make-session in (gnutls):
;;; ERROR: missing interface for module (gnutls)
ERROR: In procedure module-lookup: Unbound variable: make-session
failed to download "/tmp/guix-file.LIglRF" from
"https://pypi.python.org/pypi/readlike/json"
guix import: error: failed to download meta-data for package 'readlike'
Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: guix import issue
2015-06-13 13:22 ` Ben Woodcroft
@ 2015-06-13 14:46 ` Alex Kost
2015-06-14 7:20 ` Ben Woodcroft
0 siblings, 1 reply; 10+ messages in thread
From: Alex Kost @ 2015-06-13 14:46 UTC (permalink / raw)
To: Ben Woodcroft; +Cc: guix-devel
Ben Woodcroft (2015-06-13 16:22 +0300) wrote:
> On 13/06/15 23:14, Ludovic Courtès wrote:
>> I guess the following definitions will allow Guile-JSON to be found,
>> thereby allowing ‘guix import pypi’ to work:
>>
>> export GUILE_LOAD_PATH=$HOME/.guix-profile/share/guile/site/2.0
>> export GUILE_LOAD_COMPILED_PATH=$HOME/.guix-profile/share/guile/site/2.0
>>
>> Can you confirm?
> That changes the error. I have the suspicion that I have somehow mangled
> guix on my system and this new error is unrelated (ctrl-C during guix
> pull, perhaps?). So I'm guessing this is a confirmation?
One of the benefits of Guix is that you can press Ctrl-C any time
without consequences (I do it regularly).
> ben@u:~/guix/ben/packages$ guix import pypi readlike
> warning: failed to install locale: Invalid argument
> starting download of `/tmp/guix-file.LIglRF' from
> `https://pypi.python.org/pypi/readlike/json'...
> ;;; Failed to autoload make-session in (gnutls):
> ;;; ERROR: missing interface for module (gnutls)
This tells that your gnutls misses guile bindings (it may be that your
distro compiles gnutls with "--disable-guile" option). I think it
should be fixed if you install gnutls with guix: "guix package -i
gnutls".
--
Alex
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: guix import issue
2015-06-13 14:46 ` Alex Kost
@ 2015-06-14 7:20 ` Ben Woodcroft
2015-06-14 8:22 ` Pjotr Prins
0 siblings, 1 reply; 10+ messages in thread
From: Ben Woodcroft @ 2015-06-14 7:20 UTC (permalink / raw)
To: Alex Kost; +Cc: guix-devel@gnu.org
On 14/06/15 00:46, Alex Kost wrote:
> Ben Woodcroft (2015-06-13 16:22 +0300) wrote:
>
>> On 13/06/15 23:14, Ludovic Courtès wrote:
>>> I guess the following definitions will allow Guile-JSON to be found,
>>> thereby allowing ‘guix import pypi’ to work:
>>>
>>> export GUILE_LOAD_PATH=$HOME/.guix-profile/share/guile/site/2.0
>>> export GUILE_LOAD_COMPILED_PATH=$HOME/.guix-profile/share/guile/site/2.0
>>>
>>> Can you confirm?
>> That changes the error. I have the suspicion that I have somehow mangled
>> guix on my system and this new error is unrelated (ctrl-C during guix
>> pull, perhaps?). So I'm guessing this is a confirmation?
> One of the benefits of Guix is that you can press Ctrl-C any time
> without consequences (I do it regularly).
Thanks for the update. I knew this was true of installing packages, just
wasn't sure about other operations.
>
>> ben@u:~/guix/ben/packages$ guix import pypi readlike
>> warning: failed to install locale: Invalid argument
>> starting download of `/tmp/guix-file.LIglRF' from
>> `https://pypi.python.org/pypi/readlike/json'...
>> ;;; Failed to autoload make-session in (gnutls):
>> ;;; ERROR: missing interface for module (gnutls)
> This tells that your gnutls misses guile bindings (it may be that your
> distro compiles gnutls with "--disable-guile" option). I think it
> should be fixed if you install gnutls with guix: "guix package -i
> gnutls".
This does indeed fix the error, and now I'm all set. Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: guix import issue
2015-06-14 7:20 ` Ben Woodcroft
@ 2015-06-14 8:22 ` Pjotr Prins
0 siblings, 0 replies; 10+ messages in thread
From: Pjotr Prins @ 2015-06-14 8:22 UTC (permalink / raw)
To: Ben Woodcroft; +Cc: guix-devel@gnu.org, Alex Kost
On Sun, Jun 14, 2015 at 05:20:23PM +1000, Ben Woodcroft wrote:
> >One of the benefits of Guix is that you can press Ctrl-C any time
> >without consequences (I do it regularly).
> Thanks for the update. I knew this was true of installing packages,
> just wasn't sure about other operations.
It is not true for compiling Guix the first time from source.
Once you are running guix itself to install/compile packages is a
transaction. Sometimes annoyingly so because it keeps downloading and
building the same tarballs until completion.
> >This tells that your gnutls misses guile bindings (it may be that your
> >distro compiles gnutls with "--disable-guile" option). I think it
> >should be fixed if you install gnutls with guix: "guix package -i
> >gnutls".
> This does indeed fix the error, and now I'm all set. Thanks.
Guile is everywhere, even GNU make:
https://www.gnu.org/software/make/manual/html_node/Guile-Integration.html
Blessed is the man in whose spirit there is no guile ;).
Pj.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: guix import issue
2015-06-13 10:59 ` Ricardo Wurmus
2015-06-13 11:26 ` Ben Woodcroft
@ 2015-06-13 11:52 ` Pjotr Prins
2015-06-13 11:56 ` Ben Woodcroft
1 sibling, 1 reply; 10+ messages in thread
From: Pjotr Prins @ 2015-06-13 11:52 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: guix-devel
I get the same error on my recent build:
./pre-inst-env guix import gnu grep
does something, but
./pre-inst-env guix import pypi readlike
Backtrace:
In ice-9/psyntax.scm:
989: 19 [scan ((define-module (guix scripts import ...) #:use-module ...)) () ...]
279: 18 [scan ((#(syntax-object let # ...) (#) (# #) ...)) () ...]
In ice-9/eval.scm:
411: 17 [eval # ()]
In ice-9/boot-9.scm:
2951: 16 [define-module* (guix scripts import ...) #:filename ...]
2926: 15 [resolve-imports (((guix ui)) ((guix utils)) ((guix import pypi)) ...)]
2864: 14 [resolve-interface (guix import pypi) #:select ...]
2789: 13 [#<procedure 2379740 at ice-9/boot-9.scm:2777:4 (name #:optional autoload version #:key ensure)> # ...]
3065: 12 [try-module-autoload (guix import pypi) #f]
2401: 11 [save-module-excursion #<procedure 3a405a0 at ice-9/boot-9.scm:3066:17 ()>]
3085: 10 [#<procedure 3a405a0 at ice-9/boot-9.scm:3066:17 ()>]
In unknown file:
?: 9 [primitive-load-path "guix/import/pypi" ...]
In ice-9/eval.scm:
505: 8 [#<procedure 22c4600 at ice-9/eval.scm:499:4 (exp)> (define-module # # ...)]
In ice-9/psyntax.scm:
1106: 7 [expand-top-sequence ((define-module # # # ...)) () ((top)) ...]
989: 6 [scan ((define-module (guix import pypi) #:use-module ...)) () ...]
279: 5 [scan ((#(syntax-object let # ...) (#) (# #) ...)) () ...]
In ice-9/eval.scm:
411: 4 [eval # ()]
In ice-9/boot-9.scm:
2951: 3 [define-module* (guix import pypi) #:filename ...]
2926: 2 [resolve-imports ((#) (#) (#) (#) ...)]
2867: 1 [resolve-interface (json) #:select ...]
In unknown file:
?: 0 [scm-error misc-error #f "~A ~S" ("no code for module" (json)) #f]
ERROR: In procedure scm-error:
ERROR: no code for module (json)
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-06-14 8:23 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-13 1:30 guix import issue Ben Woodcroft
2015-06-13 10:59 ` Ricardo Wurmus
2015-06-13 11:26 ` Ben Woodcroft
2015-06-13 13:14 ` Ludovic Courtès
2015-06-13 13:22 ` Ben Woodcroft
2015-06-13 14:46 ` Alex Kost
2015-06-14 7:20 ` Ben Woodcroft
2015-06-14 8:22 ` Pjotr Prins
2015-06-13 11:52 ` Pjotr Prins
2015-06-13 11:56 ` Ben Woodcroft
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).