GNU bug report logs -
#54258
recursive pypi importer prints backtrace when package does not exist
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 54258 in the body.
You can then email your comments to 54258 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#54258
; Package
guix
.
(Sat, 05 Mar 2022 10:49:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ricardo Wurmus <rekado <at> elephly.net>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Sat, 05 Mar 2022 10:49:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The recursive pypi importer prints a backtrace when a package does not exist:
--8<---------------cut here---------------start------------->8---
./pre-inst-env guix import pypi -r doesnotexist
following redirection to `https://pypi.org/pypi/doesnotexist/json/'...
Backtrace:
In ice-9/boot-9.scm:
1752:10 11 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In unknown file:
10 (apply-smob/0 #<thunk 7fe2ed3202e0>)
In ice-9/boot-9.scm:
724:2 9 (call-with-prompt _ _ #<procedure default-prompt-handler (k proc)>)
In ice-9/eval.scm:
619:8 8 (_ #(#(#<directory (guile-user) 7fe2ed325c80>)))
In guix/ui.scm:
2229:7 7 (run-guix . _)
2192:10 6 (run-guix-command _ . _)
In guix/scripts/import.scm:
124:11 5 (guix-import . _)
In ice-9/boot-9.scm:
1752:10 4 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In guix/scripts/import/pypi.scm:
97:21 3 (_)
In guix/import/utils.scm:
507:27 2 (recursive-import "doesnotexist" #:repo->guix-package _ #:guix-name _ #:version _ #:repo _)
497:33 1 (lookup-node "doesnotexist" #f)
In ice-9/boot-9.scm:
1685:16 0 (raise-exception _ #:continuable? _)
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
Wrong number of values returned to continuation (expected 2)
--8<---------------cut here---------------end--------------->8---
The non-recursive importer does a better job here:
--8<---------------cut here---------------start------------->8---
./pre-inst-env guix import pypi doesnotexist
following redirection to `https://pypi.org/pypi/doesnotexist/json/'...
guix import: error: failed to download meta-data for package 'doesnotexist'
--8<---------------cut here---------------end--------------->8---
--
Ricardo
Information forwarded
to
bug-guix <at> gnu.org
:
bug#54258
; Package
guix
.
(Sat, 05 Mar 2022 11:02:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 54258 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Ricardo Wurmus schreef op za 05-03-2022 om 11:46 [+0100]:
> The recursive pypi importer prints a backtrace when a package does not exist:
> [...]
This seems to be a duplicate of <https://issues.guix.gnu.org/44115>
and would be fixed by <https://issues.guix.gnu.org/45984>.
Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]
Merged 44115 54258.
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 07 Mar 2022 21:54:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#54258
; Package
guix
.
(Mon, 07 Mar 2022 21:56:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 54258-done <at> debbugs.gnu.org (full text, mbox):
zimoun <zimon.toutoune <at> gmail.com> skribis:
> $ guix import elpa foo -r
> Backtrace:
> 4 (primitive-load "/home/simon/.config/guix/current/bin/guix")
> In guix/ui.scm:
> 2116:12 3 (run-guix-command _ . _)
> In guix/scripts/import.scm:
> 120:11 2 (guix-import . _)
> In guix/scripts/import/elpa.scm:
> 103:16 1 (guix-import-elpa . _)
> In guix/import/utils.scm:
> 431:36 0 (recursive-import "foo" gnu #:repo->guix-package _ #:guix-name _)
>
> guix/import/utils.scm:431:36: In procedure recursive-import:
> Wrong number of values returned to continuation (expected 2)
Fixed, thanks to last year’s zimoun! :-)
5278cab3dc scripts: import: gem: Fix recursive error handling.
7229b0e858 import: cran: Return multiple values for unknown packages.
1fe81b349c import: elpa: Return multiple values for unknown packages.
6bb92098b4 import: hackage: Return multiple values for unknown packages.
434925379d import: pypi: Return multiple values for unknown packages.
ebb03447f8 import: pypi: Gracefully handle missing project home page.
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 05 Apr 2022 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 137 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.