guix-devel
[Top][All Lists]
Advanced

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

Re: guix import issue


From: Ben Woodcroft
Subject: Re: guix import issue
Date: Sat, 13 Jun 2015 21:26:08 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

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?

address@hidden:~/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"
address@hidden:~/guix/ben/packages$ export PYTHONPATH="/home/ben/.guix-profile/lib/python2.7/site-packages"
address@hidden:~/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
address@hidden:~/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):

address@hidden:~/git/guix_ben/ben/packages$ guix package -I guile-json
warning: failed to install locale: Invalid argument
address@hidden:~/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
address@hidden:~# /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.



reply via email to

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