emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#54258: closed (recursive pypi importer prints backtrace when package


From: GNU bug Tracking System
Subject: bug#54258: closed (recursive pypi importer prints backtrace when package does not exist)
Date: Mon, 07 Mar 2022 21:56:02 +0000

Your message dated Mon, 07 Mar 2022 22:55:12 +0100
with message-id <87ilspa0n3.fsf@gnu.org>
and subject line Re: bug#44115: “guix import -r“ fails with Bactktrace instead 
of error
has caused the debbugs.gnu.org bug report #44115,
regarding recursive pypi importer prints backtrace when package does not exist
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
44115: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=44115
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: recursive pypi importer prints backtrace when package does not exist Date: Sat, 05 Mar 2022 11:46:00 +0100 User-agent: mu4e 1.6.10; emacs 28.0.50
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



--- End Message ---
--- Begin Message --- Subject: Re: bug#44115: “guix import -r“ fails with Bactktrace instead of error Date: Mon, 07 Mar 2022 22:55:12 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
zimoun <zimon.toutoune@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’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]