Ben Woodcroft <b.woodcr...@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’.

Reply via email to