From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 27 18:53:32 2021 Received: (at submit) by debbugs.gnu.org; 27 Dec 2021 23:53:32 +0000 Received: from localhost ([127.0.0.1]:44651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1zo1-0001Vz-L7 for submit@debbugs.gnu.org; Mon, 27 Dec 2021 18:53:32 -0500 Received: from lists.gnu.org ([209.51.188.17]:41310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1xGa-0005DQ-8i for submit@debbugs.gnu.org; Mon, 27 Dec 2021 16:10:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1xGa-0004Dp-2P for bug-guix@gnu.org; Mon, 27 Dec 2021 16:10:48 -0500 Received: from [2607:f8b0:4864:20::b2a] (port=43540 helo=mail-yb1-xb2a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1xGY-0000ww-7B for bug-guix@gnu.org; Mon, 27 Dec 2021 16:10:47 -0500 Received: by mail-yb1-xb2a.google.com with SMTP id f9so50626675ybq.10 for ; Mon, 27 Dec 2021 13:10:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=7o87+Pnr4qX54L7vvjhMSlAKBIFJu/KPvfecuOcG0Tk=; b=QTJkqmZ431kx279vf4Q+aHbJVj8O9GCwd6HoB/0CY9OBHqZqOYb/2RKzyq+YR4jVRC X6eJ1/oECkaqMq/x0sA8x7fdNWQ+OQwG6m1tFi5McInl54ja9Q6hCVQEamdXRq0DEfbL 7GPdeKCZVSqy0/kExrPw7kJ8z2dbF3XOpH0fUQ3sqIBE05r5KdQYoEzwsCpZM9MHB+/x +eRkLuWp64FQPF3z2laIZSLKNKfPq+6ANkWo9ktUdA7Yb3j/odfZoEQ681+tP6q63OBK LgnoKkDduICzHdz4y+Rus3kLpNQZK9KrVCyaq3p/bmzc6sIZwa+7sU7C/Z1nQmWFbgKO axog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=7o87+Pnr4qX54L7vvjhMSlAKBIFJu/KPvfecuOcG0Tk=; b=K/7RlAWw4wKn6Nn7k+AYcT0wlM+bSDiXojimHl4MxEWfJ/+7GbDdXKxauUDojaXkCU Ke4TgUTvaHT7iTGAuavlMdMtgxyITyjzWQmBvBkq/n8hfZ3538t0rA5EsWa/2SVfoluP HTnrF66FALh48DlNdJnBBaiczSlwvKCr+LAMCLHkaTaAfoGWT8UzQJWL3bpJw+6YW7m+ 9ZOr6HLm5+2wxu8Rq9pwnoCpoA/Xyv4cBlYoyn68IuM1EjyfUopOnKiOxdb+KCd1fnz0 fCtBIQWH+nB49oOwhZody6jnnbdgPVlssAA+Zntfq4npu8VxbIxvwtd121AersBCQqRR Vxog== X-Gm-Message-State: AOAM533fOHQrRxfUS9DuvwJ2/wa0r1IdOh6tNDVWqSJ7DVGNlMjQxasG 5fBEngwgBD6sy5tA2gaC1DmCFQgsLiP20VF1xCdSV/fLAEU= X-Google-Smtp-Source: ABdhPJzI/VrAks8WA+hxOreJr/Hyavoo5jgQRH25sHre4nqGibQyLcZ8qQ6aQyKweX57D9qH81+ZL/FKP90t90AIpxk= X-Received: by 2002:a25:e00b:: with SMTP id x11mr11078219ybg.460.1640639443196; Mon, 27 Dec 2021 13:10:43 -0800 (PST) MIME-Version: 1.0 From: bbb ee Date: Mon, 27 Dec 2021 22:10:32 +0100 Message-ID: Subject: "guix import pypi" fails with "Failed to extract file from wheel" and "no requires.txt file found" To: bug-guix@gnu.org Content-Type: multipart/alternative; boundary="000000000000375fb205d42723f1" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::b2a (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::b2a; envelope-from=blasforr@gmail.com; helo=mail-yb1-xb2a.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 27 Dec 2021 18:53:28 -0500 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 (--) --000000000000375fb205d42723f1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I have encounter a issue with "guix import pypi" : ``` guix import: warning: Failed to extract file: PyPortfolioOpt-1.5.1.dist-info/METADATA from wheel. guix import: warning: Cannot guess requirements from source archive: no requires.txt file found. ``` ## reproduce the bug ``` (base) guix import pypi PyPortfolioOpt following redirection to `https://pypi.org/pypi/pyportfolioopt/json'... Starting download of /tmp/guix-file.mwZdLg From https://files.pythonhosted.org/packages/97/c2/c7569f2773f3e942367e90dcca15a= 235af3d3330ac8abfcbfbe67a8ba8dd/PyPortfolioOpt-1.5.1.tar.gz. .. =E2=80=A6t-1.5.1.tar.gz 56KiB 2.7MiB/s 00:00 [#############= #####] 100.0% Starting download of /tmp/guix-file.mHBgak From https://files.pythonhosted.org/packages/90/98/3906835b783ba39cfc613c7b0c0fd= e9c758c729ff3406d45f1c2a1116961/PyPortfolioOpt-1.5.1-py3-none-any.whl. .. =E2=80=A6.1-py3-none-any.whl 60KiB 2.1MiB/s 00:00 [#############= #####] 100.0% guix import: warning: Failed to extract file: PyPortfolioOpt-1.5.1.dist-info/METADATA from wheel. guix import: warning: Cannot guess requirements from source archive: no requires.txt file found. (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)) (base) guix describe Generation 220 Dec 27 2021 12:01:04 (current) guix 9bbbac6 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 9bbbac6783bcdace17d967e85c8ae8d14cbf1ef9 ``` ## additional information This user has encountered a similar issue for "guix import pypi httpie" https://www.mail-archive.com/bug-guix@gnu.org/msg14277.html However "guix import pypi httpie" runs for my version of guix. --000000000000375fb205d42723f1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,
I have encounter a issue with "= guix import pypi" :
```
guix import: warning: Fail= ed to extract file: PyPortfolioOpt-1.5.1.dist-info/METADATA from wheel.
= guix import: warning: Cannot guess requirements from source archive: no req= uires.txt file found.
```
## reproduce the bug

```
(base) guix import pypi =C2=A0PyPortfoli= oOpt
following redirection to `https://pypi.org/pypi/pyportfolioopt/json'...
Starting download of /tmp/guix-file.mwZdLg
From https://files.pythonh= osted.org/packages/97/c2/c7569f2773f3e942367e90dcca15a235af3d3330ac8abfcbfb= e67a8ba8dd/PyPortfolioOpt-1.5.1.tar.gz...
=C2=A0=E2=80=A6t-1.5.1.tar= .gz =C2=A056KiB =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 2.7MiB/s 0= 0:00 [##################] 100.0%

Starting download of /tmp/guix-file= .mHBgak
From https://files.pythonhosted.org/packages/90/98/39068= 35b783ba39cfc613c7b0c0fde9c758c729ff3406d45f1c2a1116961/PyPortfolioOpt-1.5.= 1-py3-none-any.whl...
=C2=A0=E2=80=A6.1-py3-none-any.whl =C2=A060KiB= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A02.1MiB/s 00:00 [##################] 100.= 0%
guix import: warning: Failed to extract file: PyPortfolioOpt-1.5.1.di= st-info/METADATA from wheel.
guix import: warning: Cannot guess requirem= ents from source archive: no requires.txt file found.
(package
=C2=A0= (name "python-pyportfolioopt")
=C2=A0 (version "1.5.1&qu= ot;)
=C2=A0 (source
=C2=A0 =C2=A0 (origin
=C2=A0 =C2=A0 =C2=A0 (me= thod url-fetch)
=C2=A0 =C2=A0 =C2=A0 (uri (pypi-uri "pyportfolioopt= " version))
=C2=A0 =C2=A0 =C2=A0 (sha256
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 (base32 "162d6jyvba0xk2blssbp52rrjqpjv011h988k150p1fg7x7nzbs9&q= uot;))))
=C2=A0 (build-system python-build-system)
=C2=A0 (home-page = "https://g= ithub.com/robertmartin8/PyPortfolioOpt")
=C2=A0 (synopsis "= ;Financial portfolio optimization in python")
=C2=A0 (description &= quot;Financial portfolio optimization in python")
=C2=A0 (license l= icense:expat))
(base) guix describe
Generation 220 Dec 27 2021 12:01:= 04 (current)
=C2=A0 guix 9bbbac6
=C2=A0 =C2=A0 repository URL: https://git.savannah.gnu.or= g/git/guix.git
=C2=A0 =C2=A0 branch: master
=C2=A0 =C2=A0 commit:= 9bbbac6783bcdace17d967e85c8ae8d14cbf1ef9
```
## ad= ditional information
This user has encountered a similar issu= e for "guix import pypi httpie"

However &quo= t;guix import pypi httpie" runs for my version of guix.
--000000000000375fb205d42723f1-- From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 29 12:09:43 2021 Received: (at 52836) by debbugs.gnu.org; 29 Dec 2021 17:09:43 +0000 Received: from localhost ([127.0.0.1]:50192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2cSM-00080X-Ut for submit@debbugs.gnu.org; Wed, 29 Dec 2021 12:09:43 -0500 Received: from mail-wm1-f50.google.com ([209.85.128.50]:40796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2cSK-00080H-Lm for 52836@debbugs.gnu.org; Wed, 29 Dec 2021 12:09:41 -0500 Received: by mail-wm1-f50.google.com with SMTP id j140-20020a1c2392000000b003399ae48f58so14770567wmj.5 for <52836@debbugs.gnu.org>; Wed, 29 Dec 2021 09:09:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=AzpFypWaKYnl9CHlUFArrRAGve+UHfTU5NiFcX7hT84=; b=P6OP58OmlEEMIVxPUEsAP38QXR0kbncRyhyv/dIg7JKONX+w+ZDepMAvovG8A1MjJO 4hY/lDtGy8fklA2dWBgjvjOML+lGI/+Gl2KvEIbWqBFCayELMY1VW00+V0muHJi3qNdu O0N2TxDSUg4jmhv1UIRfj2SaIIzYshuZtJes7IZSLBbVi0VX6bcfv6D4WHgGmSSENHVw n5bqCLfmBBzuWvInHyYTGQsRST1mOYo+iRkK1xTK6uaES0/1Jow2kzVbDL9yXYUDHmft 0gzGOnNPHB3qeiHUtWk75FExnx7oKxngvQAMNLHKyDRqMHeNekVDtFX5X8u27w1Igmmz 1SZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=AzpFypWaKYnl9CHlUFArrRAGve+UHfTU5NiFcX7hT84=; b=ojokxUsksgqFFvaYHhz0DwzB8vbfEoZynxygXiuBjldUe9id+M1SHLIjU2iHuEiiWq vFYt/hsipXznWUvVJOWpFlNpEjKcImKUmT6Kcxbrn9oib68yYtcp3Q1Qay40DQ+BX0w8 GrobvaZeiS4G45iUZ7S+LKciqqDLkUlHbTNRPYclQZXOdR5fwTQIr26K7LkX1BnEnaRj sxsiRmkxZ+Axf64OHiAD/cZFFZ/Oyt4lsUUKD/DN2L7EpVasowHYNwURIUwlB0bGtSdm zgRY3KqyiAEtHSDlil0BTrUsxPhCcoZMvPzhKYYPnRzg7+cEHvcJA7bk/gBo4V67dT1K U6vw== X-Gm-Message-State: AOAM532q09QTypr1uf3Ugc9cX+YTvgK3cDvt1EncUod8Sm19ho08F5E3 r21DeDbrFwe8dH6rS4pB6LuKq9zoBMY= X-Google-Smtp-Source: ABdhPJzPjfDVxr2iLf9+RPy4W/xoO2HElKEoUDo0piT4WGC/LuTkxQaE4mLotMSYlxdRceovvQJQSg== X-Received: by 2002:a05:600c:33a5:: with SMTP id o37mr22850239wmp.83.1640797774830; Wed, 29 Dec 2021 09:09:34 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id o10sm12743913wmq.31.2021.12.29.09.09.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Dec 2021 09:09:34 -0800 (PST) From: zimoun To: bbb ee , 52836@debbugs.gnu.org Subject: Re: bug#52836: "guix import pypi" fails with "Failed to extract file from wheel" and "no requires.txt file found" In-Reply-To: References: Date: Wed, 29 Dec 2021 18:03:59 +0100 Message-ID: <86y243ibr4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 52836 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, On Mon, 27 Dec 2021 at 22:10, bbb ee wrote: > ``` > guix import: warning: Failed to extract file: > PyPortfolioOpt-1.5.1.dist-info/METADATA from wheel. > guix import: warning: Cannot guess requirements from source archive: no > requires.txt file found. > ``` Is it a bug on Guix side or upstream? Because it seems that upstream does not provide metadata information, at least, as usually expected. Well, I have not yet inspected the PyPI package but it seems possible that it is incorrectly packaged with the Setuptools standard. > ## additional information > This user has encountered a similar issue for "guix import pypi httpie" > https://www.mail-archive.com/bug-guix@gnu.org/msg14277.html > > However "guix import pypi httpie" runs for my version of guix. Well, =E2=80=9Cguix import pypi httpie=E2=80=9D works for me. Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 31 06:00:52 2021 Received: (at 52836) by debbugs.gnu.org; 31 Dec 2021 11:00:52 +0000 Received: from localhost ([127.0.0.1]:55185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3FeW-0007se-BE for submit@debbugs.gnu.org; Fri, 31 Dec 2021 06:00:52 -0500 Received: from mail-io1-f42.google.com ([209.85.166.42]:40595) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3FeU-0007sM-DH for 52836@debbugs.gnu.org; Fri, 31 Dec 2021 06:00:50 -0500 Received: by mail-io1-f42.google.com with SMTP id q5so32396940ioj.7 for <52836@debbugs.gnu.org>; Fri, 31 Dec 2021 03:00:50 -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; bh=IB1HtQYEe4nKnZHMfefWhVTOHq3qv3q84aQCaKn7k/M=; b=ge7RuH80somS94PRBYCtQusROQUTzLc/aIN2+8tpQv5gx461ngIt5qbJFVBA/0n3Qv 53s6JeIxqWavKlraBBk7957NGVn/GJC0/zj+dYL7xxRTCgu3mwP3C9JwQ7KklTj5wEPc LRciuPx1HGaoYoe0OtttbvZUa4fqK6vJ9Bbx0lNkm203lXhCcXy8ydMLWNY2NxvXrDBo /yQOxBjhAtgDW4gH74Rq+T2xcV/STn6rURGpllgNcngLh7+/R9u/GAHUd1PKl5YkaU23 RV7Amsi1hO7VlvlZ6/+GmFvKeEBZF2cAGCtRo+ifPr2bjgDqLCuX8cnHKgh5j4z5RrxE k8Fg== 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; bh=IB1HtQYEe4nKnZHMfefWhVTOHq3qv3q84aQCaKn7k/M=; b=JvFwXUessCz4FNVA++EwnRtTFBZ3UwI6wJzG2i3J9eN9y5RzBT2bhdLLhekPD2UBM9 F/liDlcRvRQefayxupRSu3csp8Lai4gsQ2l4fdxUpLCzuEBKUGSnVidCMMjQkX/7LTOk 17HVnZEh0VlPnj4sH5BIEGA2tNJeS3hWfANysVB8YPIZzv5SXvL99bchVURgidQF4Rnp clQpfZSUIn8wUyzVo2YkNvMCNYMFkIUZ7a63LakEGNPETydqcvl7CNZOAQnTL8cML8Ei jSr0UWNMN62H2odFd//6ETGZYOOtkUyiic37hGmJ7Z204bA3PDiaDFIaQ624B34LgcOv +6Cg== X-Gm-Message-State: AOAM532w7uQHKpr6O/9Fd8SVoispTXoHHWE5ANAiy+aw799AQcShOoZP 2YhjEe5wxhymrK1pUq/mOL78qy8OO/k2GlENu78= X-Google-Smtp-Source: ABdhPJygTUJUO6twr35mrnQZXJYFk1yLos1gk98ySmohKYGj9yRFlohbHsnoV19/c1XKVmJvWmFgu36qRV2xTOzXjaQ= X-Received: by 2002:a5e:9905:: with SMTP id t5mr13103424ioj.16.1640948444666; Fri, 31 Dec 2021 03:00:44 -0800 (PST) MIME-Version: 1.0 References: <86y243ibr4.fsf@gmail.com> In-Reply-To: From: zimoun Date: Fri, 31 Dec 2021 12:00:33 +0100 Message-ID: Subject: Re: bug#52836: "guix import pypi" fails with "Failed to extract file from wheel" and "no requires.txt file found" To: bbb ee Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 52836 Cc: 52836@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, 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. If 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. Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 31 07:16:57 2021 Received: (at 52836) by debbugs.gnu.org; 31 Dec 2021 12:16:57 +0000 Received: from localhost ([127.0.0.1]:55357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3Gq9-000222-Av for submit@debbugs.gnu.org; Fri, 31 Dec 2021 07:16:57 -0500 Received: from mail-yb1-f176.google.com ([209.85.219.176]:44671) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3EwX-0006QK-T5 for 52836@debbugs.gnu.org; Fri, 31 Dec 2021 05:15:26 -0500 Received: by mail-yb1-f176.google.com with SMTP id i3so64776551ybh.11 for <52836@debbugs.gnu.org>; Fri, 31 Dec 2021 02:15:25 -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; bh=m95weSOsDMR8YAjX4dL0727wdl9OobakxnbKGlYb7VA=; b=NBV25Tr6nPWB7E3d8uA5DuwiqTi2O+NTIzbtGs0YQt/caYK3R+KdUECtPchEj0n5wz /yrX6EZzZWby2RnOvkkzrlztCQ4pSh75vBSzalObY5R65hn3pXnqqDytMhA/BGPYL2Rn jYj0iwTYIhJBiz0yY3Sehx6peF94H+V7ZDmjTdy/3CEUbHole6tDQ3s+TjnDul4GhC0+ ss71CcOqw3rn16Ax+sOlNTnm5DsGf8l1Zp48OHmHm3eitW1Mpc7ha0HwzuZ5e1mi+rtP 76/Qd26Ds1nedNoquoY/EhnFtnBLttKbgJNLcQ0Ev87NlWFOlLGSEo+KTRETOoffehdV 0Rmw== 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; bh=m95weSOsDMR8YAjX4dL0727wdl9OobakxnbKGlYb7VA=; b=Ig3da7AhzRGNFh1881SR90b4K26IgUF+k/54eycZFJjrhockv7/cbdssr1645UVhwr bQtkUXtFgoblHGZFj48omxHg4cQPAlBMPC8+J3lJ0ialssBuLcXZs+uc97Z0dCNs1MZK i1w01x8Es6wkiJKoPyzpvTWF3osKPs/GDEVugGiUWIjbchN6VAzivfrOjXhyK4aoZ+R0 I8hJCfamfR/jNoZCUs+i8LosrU22dLxJaBRDv3snFR3Tex/6PUkL4N+/eiTHUMmCOpwY eYRJvKyc+SiA2cigkJ0EMStChv6opzV6IdACJkc7IsTLjY3oS2oihbZi/yo9cQnyFoT0 ceFA== X-Gm-Message-State: AOAM532jEeKFGJUjQhw9gVXfTY5PuU1/VwkUpWDgFKwxKHjWB33r19Ze RGduSIVHi4umowx0H+eoDtZm8cES7BabdCrZ3u2pG6y69tc= X-Google-Smtp-Source: ABdhPJzJS7317SPhvl6q4gGNttJuFI1570aQPy14uo5R1z2ZhpihPnXg3YooTNHZDfRF9hd1aqXCOnbbJ3UT23D+Pzk= X-Received: by 2002:a25:2d6:: with SMTP id 205mr34717105ybc.425.1640945720203; Fri, 31 Dec 2021 02:15:20 -0800 (PST) MIME-Version: 1.0 References: <86y243ibr4.fsf@gmail.com> In-Reply-To: <86y243ibr4.fsf@gmail.com> From: bbb ee Date: Fri, 31 Dec 2021 11:15:09 +0100 Message-ID: Subject: Re: bug#52836: "guix import pypi" fails with "Failed to extract file from wheel" and "no requires.txt file found" To: zimoun Content-Type: multipart/alternative; boundary="000000000000bf9dff05d46e72ce" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 52836 X-Mailman-Approved-At: Fri, 31 Dec 2021 07:16:55 -0500 Cc: 52836@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 (-) --000000000000bf9dff05d46e72ce Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > 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. If other python package installer can run, I suppose the upstream is correct. Unless Guix is not as powerful as other python package installers, and cannot work for certain type of PyPi packages. In this case, can this be considered an improvement to be made? Le mer. 29 d=C3=A9c. 2021 =C3=A0 18:09, zimoun a= =C3=A9crit : > Hi, > > On Mon, 27 Dec 2021 at 22:10, bbb ee wrote: > > > ``` > > guix import: warning: Failed to extract file: > > PyPortfolioOpt-1.5.1.dist-info/METADATA from wheel. > > guix import: warning: Cannot guess requirements from source archive: no > > requires.txt file found. > > ``` > > Is it a bug on Guix side or upstream? Because it seems that upstream > does not provide metadata information, at least, as usually expected. > > Well, I have not yet inspected the PyPI package but it seems possible > that it is incorrectly packaged with the Setuptools standard. > > > > ## additional information > > This user has encountered a similar issue for "guix import pypi httpie" > > https://www.mail-archive.com/bug-guix@gnu.org/msg14277.html > > > > However "guix import pypi httpie" runs for my version of guix. > > Well, =E2=80=9Cguix import pypi httpie=E2=80=9D works for me. > > > Cheers, > simon > --000000000000bf9dff05d46e72ce Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> Is it a bug on Guix side or upstream?=C2=A0 Beca= use it seems that upstream
> does not provide metadata information, at least, as usually expected.<= /div>

`pip <= span class=3D"gmail-n">install PyPortfolioOp= t`, `poetry add PyPortfolioOpt` runs for me. If other p= ython package installer can run, I suppose the upstream is correct. Unless = Guix is not as powerful as other python package installers, and cannot work= for certain type of PyPi packages. In this case, can this be considered an= improvement to be made?

Le=C2=A0mer. 29 d=C3=A9c. 2021 =C3=A0=C2=A018= :09, zimoun <zimon.toutoune@= gmail.com> a =C3=A9crit=C2=A0:
Hi,

On Mon, 27 Dec 2021 at 22:10, bbb ee <blasforr@gmail.com> wrote:

> ```
> guix import: warning: Failed to extract file:
> PyPortfolioOpt-1.5.1.dist-info/METADATA from wheel.
> guix import: warning: Cannot guess requirements from source archive: n= o
> requires.txt file found.
> ```

Is it a bug on Guix side or upstream?=C2=A0 Because it seems that upstream<= br> does not provide metadata information, at least, as usually expected.

Well, I have not yet inspected the PyPI package but it seems possible
that it is incorrectly packaged with the Setuptools standard.


> ## additional information
> This user has encountered a similar issue for "guix import pypi h= ttpie"
> https://www.mail-archive.com/bug-gui= x@gnu.org/msg14277.html
>
> However "guix import pypi httpie" runs for my version of gui= x.

Well, =E2=80=9Cguix import pypi httpie=E2=80=9D works for me.


Cheers,
simon
--000000000000bf9dff05d46e72ce-- From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 08 05:22:30 2022 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 To: bbb ee Subject: Re: bug#52836: "guix import pypi" fails with "Failed to extract file from wheel" and "no requires.txt file found" 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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 52836-done Cc: 52836-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, 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 From unknown Thu Jun 19 16:23:25 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:06 +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