From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WHvWLcMuJ2LhbQAAgWs5BA (envelope-from ) for ; Tue, 08 Mar 2022 11:24:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CJFKJsMuJ2IlhAEAG6o9tA (envelope-from ) for ; Tue, 08 Mar 2022 11:24:03 +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 4344437246 for ; Tue, 8 Mar 2022 11:24:03 +0100 (CET) Received: from localhost ([::1]:46856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRX0c-0000Ra-De for larch@yhetil.org; Tue, 08 Mar 2022 05:24:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRWzh-0007dU-I9 for bug-guix@gnu.org; Tue, 08 Mar 2022 05:23:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33228) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRWzg-0002BM-BR for bug-guix@gnu.org; Tue, 08 Mar 2022 05:23:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nRWzg-0001MQ-8L for bug-guix@gnu.org; Tue, 08 Mar 2022 05:23:04 -0500 Subject: bug#52836: "guix import pypi" fails with "Failed to extract file from wheel" and "no requires.txt file found" Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Tue, 08 Mar 2022 10:23:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 52836 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: bbb ee Mail-Followup-To: 52836@debbugs.gnu.org, zimon.toutoune@gmail.com, blasforr@gmail.com Received: via spool by 52836-done@debbugs.gnu.org id=D52836.16467349515120 (code D ref 52836); Tue, 08 Mar 2022 10:23:04 +0000 Received: (at 52836-done) by debbugs.gnu.org; 8 Mar 2022 10:22:31 +0000 Received: from localhost ([127.0.0.1]:55349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRWz8-0001KQ-Ew for submit@debbugs.gnu.org; Tue, 08 Mar 2022 05:22:30 -0500 Received: from mail-wm1-f47.google.com ([209.85.128.47]:55847) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRWz6-0001JV-2f for 52836-done@debbugs.gnu.org; Tue, 08 Mar 2022 05:22:28 -0500 Received: by mail-wm1-f47.google.com with SMTP id i66so10810495wma.5 for <52836-done@debbugs.gnu.org>; Tue, 08 Mar 2022 02:22:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=0uqNmlWMpPTZ02191bWJsPcQeGdpUM9TRXQiYIaG+OE=; b=BjvpVa2xKteBtLOJXhLe7eY/WUzNeAPnVkNj78ZGFhyOO6SjOIRQ3lt8Eocr8x3r7V z4PAF+RSprohyME0xgtvhKzYNpK/DbZFi0OwD1QR7aQplofXIOhPVtFt2rMsCfFK587C pC83PWO8YqjilLANvvAGr5/0uvEspN+rnMLR5GCieTwC5tSRyeUF1EpCn/OBfpWampIp NgeZsjqAWq9DXiXoggmn2HmCCCPgSPSvSmrd/vOVTXubFy9BfzwKS0RxUTjbw40wZmdB M6HOo5YjeY4W5yqQx9MeWwPxGwX4fYhNWGQO+IO1Q4fbV6q8+aHBBaZUqdtMXUWnjyKO NDjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=0uqNmlWMpPTZ02191bWJsPcQeGdpUM9TRXQiYIaG+OE=; b=fDn2Sc2t4xhbBtPz78AqTsydECvR9vTwaK1NsxMHXkTqVxc3HgGKucaU3l2xYyPLbD 2o9flt8nksHRmVje2gCuRrVIFJKpxOtsrVtit2IFwWQC81bCN8dJBdRMVbbS1wb2Pqc4 ERq+Q61tbQbgicgmrJXm/AJReZLLmqiRd+0QDM6cAGxO1CDW/dcoNVMDD7SDD2J17+Xg k/geH87Kott5tckHqkPzpgSzt/s+2trxoldQDEzHKwYMCCcQVXaqB+BrvtGqC5Zqf1mc EMwm44hV6wIJzao7JF2xilMM0Yvo24qHWsYRA5OMdAVqZP/rwQ/xrkSzEQnHqGHTf82C 6Ehg== X-Gm-Message-State: AOAM530oVJJLsvfAdRVa6pofVAwOpyPinv2bSGjYCm/XP5UNng8Ebfrg HM6Y96TQSxZxSZ0hUmClGvgP5GjcVhA= X-Google-Smtp-Source: ABdhPJw1dkz07jKvOs1/Habei5nLEJw3DMI8O4ZkS0e/KeShtCkauV+U2RUB5Y9rz5/JR3zAw6Xn/w== X-Received: by 2002:a05:600c:1990:b0:381:1806:1d9 with SMTP id t16-20020a05600c199000b00381180601d9mr2866153wmq.93.1646734942583; Tue, 08 Mar 2022 02:22:22 -0800 (PST) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id l23-20020a05600c1d1700b00389a5735c59sm1966575wms.13.2022.03.08.02.22.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 02:22:22 -0800 (PST) From: zimoun References: <86y243ibr4.fsf@gmail.com> Date: Tue, 08 Mar 2022 11:14:44 +0100 In-Reply-To: (zimoun's message of "Fri, 31 Dec 2021 12:00:33 +0100") Message-ID: <87ee3c4up7.fsf@gmail.com> 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: 52836-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=1646735043; 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=0uqNmlWMpPTZ02191bWJsPcQeGdpUM9TRXQiYIaG+OE=; b=Rc+idcF+7mR74M6cibULF5rqoLPLfwt1DYxXab/9+AXGfhyHAJZxuvcw/pvUugELNpymzB gHM378HrGWSf7J2XHh4uUFAyTe/N7027iLYZvqq9h2iF1IZZ/qBYjNjwWpQ6htKFJ1rLsP /lcYBs9zdAoNBlmVmrmyhDBQVgcBFhMt6wUMud6qDPEv4xPrKBHsY8Wqo3s6oRY3DBhrOY EmidI+cCRlsa/QDBaZ3YsRfmcwfgKii+Mgf2ywdd4wRLv8jy/BtxHvOfGd1lI56JAEr1o9 RWS4bIMOeHyqkgS3DrH5ZQnOXGCQgAm+nH3ol/Oh1x2Hv35BFP0ZWkdtfEBnBw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646735043; a=rsa-sha256; cv=none; b=qj9bTH3nPD8YKOaFJaO0BHssUJ2xC5rYKKRW3+qJHtY1QO+6nSJqCuYRmmXh0V4vgXizSR /DHlPG+JCWuj/lgxhIfsnuo5RpO4pyHMWWRRvtMx+5ykob0q0x+hu69DDXxgxJfTjoNApi cpzhO4Rb+3Ox8fivnG0REmTL1kx6nAj8s0yO1yzBlKL0fTMFGfm7ZOFPSFtEllT85/kl2h KDfUfPTPoebOVHeIV+9wby8Lp/PflgmoVTnBjb2HyMQ6EHCv8oc4WZpBOyKBVHUuJmyWDy 8tyN8irFd+uG86Ph75TQHl9no4PPX0SWGfpCA9T3/w6Tjf8Pef5SoXsRaGzfcg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=BjvpVa2x; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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.88 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=BjvpVa2x; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 4344437246 X-Spam-Score: 4.88 X-Migadu-Scanner: scn0.migadu.com X-TUID: gthROOFYWf0a Hi, On ven., 31 d=C3=A9c. 2021 at 12:00, zimoun wrot= e: > On Fri, 31 Dec 2021 at 11:15, bbb ee wrote: > >> > Is it a bug on Guix side or upstream? Because it seems that upstream >> > does not provide metadata information, at least, as usually expected. >> >> `pip install PyPortfolioOpt`, `poetry add PyPortfolioOpt` runs for me. I= f other python package installer can run, I suppose the upstream is correct. > > Hum, not necessary. Well, I do not think that 'pip' uses all the > metadata from PyPI to install. 'pip' does dirty things and yes it > just works :-) But this does not imply that PyPortfolioOpt is > correctly packaged as it is defined by PyPI standards. I do not know > 'poetry'. > > Anyway. :-) I am not finding the PEP defining the Python packaging > and the structure for a PyPI package. Because it is not clear for me > if it is a bug on Guix side or upstream. This package PyPortfolioOpt is badly packaged upstream. We cannot do better than warn about the issue: --8<---------------cut here---------------start------------->8--- $ guix import pypi PyPortfolioOpt following redirection to `https://pypi.org/pypi/pyportfolioopt/json'... Starting download of /tmp/guix-file.6rSGsS >From https://files.pythonhosted.org/packages/97/c2/c7569f2773f3e942367e90dc= ca15a235af3d3330ac8abfcbfbe67a8ba8dd/PyPortfolioOpt-1.5.1.tar.gz... =E2=80=A6t-1.5.1.tar.gz 56KiB 8.2MiB/s 00:00 [#############= #####] 100.0% Starting download of /tmp/guix-file.MFmUSK >From https://files.pythonhosted.org/packages/90/98/3906835b783ba39cfc613c7b= 0c0fde9c758c729ff3406d45f1c2a1116961/PyPortfolioOpt-1.5.1-py3-none-any.whl.= .. =E2=80=A6.1-py3-none-any.whl 60KiB 45.2MiB/s 00:00 [#############= #####] 100.0% guix import: warning: Failed to extract file: PyPortfolioOpt-1.5.1.dist-inf= o/METADATA from wheel. guix import: warning: Cannot guess requirements from source archive: no req= uires.txt file found. guix import: warning: project name pyportfolioopt does not appear verbatim = in the PyPI URI hint: The PyPI URI is: `https://files.pythonhosted.org/packages/97/c2/c7569f2773f3e942367e90dcca15 a235af3d3330ac8abfcbfbe67a8ba8dd/PyPortfolioOpt-1.5.1.tar.gz'. You should review the pypi-uri declaration in the generated package. You may need to replace "pyportfolioopt" with a substring of the PyPI URI that identifies the package. (package (name "python-pyportfolioopt") (version "1.5.1") (source (origin (method url-fetch) (uri (pypi-uri "pyportfolioopt" version)) (sha256 (base32 "162d6jyvba0xk2blssbp52rrjqpjv011h988k150p1fg7x7nzbs9")))) (build-system python-build-system) (home-page "https://github.com/robertmartin8/PyPortfolioOpt") (synopsis "Financial portfolio optimization in python") (description "Financial portfolio optimization in python") (license license:expat)) --8<---------------cut here---------------end--------------->8--- Therefore, I am closing. Feel free to reopen if I missed a point. Cheers, simon