unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: help-guix <help-guix@gnu.org>
Subject: failing to package attrs-strict for swh.model
Date: Tue, 23 Jun 2020 22:54:34 +0200	[thread overview]
Message-ID: <86k0zxqz91.fsf@gmail.com> (raw)

Dear,

I am trying to package "swh.model" which is a CLI tool developed by
Software Heritage.  It allows to compute SWHID which is their internal
hash tag.  This package is on PyPI, so I did:

   guix import pypi -r swh.model

which returns 2 packages: "python-attrs-srtict" and "swh.model".


Aside some minor tweaks about the license, synopsis and description I
added them to "gnu/packages/python-xyz.scm" and then I simply have tried
to build:

  ./pre-inst-env guix build python-attrs-strict

Well, the first unexpected thing is an 404 error:

--8<---------------cut here---------------start------------->8---
building /gnu/store/r6dgvrq486d8hdii9szz2filq85nbwjx-attrs-strict-0.1.0.tar.gz.drv...

Starting download of /gnu/store/9p0baqs1386gv5hhzrv5yrcj35klxpfi-attrs-strict-0.1.0.tar.gz
From https://files.pythonhosted.org/packages/source/a/attrs-strict/attrs-strict-0.1.0.tar.gz...
download failed "https://files.pythonhosted.org/packages/source/a/attrs-strict/attrs-strict-0.1.0.tar.gz" 404 "Not Found"

Starting download of /gnu/store/9p0baqs1386gv5hhzrv5yrcj35klxpfi-attrs-strict-0.1.0.tar.gz
From https://ci.guix.gnu.org/file/attrs-strict-0.1.0.tar.gz/sha256/0nldyv053xiv9aaysjszgisi9d9d87f5l2jf3rhl3xm9c9spar96...
download failed "https://ci.guix.gnu.org/file/attrs-strict-0.1.0.tar.gz/sha256/0nldyv053xiv9aaysjszgisi9d9d87f5l2jf3rhl3xm9c9spar96" 404 "Not Found"

Starting download of /gnu/store/9p0baqs1386gv5hhzrv5yrcj35klxpfi-attrs-strict-0.1.0.tar.gz
From https://tarballs.nixos.org/sha256/0nldyv053xiv9aaysjszgisi9d9d87f5l2jf3rhl3xm9c9spar96...
download failed "https://tarballs.nixos.org/sha256/0nldyv053xiv9aaysjszgisi9d9d87f5l2jf3rhl3xm9c9spar96" 404 "Not Found"

Starting download of /gnu/store/9p0baqs1386gv5hhzrv5yrcj35klxpfi-attrs-strict-0.1.0.tar.gz
From https://archive.softwareheritage.org/api/1/content/sha256:2665757562a9f641611e4e0a5adc412db514757c5f4bed954a3bf651c0f68d5a/raw/...
download failed "https://archive.softwareheritage.org/api/1/content/sha256:2665757562a9f641611e4e0a5adc412db514757c5f4bed954a3bf651c0f68d5a/raw/" 404 "Not Found"
failed to download "/gnu/store/9p0baqs1386gv5hhzrv5yrcj35klxpfi-attrs-strict-0.1.0.tar.gz" from "https://files.pythonhosted.org/packages/source/a/attrs-strict/attrs-strict-0.1.0.tar.gz"
builder for `/gnu/store/r6dgvrq486d8hdii9szz2filq85nbwjx-attrs-strict-0.1.0.tar.gz.drv' failed to produce output path `/gnu/store/9p0baqs1386gv5hhzrv5yrcj35klxpfi-attrs-strict-0.1.0.tar.gz'
build of /gnu/store/r6dgvrq486d8hdii9szz2filq85nbwjx-attrs-strict-0.1.0.tar.gz.drv failed
View build log at '/var/log/guix/drvs/r6/dgvrq486d8hdii9szz2filq85nbwjx-attrs-strict-0.1.0.tar.gz.drv.bz2'.
cannot build derivation `/gnu/store/yn1vi5ank86870xc75w82pwbpahgv4vx-python-attrs-strict-0.1.0.drv': 1 dependencies couldn't be built
guix build: error: build of `/gnu/store/yn1vi5ank86870xc75w82pwbpahgv4vx-python-attrs-strict-0.1.0.drv'failed
--8<---------------cut here---------------end--------------->8---

What do I miss?

Then, from the PyPI webpage, I download the tarball by hand (wget) and
then I run:

    /pre-inst-env guix build python-attrs-strict \
          --with-source=python-attrs-strict=attrs_strict-0.1.0.tar.gz

which fails at the check phase.  Well, I have added as 'native-inputs'
the packages "python-pytest" and "python-pluggy".  And I add these
lines:

--8<---------------cut here---------------start------------->8---
    (arguments
     `(#:phases (modify-phases %standard-phases
                  (replace 'check
                    (lambda _
                      (invoke "pytest")
                      #t)))))
--8<---------------cut here---------------end--------------->8---

But the tests is still failing with the same message at this end:

--8<---------------cut here---------------start------------->8---
AttributeError: type object 'Callable' has no attribute '_abc_registry'
--8<---------------cut here---------------end--------------->8---

Well, I am not a Python packager expert and I do not know how to
debug. Advices welcome. :-)


All the best,
simon


             reply	other threads:[~2020-06-23 21:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-23 20:54 zimoun [this message]
2020-06-24 20:10 ` failing to package attrs-strict for swh.model Marius Bakke
2020-06-25 12:59   ` zimoun
2020-06-25 13:04     ` Efraim Flashner
2020-06-25 13:29       ` zimoun
2020-06-25 14:42     ` Marius Bakke
2020-06-25 15:07       ` zimoun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86k0zxqz91.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).