all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ben Woodcroft <b.woodcroft@uq.edu.au>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel@gnu.org
Subject: Re: guix import issue
Date: Sat, 13 Jun 2015 21:26:08 +1000	[thread overview]
Message-ID: <557C1350.1050108@uq.edu.au> (raw)
In-Reply-To: <878ubnkh6z.fsf@elephly.net>

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.

  reply	other threads:[~2015-06-13 11:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-13  1:30 guix import issue Ben Woodcroft
2015-06-13 10:59 ` Ricardo Wurmus
2015-06-13 11:26   ` Ben Woodcroft [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=557C1350.1050108@uq.edu.au \
    --to=b.woodcroft@uq.edu.au \
    --cc=guix-devel@gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.