From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cJGvF4EVJ2IvdwEAgWs5BA (envelope-from ) for ; Tue, 08 Mar 2022 09:36:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UOsiFYEVJ2KPNwEA9RJhRA (envelope-from ) for ; Tue, 08 Mar 2022 09:36:17 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1579617777 for ; Tue, 8 Mar 2022 09:36:17 +0100 (CET) Received: from localhost ([::1]:39284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRVKK-0000FB-63 for larch@yhetil.org; Tue, 08 Mar 2022 03:36:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRVK6-0000As-C6 for bug-guix@gnu.org; Tue, 08 Mar 2022 03:36:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33016) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRVK6-0001C3-3W for bug-guix@gnu.org; Tue, 08 Mar 2022 03:36:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nRVK6-0004rI-0W for bug-guix@gnu.org; Tue, 08 Mar 2022 03:36:02 -0500 Subject: bug#54259: pypi importer prints backtrace when no source package exists Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Tue, 08 Mar 2022 08:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 54259 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ricardo Wurmus Mail-Followup-To: 54259@debbugs.gnu.org, ludo@gnu.org, rekado@elephly.net Received: via spool by 54259-done@debbugs.gnu.org id=D54259.164672856018663 (code D ref 54259); Tue, 08 Mar 2022 08:36:01 +0000 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 54259-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646728577; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=DQ59l6ICgh6AJZUVkc5IQ85+QU+q8Ao8IcOLQSJjfQM=; b=T2At4Ac5cmWPtbe+X/6gjLJr7T9CsteNcEjGIkHtCR51t3/3EpPK3iEq3BlDjAATlja45k V3BL20Fqa0uaeztWL8QZfAYtQNOsnssejFVXs2QTSE43NBATyWwFnlmnvu4B5N1OSSrOQU 5sPwBb0Hj9K5ADN9tG2ZkJLvKw8BOf/ItlQgsQ5VspGy/zV/YTjK4NnSSaqswfaNdbi5HO ojNLX00GlZ0eYJPRk5KWVOYeuCDxbmgdak3RokNre+9DYYMQosB1XmBacCJCAn8Fc2Jf5s 02vLFBzWwx9DdneoPpWgPsn5FWbyO3kJzk4iHIElE3tlNvNV/ACZJyw/MXT9Tg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646728577; a=rsa-sha256; cv=none; b=nZNrLqVppgQz6u6sy03/kpMTbLY91+NtgPJZZXZmYdidnT+Vl8nbR1Ph1PQ6vpcAF0Azql sc34vjuN+ZM7u2z6svG+TpE2AdjjY9hlMYUnY5LkyYkbY+96flm/OxNTbeAMHaXodqQt82 MPRLPGG7F6TCPuyC5sqBk6skxLJ390GKe1qLvjcqSAqOiyb0aPsLRJ4UmIqgLGnUmIEQ1t AM0w14zYuNiJerx+eD04hlmNmA1ZvuXBtnnb09JgacoOad1hntILCc7K1lijrxaAo6T50k QQK0aUgfmGg5pJnrhHFjuWYadbr2Tw8h+1iaaewUjEI5nVkvFg/soAPB0v8cjQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=nbNRLSWE; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.62 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=nbNRLSWE; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1579617777 X-Spam-Score: -4.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: SMt4F5web4m8 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.