From unknown Tue Aug 19 10:01:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#54259 <54259@debbugs.gnu.org> To: bug#54259 <54259@debbugs.gnu.org> Subject: Status: pypi importer prints backtrace when no source package exists Reply-To: bug#54259 <54259@debbugs.gnu.org> Date: Tue, 19 Aug 2025 17:01:11 +0000 retitle 54259 pypi importer prints backtrace when no source package exists reassign 54259 guix submitter 54259 Ricardo Wurmus severity 54259 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 05 05:51:02 2022 Received: (at submit) by debbugs.gnu.org; 5 Mar 2022 10:51:02 +0000 Received: from localhost ([127.0.0.1]:47379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQS06-0005ZV-5s for submit@debbugs.gnu.org; Sat, 05 Mar 2022 05:51:02 -0500 Received: from lists.gnu.org ([209.51.188.17]:37346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQS04-0005Z9-Ez for submit@debbugs.gnu.org; Sat, 05 Mar 2022 05:51:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQS04-0003LM-72 for bug-guix@gnu.org; Sat, 05 Mar 2022 05:51:00 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21145) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQS02-0001Tn-LX for bug-guix@gnu.org; Sat, 05 Mar 2022 05:50:59 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1646477456; cv=none; d=zohomail.com; s=zohoarc; b=EedVAE/0qHOs/6ZhFJMmyGBmJkquICRkCjmnMTCGw73dPmjkySVAdb39iZxtbdn4CxzkXdua57mCVP/vUvXnjJ+9duzJKWeQKsD/w2et0BV0/b8beW0tDAPvuXETCzZ7lp032avB72WoRT3f3pb+vgSnpqc3AsJrpHjvvXC0dPQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1646477456; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=HZZnsw64TZKDOr2aPUQmUv/DIl54DgL2ZHKor73q/t8=; b=imICFXqr1vDjvfhHFi8IFYFbXpeWCbqfJ2lzT8j25RW/UqMUyJvQlLI7vN0Xaplfr+WohOcnvlDwaPFNcfD8zkXsi/XhZuqZiRhrgl2Znyo9HrzianstQsPzp7ELTOlhws7erlBdOIjpTsfFgu61ts3s9o0aD2YDvSLJJYWeM4g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1646477456; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=HZZnsw64TZKDOr2aPUQmUv/DIl54DgL2ZHKor73q/t8=; b=DyCBMhg2aw3FaPtmd8jVasPIN+B6QGgL88l4kSlaHaXm3X/3aPJD7cfZiHK0PS96 cYspDPiIb22baL73+uUk9L+FsCN3wXT8KDe4C78sAZnHB7+YarzlGJHjHzJPBdoDeLU BtpFmr3q0ozP34vk3XGYyviBUgvNEEzXbohnNzT0= Received: from localhost (p4fd5ab9a.dip0.t-ipconnect.de [79.213.171.154]) by mx.zohomail.com with SMTPS id 16464774558701013.5864160783369; Sat, 5 Mar 2022 02:50:55 -0800 (PST) User-agent: mu4e 1.6.10; emacs 28.0.50 From: Ricardo Wurmus To: bug-guix@gnu.org Subject: pypi importer prints backtrace when no source package exists Date: Sat, 05 Mar 2022 11:49:25 +0100 X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <87wnh8y8oi.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) The only download for the kaleido package on Pypi is a binary. There is no source code on Pypi. The importer recognizes this but then prints a confusing backtrace when attempting to print a hint: --8<---------------cut here---------------start------------->8--- ./pre-inst-env guix import pypi kaleido guix import: error: no source release for pypi package kaleido 0.2.1.post1 hint: Backtrace: In ice-9/boot-9.scm: 1752:10 18 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In unknown file: 17 (apply-smob/0 #) In ice-9/boot-9.scm: 724:2 16 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 15 (_ #(#(#))) In guix/ui.scm: 2229:7 14 (run-guix . _) 2192:10 13 (run-guix-command _ . _) In guix/scripts/import.scm: 124:11 12 (guix-import . _) In ice-9/boot-9.scm: 1752:10 11 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In guix/scripts/import/pypi.scm: 99:28 10 (_) In guix/memoization.scm: 98:0 9 (mproc "kaleido" #:version #f) In unknown file: 8 (_ #= # (this is nothing)) In ice-9/boot-9.scm: 1685:16 7 (raise-exception _ #:continuable? _) In guix/ui.scm: 806:16 6 (_ _) 316:5 5 (display-hint _ _) 1434:24 4 (texi->plain-text _) In texinfo.scm: 1132:22 3 (parse _) 980:31 2 (loop # (*fragment*) _ _ _) 1064:40 1 (_ _ _ (" " "source. To build it from source, refer to the up= stream repository at" " " "package is available on PyPI, but o=E2=80=A6" = =E2=80=A6) =E2=80=A6) 92:2 0 (loop _ _ _ _) texinfo.scm:92:2: In procedure loop: Throw to key `parser-error' with args `(#f "@-command expected more argumen= ts:" () (url #:opt title replacement) (url #:opt title replacement))'. --8<---------------cut here---------------end--------------->8--- --=20 Ricardo From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 08 03:36:00 2022 Received: (at 54259-done) by debbugs.gnu.org; 8 Mar 2022 08:36:00 +0000 Received: from localhost ([127.0.0.1]:55145 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRVK3-0004qx-RO for submit@debbugs.gnu.org; Tue, 08 Mar 2022 03:36:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRVK2-0004ql-HV for 54259-done@debbugs.gnu.org; Tue, 08 Mar 2022 03:35:59 -0500 Received: from [2001:470:142:3::e] (port=34362 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRVJx-0001Bi-0W; Tue, 08 Mar 2022 03:35:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=DQ59l6ICgh6AJZUVkc5IQ85+QU+q8Ao8IcOLQSJjfQM=; b=nbNRLSWEIY5+cOzXZ6lj UpIdkmexJ+H4ZFD84hzsSIJ4m6Bn63/vW9brZ9G3cwrcEuoggRDfQm61e8H7hIpETDl0SsvaR3avx Eq5RFpgZN96ddBCseFxMo894+O/79byPC1+n3l4K5KZJpWStREVZc69r6mNUIqEvoLgsQISTgGxTu aaMz35gHlUH4zx0gRe3vGhDevjUnf7RPKOX233QetIFGjRCItJyB8MryD2V5NYTfQDXTNF2/lp8O/ 45MEoId/kdzz29SQ+nO580MWFKPBVXlSk4wG7s/QzPsrAlw+6cNmsvL6X2U6KttUH60f+NVYptOUH 7I75MvAgF8ENUw==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=38482 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRVJw-0008BL-Gq; Tue, 08 Mar 2022 03:35:52 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus Subject: Re: bug#54259: pypi importer prints backtrace when no source package exists References: <87wnh8y8oi.fsf@elephly.net> Date: Tue, 08 Mar 2022 09:35:51 +0100 In-Reply-To: <87wnh8y8oi.fsf@elephly.net> (Ricardo Wurmus's message of "Sat, 05 Mar 2022 11:49:25 +0100") Message-ID: <87a6e0aljs.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 54259-done Cc: 54259-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Ricardo Wurmus skribis: > The only download for the kaleido package on Pypi is a binary. There is > no source code on Pypi. The importer recognizes this but then prints a > confusing backtrace when attempting to print a hint: > > ./pre-inst-env guix import pypi kaleido > guix import: error: no source release for pypi package kaleido 0.2.1.post1 > > hint: Backtrace: [...] > texinfo.scm:92:2: In procedure loop: > Throw to key `parser-error' with args `(#f "@-command expected more argum= ents:" () (url #:opt title replacement) (url #:opt title replacement))'. Fixed in ebb03447f8cc93b9e070b3e7706d7a64d5d1772c. The problem was with projects that lack a home page on PyPI. For others, the result looks like this: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix import pypi torch guix import: error: no source release for pypi package torch 1.10.2 hint: This indicates that the package is available on PyPI, but only as a "= wheel" containing binaries, not source. To build it from source, refer to the upstream repos= itory at `https://pytorch.org/'. --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 08 04:07:45 2022 Received: (at 54259) by debbugs.gnu.org; 8 Mar 2022 09:07:45 +0000 Received: from localhost ([127.0.0.1]:55241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRVon-0007t5-FW for submit@debbugs.gnu.org; Tue, 08 Mar 2022 04:07:45 -0500 Received: from mail-il1-f173.google.com ([209.85.166.173]:42526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRVol-0007sq-Fi; Tue, 08 Mar 2022 04:07:44 -0500 Received: by mail-il1-f173.google.com with SMTP id b5so10882330ilj.9; Tue, 08 Mar 2022 01:07:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=pHiEAKuOYcxLDJ1/oFKvSEWDbFsg3IneSLsgL82jMik=; b=bmV3AWZJWYg6WJYveJmYpbbIKe49KvBOSc85uwzxNYuPuH1s+4viEHuwSzhFRgA1d9 BvdK9zsriR3ljTIwXMzrMPTN3vbPr6BVNedFjUgyPtKmQ3Y0KJrTza/E26gSZjUYXypU 7VlnoVKaVncDaBInLVJIJ+bzeuBzPcneXnqfLlglhxIP71enuYpgGaqksEsrGbaoeIc2 OvGPg2UW7Vx8IZ0rl02LBmiX5qJdbECfwNVtfUSaxaQY1jdnWxbeC0zmLK2rHTWvAHyB iYVAKuOBJz5CNAmRNrP16dkRJXsoVQn0PEcOMHvzRG5IAFHUgRRL+O4O3M3vS3RZrowP LtVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=pHiEAKuOYcxLDJ1/oFKvSEWDbFsg3IneSLsgL82jMik=; b=nPwLKLG+cOmqEnCbeLeJJUOScCFblPWYZ1xi9nhm1ge9ZP+770eWjqIQuvmFER+0U0 IjtvECSK3O6L3CemhrKmwHI1935YNZZbW1AHpArY4QTmmYwAKUGL0TuhFnBw95RGkj5+ CvPDs6yz2EhwmI5h18OnODJB2ZHKW2M7w7KLDlcZvrnSXyCptOjVIJaQlMhXhyJAFnPi UK+zdJJwTSb2RePR9lXD2wTkRxpHOk8INWr/x8FG8/NTBFVttXPZHGnDMn1SCBnykmb0 8KCaCsugvSH0Hc8TT0ICsrAeKXrK8eCypzo6vXIAkdoA1XfX3ZYu47vH/3l7BVk8RuFh AOxA== X-Gm-Message-State: AOAM532S40VFtFXs1Y7q/wEpC7E/yp7yHNG9eboskYgo7vVWUUwrmNAB BrGhwwNyDewqJED9pWotTzsUqPxGcqvjoVDbQR2DxDBo6Nk= X-Google-Smtp-Source: ABdhPJwZAJvOotxpaDdVYIsyWC1BLUPN89WyWEU6oyBTrrNUkIHgBhRsvJzUxDwotg/ENRA/QRwILGdxCvmtqCfsV5k= X-Received: by 2002:a92:3609:0:b0:2c6:3595:2a25 with SMTP id d9-20020a923609000000b002c635952a25mr11507797ila.233.1646730457742; Tue, 08 Mar 2022 01:07:37 -0800 (PST) MIME-Version: 1.0 References: <87wnh8y8oi.fsf@elephly.net> <87a6e0aljs.fsf@gnu.org> In-Reply-To: <87a6e0aljs.fsf@gnu.org> From: zimoun Date: Tue, 8 Mar 2022 10:07:26 +0100 Message-ID: Subject: Re: bug#54259: pypi importer prints backtrace when no source package exists To: 54259@debbugs.gnu.org, =?UTF-8?Q?Ludovic_Court=C3=A8s?= , Ricardo Wurmus Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 54259 Cc: 54259-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludo, On Tue, 8 Mar 2022 at 09:36, Ludovic Court=C3=A8s wrote: > Fixed in ebb03447f8cc93b9e070b3e7706d7a64d5d1772c. > > The problem was with projects that lack a home page on PyPI. For > others, the result looks like this: Well, we are fixing importer per importer when the same issue appears across many if not all the importers. For instance, a similar issue for opam: And I remember one about hackage but I cannot find the report -- maybe fixed since then. My point is : the importers would deserve a revamp and refactoring. Maybe an Outreachy project. :-) Cheers, simon From unknown Tue Aug 19 10:01:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 05 Apr 2022 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator