"guix import pypi" fails now with "guix pulled" guix.

  • Done
  • quality assurance status badge
Details
3 participants
  • Danny Milosavljevic
  • Ludovic Courtès
  • Marius Bakke
Owner
unassigned
Submitted by
Danny Milosavljevic
Severity
normal

Debbugs page

Danny Milosavljevic wrote 7 years ago
(address . bug-guix@gnu.org)
20180221002726.0e855d65@scratchpost.org
"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?>

But "guix import pypi" works with git checkout I manually compiled:

$ ./pre-inst-env guix import pypi pytest-warnings
guile: warning: failed to install locale
warning: failed to install locale: Invalid argument

Starting download of /tmp/guix-file.UpO8Fe
...s-0.3.0.tar.gz 5KiB 466KiB/s 00:00 [##################] 100.0%
tar: pytest-warnings-0.3.0/requirements.txt: Nicht im Archiv gefunden.
tar: Beende mit Fehlerstatus aufgrund vorheriger Fehler
guix import: warning: 'tar xf' failed with exit code 512
(package
(name "python-pytest-warnings")
(version "0.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pytest-warnings" version))
(sha256
(base32
"18yxh153icmndaw8fkl1va0bk0mwzrbpaa6wxd29w3iwxym5zn2a"))))
(build-system python-build-system)
(home-page
(synopsis
"pytest plugin to list Python warnings in pytest report")
(description
"pytest plugin to list Python warnings in pytest report")
(license license:expat))
Marius Bakke wrote 7 years ago
87fu5vb0m1.fsf@fastmail.com
Danny Milosavljevic <dannym@scratchpost.org> writes:

Toggle quote (39 lines)
> "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?
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlqMySYACgkQoqBt8qM6
VPrzDAgAvaAxX1TINMKoPmW5ehs/duyjjmgXc4HN/zd3AbbUCRD8kp8wTZaxFGmX
GQcaWPswD05yaseQ6vB30kEWbUg1UEqtDLcaVnxEIlCncSw9EetnElCzSYH+oyUB
IjxbJv//+KfldKZiZzvXCsW40PiSMKaYr5iFVVRYZ1a9AjtTuOEvDM2KXHXyRiw3
3efcqd77kTvpA/oC1Ci9M91SeQAQLENtUQexv5m06bN0cvTURk3y99YgM/Y32H+l
qSPidj1ofo6TGZA1/ANSRqNHE+lKcXry/S2m2pdbTb5XAsQdXLXOzRxVXnk0qzsW
4EmZdhonII+0sgYtB+NcfSJPpry78w==
=NP2/
-----END PGP SIGNATURE-----

Danny Milosavljevic wrote 7 years ago
(name . Marius Bakke)(address . mbakke@fastmail.com)(address . 30562@debbugs.gnu.org)
20180221120344.2eb0363b@scratchpost.org
Hi Marius,

On Wed, 21 Feb 2018 02:19:34 +0100
Marius Bakke <mbakke@fastmail.com> wrote:

Toggle quote (4 lines)
> > ERROR: ERROR: Wrong type to apply: #<syntax-transformer uri?>
>
> Is this on a foreign distro? I can't reproduce this on GuixSD.

No, it's on GuixSD - the update of the actual derivation from master is still
running, although guix pull is done.

$ echo $GUILE_LOAD_PATH
/home/dannym/.guix-profile/share/guile/site/2.2:/run/current-system/profile/share/guile/site/2.2
$ echo $GUILE_LOAD_COMPILED_PATH
/home/dannym/.guix-profile/lib/guile/2.2/site-ccache:/home/dannym/.guix-profile/share/guile/site/2.2:/run/current-system/profile/lib/guile/2.2/site-ccache:/run/current-system/profile/share/guile/site/2.2
Ludovic Courtès wrote 7 years ago
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 30562@debbugs.gnu.org)
87bmgbwzqc.fsf@gnu.org
Hi Danny,

Danny Milosavljevic <dannym@scratchpost.org> skribis:

Toggle quote (10 lines)
> 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?>

The problem here has to do with an ABI change between Guile 2.2.2 and
2.2.3: in one case ‘uri?’ is a syntax, whereas in the other case it’s a
macro.

Normally ‘guix pull’ arranges to compile with a matching Guile version
for that reason: see commit 66f217b43aca603326dab17d4dda1a398bf4fb8c and

I’m not sure why this fix doesn’t work for you. Is your ‘guix’ command
using 2.2.2 or 2.2.3? Could it be that you ran ‘guix pull’ with 2.2.3
and then ran subsequent commands with 2.2.2?

Thanks,
Ludo’.
Ludovic Courtès wrote 7 years ago
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 30562-done@debbugs.gnu.org)
87sh99zg7h.fsf@gnu.org
ludo@gnu.org (Ludovic Courtès) skribis:

Toggle quote (24 lines)
> Danny Milosavljevic <dannym@scratchpost.org> skribis:
>
>> 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?>
>
> The problem here has to do with an ABI change between Guile 2.2.2 and
> 2.2.3: in one case ‘uri?’ is a syntax, whereas in the other case it’s a
> macro.
>
> Normally ‘guix pull’ arranges to compile with a matching Guile version
> for that reason: see commit 66f217b43aca603326dab17d4dda1a398bf4fb8c and
> <https://bugs.gnu.org/29570>.
>
> I’m not sure why this fix doesn’t work for you. Is your ‘guix’ command
> using 2.2.2 or 2.2.3? Could it be that you ran ‘guix pull’ with 2.2.3
> and then ran subsequent commands with 2.2.2?

That must be fixed by 3aab8851442713f6ad748ffebb055c5e9eae1bd4, which is
a followup to 66f217b43aca603326dab17d4dda1a398bf4fb8c.

Ludo’.
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 30562@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 30562
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help