From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CLf8Kuyf9F43QgAA0tVLHw (envelope-from ) for ; Thu, 25 Jun 2020 13:00:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id ePKRJuyf9F5zRwAAbx9fmQ (envelope-from ) for ; Thu, 25 Jun 2020 13:00:28 +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 F09A89403D4 for ; Thu, 25 Jun 2020 13:00:27 +0000 (UTC) Received: from localhost ([::1]:58588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joRUP-0002he-Mg for larch@yhetil.org; Thu, 25 Jun 2020 09:00:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joRU0-0002fB-9M for help-guix@gnu.org; Thu, 25 Jun 2020 09:00:00 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:38007) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1joRTy-0004RL-95; Thu, 25 Jun 2020 08:59:59 -0400 Received: by mail-wr1-x42c.google.com with SMTP id z13so5746329wrw.5; Thu, 25 Jun 2020 05:59:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=Ly0SYA+vrerJo5OYCgMfqqdWVkt0Lkf85qGBG+nSD9c=; b=JRNeYGJd9hw9rxgNY9D18mf45W0MGKR9f2AVvfy3ABvSEUZbyBl91eBbooGJJLu3/q 6cuEobpLkIAQALt8KFvOX2PQsiidAI/Eiacf0ANZxE1b9V+KaHw9HnMmA9XhLhts4OyC lVZIGRIfP+4zNZ7jDMrh9fz+jgjT/hrUgN8vVsJ2Va0AphqDK1i8qv9Xi9cnhxwBRnks r2cIQWWO3Jyp8EDasX72Nr/apL8CF5epqkRJO/e1mpsu8D97jTXkifzcxKWdqLnnEHLY IN2zDVEmqO6bKvkjQTEDJe/zgZCFhAPg/lCwceUbDIdV5y5NkhbPJzPCjwENCPn8CYy1 fiQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=Ly0SYA+vrerJo5OYCgMfqqdWVkt0Lkf85qGBG+nSD9c=; b=Seb3+OsZFNvFnSO1SiB6Vy27w8wslB0HV+zzhx/yeE85TfbK2in+ilA9VIDUwx6Oez 7TCd4cz6XVJwtCYjjpivAPI8POWZ1W7uAPCO63i+GGoPJb8rlUgIXsQQtsb1LJ9iD/Pf WFGVIJFQQ2yxRS+E0FnlX3/uay0u+ZO3m0IA2xXic+2zl++8SYoT3c8rrSOIJPgmGhsf Kb55GpvznCxg8WQExb43Hxvo48t9b8pRwHTORqJpB0t93ecEZ8zSpyZcPHQulRkb/FNf RE3UJOz8XJHZh/XOobrnK0/a/YtcrW1imHlW/l4KPl9CdPC8plYXnNOjADqcex9Hg1TG Dh2Q== X-Gm-Message-State: AOAM532LEB07YarqmNWNu6f7HCtrQZr3f16IbqmtdYx3721yMfAi86Sr nREQl2uxfYrfJ6/SlMYM3fbatJ1lNAs= X-Google-Smtp-Source: ABdhPJyqBvfklFoNJAYnJbbk0+sFbQUqlYfel/yLWRzrSnZiWwlB3AI+/2DP755K3WRF+hVyTR1cPA== X-Received: by 2002:adf:e401:: with SMTP id g1mr36875651wrm.57.1593089994837; Thu, 25 Jun 2020 05:59:54 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id c143sm13912208wmd.1.2020.06.25.05.59.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 05:59:54 -0700 (PDT) From: zimoun To: Marius Bakke , help-guix Subject: Re: failing to package attrs-strict for swh.model In-Reply-To: <87imfg6x8x.fsf@gnu.org> References: <86k0zxqz91.fsf@gmail.com> <87imfg6x8x.fsf@gnu.org> Date: Thu, 25 Jun 2020 14:59:53 +0200 Message-ID: <86imffb8s6.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42c.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=JRNeYGJd; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: jJpEKKpGiXVa Hi Marius, Thank you for the help. On Wed, 24 Jun 2020 at 22:10, Marius Bakke wrote: > I notice the file name in this command is "attrs_strict". Probably the > importer picked the wrong file name and you need to change it to > (pypi-uri "attrs_strict" version). Thanks! Stupid mistake I did. :-) > Can you paste the full package definition? Well, I have tried with and without the 'arguments'. --8<---------------cut here---------------start------------->8--- (define-public python-attrs-strict (package (name "python-attrs-strict") (version "0.1.0") (source (origin (method url-fetch) (uri (pypi-uri "attrs_strict" version)) (sha256 (base32 "0nldyv053xiv9aaysjszgisi9d9d87f5l2jf3rhl3xm9c9spar96")))) (build-system python-build-system) (native-inputs `(("python-pytest" ,python-pytest) ("python-pluggy" ,python-pluggy))) (propagated-inputs `(("python-attrs" ,python-attrs) ("python-typing" ,python-typing))) (arguments `(#:phases (modify-phases %standard-phases (replace 'check (lambda _ (invoke "pytest") #t))))) (home-page "https://github.com/bloomberg/attrs-strict") (synopsis "Runtime validators for attrs") (description "Package that contains runtime validation for @code{attrs} data classes based on the types existing in the typing module.") (license license:asl2.0))) --8<---------------cut here---------------end--------------->8--- Then the Traceback is: --8<---------------cut here---------------start------------->8--- starting phase `check' Traceback (most recent call last): File "/gnu/store/3bk454z353a42l1l4yaxa6lrl3dh24mv-python-pytest-5.3.5/bin/.pytest-real", line 11, in load_entry_point('pytest==5.3.5', 'console_scripts', 'pytest')() File "/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/lib/python3.8/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point return ep.load() File "/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2443, in load return self.resolve() File "/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2449, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/gnu/store/3bk454z353a42l1l4yaxa6lrl3dh24mv-python-pytest-5.3.5/lib/python3.8/site-packages/pytest/__init__.py", line 6, in from _pytest.assertion import register_assert_rewrite File "/gnu/store/3bk454z353a42l1l4yaxa6lrl3dh24mv-python-pytest-5.3.5/lib/python3.8/site-packages/_pytest/assertion/__init__.py", line 5, in from typing import Optional File "/gnu/store/lnbh9ks047sw41b6dc3zk6z1qy4b8cv0-python-typing-3.7.4.1/lib/python3.8/site-packages/typing.py", line 1357, in class Callable(extra=collections_abc.Callable, metaclass=CallableMeta): File "/gnu/store/lnbh9ks047sw41b6dc3zk6z1qy4b8cv0-python-typing-3.7.4.1/lib/python3.8/site-packages/typing.py", line 1005, in __new__ self._abc_registry = extra._abc_registry AttributeError: type object 'Callable' has no attribute '_abc_registry' command "pytest" failed with status 1 --8<---------------cut here---------------end--------------->8--- And without the 'replace' i.e., "python setup.py test", the Traceback is: --8<---------------cut here---------------start------------->8--- starting phase `check' running "python setup.py" with command "test" and parameters () Traceback (most recent call last): File "", line 1, in File "setup.py", line 14, in setup(long_description=long_description) File "/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/lib/python3.8/site-packages/setuptools/__init__.py", line 145, in setup return distutils.core.setup(**attrs) File "/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/lib/python3.8/distutils/core.py", line 134, in setup [...] import typing File "/gnu/store/lnbh9ks047sw41b6dc3zk6z1qy4b8cv0-python-typing-3.7.4.1/lib/python3.8/site-packages/typing.py", line 1357, in class Callable(extra=collections_abc.Callable, metaclass=CallableMeta): File "/gnu/store/lnbh9ks047sw41b6dc3zk6z1qy4b8cv0-python-typing-3.7.4.1/lib/python3.8/site-packages/typing.py", line 1005, in __new__ self._abc_registry = extra._abc_registry AttributeError: type object 'Callable' has no attribute '_abc_registry' 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'))" "test" failed with status 1 --8<---------------cut here---------------end--------------->8--- Well, what I want at the end is the PyPI package "swh.model". Thanks, simon