unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: 52350@debbugs.gnu.org
Subject: bug#52350: pypi import: ungraceful exit when recursively importing unknown package
Date: Tue, 07 Dec 2021 11:26:17 +0000	[thread overview]
Message-ID: <87ee6oven6.fsf@elephly.net> (raw)

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




             reply	other threads:[~2021-12-07 11:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-07 11:26 Ricardo Wurmus [this message]
2021-12-07 13:20 ` bug#52350: pypi import: ungraceful exit when recursively importing unknown package zimoun
2022-03-08 10:09 ` zimoun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ee6oven6.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=52350@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).