From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CPcnKcWg0WBqGwAAgWs5BA (envelope-from ) for ; Tue, 22 Jun 2021 10:35:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UtLHJMWg0WByIwAAbx9fmQ (envelope-from ) for ; Tue, 22 Jun 2021 08:35:17 +0000 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 B6B681EC36 for ; Tue, 22 Jun 2021 10:35:16 +0200 (CEST) Received: from localhost ([::1]:45522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvbsJ-0004OP-8M for larch@yhetil.org; Tue, 22 Jun 2021 04:35:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvbs6-0004OH-2I for bug-guix@gnu.org; Tue, 22 Jun 2021 04:35:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54398) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvbs5-0005sp-Na for bug-guix@gnu.org; Tue, 22 Jun 2021 04:35:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lvbs5-0006ue-Ll for bug-guix@gnu.org; Tue, 22 Jun 2021 04:35:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49168: =?UTF-8?Q?=E2=80=98guix?= import =?UTF-8?Q?pypi=E2=80=99?= misses package dependencies Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 22 Jun 2021 08:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49168 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 49168@debbugs.gnu.org Received: via spool by 49168-submit@debbugs.gnu.org id=B49168.162435088226541 (code B ref 49168); Tue, 22 Jun 2021 08:35:01 +0000 Received: (at 49168) by debbugs.gnu.org; 22 Jun 2021 08:34:42 +0000 Received: from localhost ([127.0.0.1]:37711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvbrh-0006tw-ED for submit@debbugs.gnu.org; Tue, 22 Jun 2021 04:34:42 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:27211) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvbrd-0006tj-0S for 49168@debbugs.gnu.org; Tue, 22 Jun 2021 04:34:36 -0400 Received: from nijino.local (62-116-34-49.adsl.highway.telekom.at [62.116.34.49]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4G8KSg0wzhz3xlt; Tue, 22 Jun 2021 10:34:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1624350867; bh=6hsXAY3DO2jfoimu1nkyNLw7wwjpriq8GEvjD7mgMKA=; h=Subject:From:To:Date:In-Reply-To:References; b=b8RJDCG6xiKY+atwGAGruuz2fLhvrycmqdmKDbVkXeQvwJzPSj7mma8HvSxXGhOwj k/5GrrDBDT5QgoYLLYqNqd2hbgzaebJtmfjqtW+lzHgjUpGlCiqYvlKTriLgSzKcPL Rix3LKO+sb6CxZ/wFo5WdN9dXt2Os321fTpVuLKg= Message-ID: <992e746ed43c5ae7def7b35996ed44743fef85bf.camel@student.tugraz.at> From: Leo Prikler Date: Tue, 22 Jun 2021 10:34:26 +0200 In-Reply-To: <877dim5psf.fsf@inria.fr> References: <877dim5psf.fsf@inria.fr> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624350917; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: 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=6hsXAY3DO2jfoimu1nkyNLw7wwjpriq8GEvjD7mgMKA=; b=sYqb0ZNR4qYK5jFmUzoobLT/SorFOWrfgsgeZBgNrrTLhDaXmhBfOGN4a2mWnKfL0SYEZe EE7DhSiF8uZiQMGD8p4Q/sQQUk4DzKwnLMi0nkmryM+SMF3jf6QHffX5dggQfdr3OZqPiO BeGngA8n41Jlcu9TmlfF/e9a8Nu1vleZLH/yjBInXZHcRjoJIHuQVymTVke/PNs+LUZ7Cp k9vaxRBmuL7mPpAQdWoXMI/pYovK/gGNyiH2q9RPsM9XhyJQBb+VpAvvJluOkAferduUP4 rLd9aokl6Q3y/Ljb+Gq45Ggi6e3jBtTLIiuNIZSlXvFTKCiKfNFUEq7GYvDp2Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624350917; a=rsa-sha256; cv=none; b=cekP2bu+Ffh0kUH0UToqLeP6SDi5CwfrfAOY2X85vGa5uaHv1QfduDZIe8OCnTFrUOrP48 XirUpcw4LDqHGglYOACqUjcSQoLoBQR5Km0MjNV9Ij/Ukyjc9hg616BOsL+jKUvOLDNQFk Rj7qKXd1m+ul63ZKhWPhjVJeHjVJm7KrJcFo4I4z2hYktEcOst64EwmM4F7TBs14qCT80S rABJEUXetkZIZmjaVQEkhpTylYnoXTcdIT7eyFdjRoYXsLcip0v0h2q4JSqOCQuEmJjCRA MKGgPq9Pt45sLZzM930cBl2pr8KyPNyrY8TSwNhaBiVLav24zAzMSJpd1cT4zg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=b8RJDCG6; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=b8RJDCG6; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: B6B681EC36 X-Spam-Score: -1.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: bKuDxjDnQLBd Am Dienstag, den 22.06.2021, 09:20 +0200 schrieb Ludovic Courtès: > Hi! > > ‘guix import pypi -r django-import-export’ does not include all the > inputs: > > --8<---------------cut here---------------start------------->8--- > $ guix build -L /tmp/mods python-django-import-export > > [...] > > starting phase `build' > running "python setup.py" with command "build" and parameters () > Download error on https://pypi.org/simple/setuptools_scm/: [Errno -2] > Name or service not known -- Some packages may not be found! > Download error on https://pypi.org/simple/setuptools-scm/: [Errno -2] > Name or service not known -- Some packages may not be found! > Couldn't find index page for 'setuptools_scm' (maybe misspelled?) > Download error on https://pypi.org/simple/: [Errno -2] Name or > service not known -- Some packages may not be found! > No local packages or working download links found for setuptools_scm > Traceback (most recent call last): > File "", line 1, in > File "setup.py", line 5, in > setup( > File "/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python- > 3.8.2/lib/python3.8/site-packages/setuptools/__init__.py", line 144, > in setup > _install_setup_requires(attrs) > File "/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python- > 3.8.2/lib/python3.8/site-packages/setuptools/__init__.py", line 139, > in _install_setup_requires > dist.fetch_build_eggs(dist.setup_requires) > File "/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python- > 3.8.2/lib/python3.8/site-packages/setuptools/dist.py", line 716, in > fetch_build_eggs > resolved_dists = pkg_resources.working_set.resolve( > File "/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python- > 3.8.2/lib/python3.8/site-packages/pkg_resources/__init__.py", line > 780, in resolve > dist = best[req.key] = env.best_match( > File "/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python- > 3.8.2/lib/python3.8/site-packages/pkg_resources/__init__.py", line > 1065, in best_match > return self.obtain(req, installer) > File "/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python- > 3.8.2/lib/python3.8/site-packages/pkg_resources/__init__.py", line > 1077, in obtain > return installer(requirement) > File "/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python- > 3.8.2/lib/python3.8/site-packages/setuptools/dist.py", line 786, in > fetch_build_egg > return cmd.easy_install(req) > File "/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python- > 3.8.2/lib/python3.8/site- > packages/setuptools/command/easy_install.py", line 673, in > easy_install > raise DistutilsError(msg) > distutils.errors.DistutilsError: Could not find suitable distribution > for Requirement.parse('setuptools_scm') > command "python" "-c" "import setuptools, > tokenize;__file__='setup.py';f=getattr(tokenize, 'open', > open)(__file__);code=f.read().replace('\\r\\n', > '\\n');f.close();exec(compile(code, __file__, 'exec'))" "build" > failed with status 1 > builder for `/gnu/store/74ph75dfy1i9hrx9n327j32ma2zv4hhd-python- > tablib-3.0.0.drv' failed with exit code 1 > build of /gnu/store/74ph75dfy1i9hrx9n327j32ma2zv4hhd-python-tablib- > 3.0.0.drv failed > View build log at > '/var/log/guix/drvs/74/ph75dfy1i9hrx9n327j32ma2zv4hhd-python-tablib- > 3.0.0.drv.bz2'. > cannot build derivation `/gnu/store/6xk0jk0qnjsazqgjihmpafsx3wfmxjf0- > python-django-import-export-2.5.0.drv': 1 dependencies couldn't be > built > guix build: error: build of > `/gnu/store/6xk0jk0qnjsazqgjihmpafsx3wfmxjf0-python-django-import- > export-2.5.0.drv' failed > $ cat /tmp/mods/django.scm > (define-module (django) > #:use-module (guix) > #:use-module (guix build-system python) > #:use-module (gnu packages python) > #:use-module (gnu packages python-xyz) > #:use-module (gnu packages django) > #:use-module ((guix licenses) #:prefix license:)) > > (define-public python-tablib > (package > (name "python-tablib") > (version "3.0.0") > (source > (origin > (method url-fetch) > (uri (pypi-uri "tablib" version)) > (sha256 > (base32 > "03f1z6jq6rf67gwhbm9ma4rydm8h447a5nh5lcs5l8jg8l4aqg7q"))) > ) > (build-system python-build-system) > (home-page "https://tablib.readthedocs.io") > (synopsis > "Format agnostic tabular data library (XLS, JSON, YAML, CSV)") > (description > "Format agnostic tabular data library (XLS, JSON, YAML, CSV)") > (license license:expat))) > > (define-public python-django-import-export > (package > (name "python-django-import-export") > (version "2.5.0") > (source > (origin > (method url-fetch) > (uri (pypi-uri "django-import-export" version)) > (sha256 > (base32 > "0j0gsj18bkkmbn262qj2syla80vncvqn49bllwxvcgw0zhxh1763"))) > ) > (build-system python-build-system) > (propagated-inputs > `(("python-diff-match-patch" > ,python-diff-match-patch) > ("python-django" ,python-django) > ("python-tablib" ,python-tablib))) > (home-page > "https://github.com/django-import-export/django-import-export") > (synopsis > "Django application and library for importing and exporting > data with included admin integration.") > (description > "Django application and library for importing and exporting > data with included admin integration.") > (license license:bsd-3))) > > --8<---------------cut here---------------end--------------->8--- > > Here, some of tablib’s dependencies are missing; the same problem > seems > to happen with python-django-import-export itself. > > Are we failing to parse some of the PyPI metadata? I don't think so, rather it appears as though the requires.txt is somehow malformed or ill-suited for importing. It basically marks all inputs as optional. Perhaps we could instruct the importer to emit comments for optional inputs like so ;; Optional inputs by section ;; -- [SECTION] ;; ("python-some-package" ,python-some-package) ;; ("python-some-other-package" ,python-some-other-package) Maybe add a command line switch to toggle these comments or a way of assuming some section, e.g. [cli] to be the thing we want to build for a package. Regards, Leo