GNU bug report logs -
#52350
pypi import: ungraceful exit when recursively importing unknown package
Previous Next
To reply to this bug, email your comments to 52350 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#52350
; Package
guix
.
(Tue, 07 Dec 2021 11:28:02 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
.
(Tue, 07 Dec 2021 11:28:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
When using the pypi importer, a typo in the package name leads to an
ugly backtrace:
--8<---------------cut here---------------start------------->8---
./pre-inst-env guix import pypi -r pytestrerunfailures
following redirection to `https://pypi.org/pypi/pytestrerunfailures/json/'...
Backtrace:
In ice-9/boot-9.scm:
1752:10 9 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In unknown file:
8 (apply-smob/0 #<thunk 7f3f0d996f60>)
In ice-9/boot-9.scm:
724:2 7 (call-with-prompt _ _ #<procedure default-prompt-handler (k proc)>)
In ice-9/eval.scm:
619:8 6 (_ #(#(#<directory (guile-user) 7f3f0d990c80>)))
In guix/ui.scm:
2206:7 5 (run-guix . _)
2169:10 4 (run-guix-command _ . _)
In guix/scripts/import.scm:
124:11 3 (guix-import . _)
In guix/scripts/import/pypi.scm:
96:18 2 (guix-import-pypi . _)
In guix/import/utils.scm:
498:27 1 (recursive-import "pytestrerunfailures" #:repo->guix-package _ #:guix-name _ …)
488:33 0 (lookup-node "pytestrerunfailures" #f)
guix/import/utils.scm:488:33: In procedure lookup-node:
Wrong number of values returned to continuation (expected 2)
--8<---------------cut here---------------end--------------->8---
--
Ricardo
Information forwarded
to
bug-guix <at> gnu.org
:
bug#52350
; Package
guix
.
(Tue, 07 Dec 2021 13:21:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 52350 <at> debbugs.gnu.org (full text, mbox):
Hi Ricardo,
On Tue, 7 Dec 2021 at 12:28, Ricardo Wurmus <rekado <at> elephly.net> wrote:
> When using the pypi importer, a typo in the package name leads to an
> ugly backtrace:
This is already tracker by patch#45984. Well, the patch fixes the
issue of "pypi" and other ones too (although some had probably been
fixed independently, I have not checked or rebased this old patch).
The patch had not been merged because we (with jeko) tried a
pair-programming hacking session to revamp all the error handling.
Well, we were not very far (not easy pair programming, remotely
neither :-)).
I do not have much time these days to concretely make this revamp.
Maybe, the initial patch could be applied as a stopgap waiting a clean
revamp.
1: <http://issues.guix.gnu.org/issue/45984>
Cheers,
simon
Information forwarded
to
bug-guix <at> gnu.org
:
bug#52350
; Package
guix
.
(Tue, 08 Mar 2022 10:23:03 GMT)
Full text and
rfc822 format available.
Message #11 received at 52350 <at> debbugs.gnu.org (full text, mbox):
Hi Ricardo,
On mar., 07 déc. 2021 at 11:26, Ricardo Wurmus <rekado <at> elephly.net> wrote:
> ./pre-inst-env guix import pypi -r pytestrerunfailures
--8<---------------cut here---------------start------------->8---
$ guix import pypi pytestrerunfailures
following redirection to `https://pypi.org/pypi/pytestrerunfailures/json/'...
guix import: error: failed to download meta-data for package 'pytestrerunfailures'
$ guix import pypi pytestrerunfailures -r
following redirection to `https://pypi.org/pypi/pytestrerunfailures/json/'...
--8<---------------cut here---------------end--------------->8---
Fixed by f7bb161445903c51d299307610403cb3de0fcc56, at least the ugly
backtrace. However, it is still unsatisfactory since the error is not
correctly handled.
I propose to close because the exit is now graceful -- at least less
ungraceful. :-)
Cheers,
simon
This bug report was last modified 3 years and 97 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.