Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #13151

python3-mastodon fails CI due to bad magic?

Path csiph.com!weretis.net!feeder8.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Craig Small <csmall@debian.org>
Newsgroups linux.debian.maint.python
Subject python3-mastodon fails CI due to bad magic?
Date Thu, 28 Jan 2021 11:50:02 +0100
Message-ID <BCd2a-uy-11@gated-at.bofh.it> (permalink)
X-Original-To debian-python <debian-python@lists.debian.org>
X-Mailbox-Line From debian-python-request@lists.debian.org Thu Jan 28 10:48:09 2021
Old-Return-Path <csmall@debian.org>
X-Amavis-Spam-Status No, score=-5.201 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, LDO_WHITELIST=-5] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -3.5
X-Greylist delayed 527 seconds by postgrey-1.36 at bendel; Thu, 28 Jan 2021 10:47:56 UTC
Dkim-Signature v=1; a=rsa-sha256; c=simple/simple; d=debian.org; s=debian1.csmall.user; t=1611830345; bh=NGsoFE2YURgKG4fVjLlgll6u2yyRVcqgdwzgVY6Sz+I=; h=From:Date:Subject:To:From; b=gGIgwUlTBzI1gjvq5mshrvlP2GRZstlJwoVxGxJkv3cAdjraRlxP9xilBqEGcw7bI MxvuQHGgFb4cZPRgqJjj8APjXNhxmpJHxnw5CUYCEaFgisOMsEUhvjrz+C5kPnm5IX srVEIKMWVsg2kFwrpl2diFfxk67TZHqQo01Lv0rk=
X-Gm-Message-State AOAM533clQYSOXwFXVRT/ojoJwjHMtfpkDr72RCHjwNLzDkcCAZKQDGm iezx9qcTha21JH2CXGWBKx5xS9h3gwyACwVyUpeqaQ==
X-Google-SMTP-Source ABdhPJw5rOSW18hVfj8knCyccIEwvkcj0qqysXOcc9Nnq5ZrYsYlsRJNsbH7WVAaiVS0xkAJ0m5YdZ19V1mE1hQ8j3Y=
X-Received by 2002:a37:445:: with SMTP id 66mr14564266qke.429.1611830343736; Thu, 28 Jan 2021 02:39:03 -0800 (PST)
MIME-Version 1.0
X-Gmail-Original-Message-ID <CALy8Cw5W8pq=Nw3AOZ9zKH+w+rYH7s20kzdkaku2-w1ftP3TJg@mail.gmail.com>
Content-Type multipart/alternative; boundary="00000000000013bb0c05b9f37f3f"
X-Mailing-List <debian-python@lists.debian.org> archive/latest/18928
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/CALy8Cw5W8pq=Nw3AOZ9zKH+w+rYH7s20kzdkaku2-w1ftP3TJg@mail.gmail.com
Approved robomod@news.nic.it
Lines 66
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Thu, 28 Jan 2021 21:38:52 +1100
X-Original-Message-ID <CALy8Cw5W8pq=Nw3AOZ9zKH+w+rYH7s20kzdkaku2-w1ftP3TJg@mail.gmail.com>
Xref csiph.com linux.debian.maint.python:13151

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi,
I'm trying to understand why python3-mastodon fails the unit tests.

An example is at [1] and it seems that importing magic is enough to trigger
it. The compat line is to handle both python3-magic and a libmagic module
both wanting magic.

Is this a cpython thing? I'm not sure what I can do to fix this.

  File
"/tmp/reprotest.7a4W2G/build-experiment-1/build-experiment-1/.pybuild/cpython3_3.9_mastodon/build/mastodon/Mastodon.py",
line 55, in <module>
    import magic
  File "/usr/lib/python3/dist-packages/magic/__init__.py", line 361, in
<module>
    add_compat(globals())
  File "/usr/lib/python3/dist-packages/magic/__init__.py", line 325, in
add_compat
    from magic import compat
  File "/usr/lib/python3/dist-packages/magic/compat.py", line 61, in
<module>
    _open = _libraries['magic'].magic_open
  File "/usr/lib/python3.9/ctypes/__init__.py", line 387, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python3.9/ctypes/__init__.py", line 392, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: python3.9: undefined symbol: magic_open





1: https://salsa.debian.org/python-team/packages/mastodon/-/jobs/1312190

Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

python3-mastodon fails CI due to bad magic? Craig Small <csmall@debian.org> - 2021-01-28 11:50 +0100
  Re: python3-mastodon fails CI due to bad magic? Emmanuel Arias <eamanu@yaerobi.com> - 2021-01-28 17:10 +0100
    Re: python3-mastodon fails CI due to bad magic? Craig Small <csmall@debian.org> - 2021-01-28 21:40 +0100

csiph-web