all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#54258: recursive pypi importer prints backtrace when package does not exist
@ 2022-03-05 10:46 Ricardo Wurmus
  2022-03-05 11:00 ` Maxime Devos
  0 siblings, 1 reply; 2+ messages in thread
From: Ricardo Wurmus @ 2022-03-05 10:46 UTC (permalink / raw)
  To: 54258

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#54258: recursive pypi importer prints backtrace when package does not exist
  2022-03-05 10:46 bug#54258: recursive pypi importer prints backtrace when package does not exist Ricardo Wurmus
@ 2022-03-05 11:00 ` Maxime Devos
  0 siblings, 0 replies; 2+ messages in thread
From: Maxime Devos @ 2022-03-05 11:00 UTC (permalink / raw)
  To: Ricardo Wurmus, 54258

[-- Attachment #1: Type: text/plain, Size: 303 bytes --]

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.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-05 11:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-05 10:46 bug#54258: recursive pypi importer prints backtrace when package does not exist Ricardo Wurmus
2022-03-05 11:00 ` Maxime Devos

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.