From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KPBuI3P9c2PLeQAAbAwnHQ (envelope-from ) for ; Tue, 15 Nov 2022 21:58:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eAx8InP9c2MdpQAAG6o9tA (envelope-from ) for ; Tue, 15 Nov 2022 21:58:27 +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 5B6F31D0F8 for ; Tue, 15 Nov 2022 21:58:27 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ov30Z-00022U-6j; Tue, 15 Nov 2022 15:58:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ov30X-000210-Kv for guix-devel@gnu.org; Tue, 15 Nov 2022 15:58:13 -0500 Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ov30V-0002z5-UV for guix-devel@gnu.org; Tue, 15 Nov 2022 15:58:13 -0500 Received: by mail-qk1-x734.google.com with SMTP id z1so10371834qkl.9 for ; Tue, 15 Nov 2022 12:58:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=hgb1+oWyTRA60hjj33MCNAKA1VIQuS3thXx5pd7Ge+A=; b=Pe8gO8Yd5ydG7i4YthEP9WSFxpNIPlP+ZD0sSl/Yp9V9NrKZClwpFTJBIVKLm22zj1 ZObxg5q0WzK+iPV+Nn+684zNo9yGEr/nLMUflzcwd/XKjY1jPdSvq9tBwJAWkj7wcYED Ui5TiLIpKiQTOjU8IupI0R5RQshZA24ZtQ9vhysOOeRImhkHVLC/+4mncW/cS+orkEU+ NHAIjB5/2X9/uT96IPl1vEFVUYBlMuOSPSfS9Yfq/SNo2ykq0AP2XK3qb+AkVSA16p2t gFs7oDjam7Hsr219lPslix0CHrHd2rW00UR0+ysPQ13YByQUTlFFW/OmLpVSP/SbjEeR tu0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hgb1+oWyTRA60hjj33MCNAKA1VIQuS3thXx5pd7Ge+A=; b=LK6KDkJwer6CSEmFt811FFq8GICFGmg4j1RMNt45I1wx2ZtJ/NSlAibflq0V4cZeep v2bVu2EeLeDx3ttKf+l1jMZiYH1doLXaBYoT5+CJQ81Cg/oTaTGViEn/dUy1GqnH9R2b n1t7EmozvLV6GlsiTslX7X86rKF27E2ml1Th39MxIlLYhjPKy6uuwyTgEl8ZziQBocdN S/SbBBJ17YDroEdWK1znEcfTIGB8IhEfBqLVKImloYZLhN3fE5qX1Nq5+4VuCUGw8nbn +beyKbqlRt6+z4ozsyeQI1V9ObEpfrTaTGoToxGbzkG7YO8PlReQQZa0ROaM4JqsoM2S 6G4g== X-Gm-Message-State: ANoB5plm0LDHCQPHhXSjm+FpaBd6t0IIJ9jjpUjwtkAKoLKgKB83670l 5pqY+4ekh5YmThKd1IcwA7xbARjuXh4= X-Google-Smtp-Source: AA0mqf6SC08OPxvLLcc2+KQfCRzI+BgQiPWiViaBTM/lzxPl/2iNGiiXpa3wFirh9gPhwpsjFizXIA== X-Received: by 2002:a05:620a:d50:b0:6fa:1d51:74a1 with SMTP id o16-20020a05620a0d5000b006fa1d5174a1mr16222977qkl.688.1668545890736; Tue, 15 Nov 2022 12:58:10 -0800 (PST) Received: from hurd (dsl-151-98.b2b2c.ca. [66.158.151.98]) by smtp.gmail.com with ESMTPSA id a66-20020ae9e845000000b006ea7f9d8644sm8604102qkg.96.2022.11.15.12.58.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 12:58:10 -0800 (PST) From: Maxim Cournoyer To: jgart Cc: Guix Devel Subject: Re: guix import pypi fails if one of the transitive deps has no source on PyPi References: <20221115090635.GB21291@dismail.de> Date: Tue, 15 Nov 2022 15:58:03 -0500 In-Reply-To: <20221115090635.GB21291@dismail.de> (jgart@dismail.de's message of "Tue, 15 Nov 2022 09:06:35 -0600") Message-ID: <87bkp8lyuc.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::734; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x734.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org 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=1668545907; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=hgb1+oWyTRA60hjj33MCNAKA1VIQuS3thXx5pd7Ge+A=; b=mW5Q4TbMzJM59RlkPwUW9O5R6j7Fx73Q2yL2ivkp44momSPQU/XrUwMRx0SPdje4AM5QIa ngOcFruMvo2Jp0zCR+KFhUdUgfW7vniFRog+ZN384zwLNvETUYxheW4hyWyajHKFsD3Y7y 68faJa6zDoa2QH4QVn6eISICyySLMed7Itp/0wqByYRqPjSQ2JQGDuMeapmgDVDWkizeOO ZpgVr3/PULF5Fn26CO0XTPSiekDQ1BU6Httm49zKQl7bmSV5TXVUohO6DuJgnjKfti8pyg CMwSmghsH14pbOu+cykNEwUF3H4vZPHejpRhnXhTXQ7CUmfEPBjKZ5He8JkQjA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668545907; a=rsa-sha256; cv=none; b=PeqWw4qaaeF7ZTDCKeaTs+LjZg1UwYXNqf3WGXHr507wxUwzsAxkfWHbPOh8xWvPpDGOhi oT1ChJWxsOXGLXk8ERoukR/d3YpDEyrwSckA+IVDYaDsb1EatvK49miEfOUFrBdGlrFAQU nHlVh7BytSwVxJbxXRffe7Z2jyw86O8v+VcNK38yNyPyzLcoxDQNBVl0ofyemygQJKIj9P DzFJ+cp4DVWYH3+mIRNxW8rjEIJAq+tCn/JcdtGeaBmYHLgu9eZ205yCjPJ+ksLtO38b2K 9aYdc4n23oECR5+9tioIT4uwDNyZwrS9cEHOWFyD+h4ufGISEw1EGhQP2sQvtg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Pe8gO8Yd; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Pe8gO8Yd; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5B6F31D0F8 X-Spam-Score: -4.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: iKW/VhHj+rqB Hi jgart, jgart writes: > I realize this may be a feature some may want but then we get no template > to work from because `guix import pypi` is to heavy handed: > > $ guix import pypi neoscore -r > > Starting download of /tmp/guix-file.HrGkox > From https://files.pythonhosted.org/packages/f8/41/97964d689a5f7e10792ffd= 13c98d6348368bbf93fd473b4da135fbfc9412/neoscore-0.1.7.tar.gz... > =E2=80=A6.1.7.tar.gz 869KiB 3.5MiB/s 00:00 [###########= #######] 100.0% > > Starting download of /tmp/guix-file.vc9mqy > From https://files.pythonhosted.org/packages/0c/28/8830d1da820115c4f342ce= 48fa337a7a77fd4e04a6ef68bf4cd17e5e6796/neoscore-0.1.7-py3-none-any.whl... > =E2=80=A6py3-none-any.whl 919KiB 3.7MiB/s 00:00 [###########= #######] 100.0% > > Starting download of /tmp/guix-file.pIjiPU > From https://files.pythonhosted.org/packages/e1/57/2023316578646e1adab903= caab714708422f83a57f97eb34a5d13510f4e1/PyQt5-5.15.7.tar.gz... > =E2=80=A65.7.tar.gz 3.1MiB 6.9MiB/s 00:00 [###########= #######] 100.0% > > Starting download of /tmp/guix-file.p5Hob2 > From https://files.pythonhosted.org/packages/14/75/596d5e9ed7a135918bb157= ed315004ac008e09b9b4c9328f94568c88f003/PyQt5-5.15.7-cp37-abi3-macosx_10_13_= x86_64.whl... > =E2=80=A6macosx_10_13_x86_64.whl 6.7MiB 8.7MiB/s 00:01 [###########= #######] 100.0% > > Starting download of /tmp/guix-file.1vSRMl > From https://files.pythonhosted.org/packages/08/83/4cea5c665d2af765c02f7d= 8e8560b5918405c1d7d11ccfc60c4919c1cfd0/backports.cached-property-1.0.2.tar.= gz... > =E2=80=A6operty-1.0.2.tar.gz 8KiB 3.2MiB/s 00:00 [###########= #######] 100.0% > > Starting download of /tmp/guix-file.r5HeLH > From https://files.pythonhosted.org/packages/eb/ae/69e52acdcf381b108b36d9= 89ea58656de4a9ab8863aba6176d80d01041df/backports.cached_property-1.0.2-py3-= none-any.whl... > =E2=80=A6y-1.0.2-py3-none-any.whl 6KiB 4.3MiB/s 00:00 [###########= #######] 100.0% > > Starting download of /tmp/guix-file.J00iQN > From https://files.pythonhosted.org/packages/95/b5/f933f482a811fb9a7b3707= f60e28f2925fed84726e5a6283ba07fdd54f49/img2pdf-0.4.4.tar.gz... > =E2=80=A64.4.tar.gz 96KiB 1.3MiB/s 00:00 [###########= #######] 100.0% > guix import: error: no source release for pypi package PyQt5-Qt5 5.15.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 repository at > `https://www.riverbankcomputing.com/software/pyqt/'. I think that's #52350 on the bug tracker. > Can we use the maybe monads here to prevent this? I think what we should do is handle the error, print an warning, and continue execution so that a user can have at least have something, although incomplete. --=20 Thanks, Maxim