Subject: Re: bug#30562: "guix import pypi" fails now with "guix pulled" guix.

From: Marius Bakke <[email-masked]>
Date: Wed, 21 Feb 2018 02:19:34 +0100

Danny Milosavljevic <[email-masked]> writes:

> "guix import pypi" fails now with "guix pulled" guix.
>
> The "guix pulled" guix is:
>
> latest -> /gnu/store/97s03kq3ppc626bw6hpnyhias2pmp5wp-guix-latest
>
> .
>
> $ guix import pypi pytest-warnings
> Backtrace:
>           14 (apply-smob/1 #<catch-closure 171c8c0>)
> In ice-9/boot-9.scm:
>     713:2 13 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
> In ice-9/eval.scm:
>     619:8 12 (_ #(#(#<directory (guile-user) 179f140>)))
> In guix/ui.scm:
>   1489:12 11 (run-guix-command _ . _)
> In guix/scripts/import.scm:
>    114:11 10 (guix-import . _)
> In guix/scripts/import/pypi.scm:
>     84:19  9 (guix-import-pypi . _)
> In guix/import/pypi.scm:
>    274:17  8 (pypi->guix-package _)
> In ice-9/boot-9.scm:
>     837:9  7 (catch srfi-34 #<procedure 1c6b7e0 at guix/import/json…> …)
> In guix/import/json.scm:
>     32:17  6 (_)
> In guix/http-client.scm:
>    240:25  5 (http-fetch _ #:port _ #:text? _ #:buffered? _ # _ # _ # …)
> In guix/build/download.scm:
>     406:4  4 (open-connection-for-uri _ #:timeout _ # _)
>    407:14  3 (thunk)
>    342:14  2 (open-socket-for-uri #<<uri> scheme: https userinfo: #…> …)
>     321:4  1 (ensure-uri #<<uri> scheme: https userinfo: #f host: "p…>)
> In unknown file:
>            0 (_ #<<uri> scheme: https userinfo: #f host: "pypi.pytho…>)
>
> ERROR: ERROR: Wrong type to apply: #<syntax-transformer uri?>

Is this on a foreign distro?  I can't reproduce this on GuixSD.

Do you have GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH set?