Path: csiph.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!news.dns-netz.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod From: Emmanuel Arias Newsgroups: linux.debian.maint.python Subject: Re: python3-mastodon fails CI due to bad magic? Date: Thu, 28 Jan 2021 17:10:02 +0100 Message-ID: References: X-Original-To: =?UTF-8?Q?H=C3=A5vard_Flaget_Aasen?= X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Jan 28 16:08:33 2021 Old-Return-Path: X-Amavis-Spam-Status: No, score=-5 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .yaerobi. - helo: .mail-wr1-x433.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yaerobi-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q2Vv/yyT6WD5PsCJ677Pq6g+kKhd3RaJepeScqQ4NMo=; b=f6ecy3xqKqyY1IL8HxzHW5H/lG/cQPbjc2T/gOVooqd/sr6hOKbI91j1cGcD2ch7BU eQPK+8kc0nTM1pK4AVpdHaWIjVhFFNcI+WVMo3UX/ltG9PY3+lHxK0lfD0pS0IzTgrcD tJAmM8vrrIKZ7WZQX30jRB1FAjwpdTwUFHzgewHUCKfPHfpN+vW3Da7wiVkRO7YNSXJN MLhaEmwLnjlDgY6ioHVM3zxWyHeQAK0zx1jT/2rAIRZSZn09edFhMJBHViZyQsEWdknQ sbugbQFl4v/i0P0JUhwbFkHjTSNhna5rD5FbuhUdZpQNMTjnHdJaFjDgSzdZPHGXr+DZ xWpA== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Q2Vv/yyT6WD5PsCJ677Pq6g+kKhd3RaJepeScqQ4NMo=; b=M8XP1NHwjh8nBbapjbTHGMGAvxLFq4J1knyPSS0sXmSGzE3WXmFCCqNumTtrczXHRj xZiwIHDtoUUiU4plIk3QGEUMLKNTI07sEoeK55motTVMfDc6nB2qg+57C0VGIQJMwr56 57MwkrDTxLMacBpjcfstPhaCAxXPNL+C/xNr2hhoSUlmFYvPjs84SjEEfGCsP9OUY+m7 NxPLEl8uUfYiv7EvAeCKvUxxXNz7Cxw7iskqWgfjtfWI5hfBz58FQhh2P9ScDSAEIZ1z jXgFuH1xa1XIXNBbH5pJ/dkanS0hOHcfweviX6efx8gdsh0MkihIoncbJGrbpQU+ESJB rmAQ== X-Gm-Message-State: AOAM533+zo8GgIUeaOvqyCqTGMvZKfWoA1FlC4vLaVD8MmiaweirIOV8 pSjMQaSZeJKbJQBayXGWg7vyO3fzWJ6RmibjpGJI6Q== X-Google-SMTP-Source: ABdhPJwlRA+AOSiVDPQjMdjppP0aNzngF/GM5h+CiX8EUsis3wE/WAxYyu4ncawcXzFqH/cDOQNs3+oIZKQaojYe+Ko= X-Received: by 2002:adf:f307:: with SMTP id i7mr16866033wro.367.1611850095460; Thu, 28 Jan 2021 08:08:15 -0800 (PST) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005f13a605b9f81892" X-Mailing-List: archive/latest/18930 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAFNO5ocapWKg7bF81Q1eE9ZkptgAzMCEe=T8ruYdipVhFzB8Aw@mail.gmail.com Approved: robomod@news.nic.it Lines: 131 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-python X-Original-Date: Thu, 28 Jan 2021 13:08:04 -0300 X-Original-Message-ID: X-Original-References: Xref: csiph.com linux.debian.maint.python:13152 --0000000000005f13a605b9f81892 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Seems that reprotest on salsa, is not installing the python3-magic. I don't think that can be a problem with cpython. On Thu, Jan 28, 2021 at 8:39 AM H=C3=A5vard Flaget Aasen wrote: > tor. 28. jan. 2021 kl. 10:48 skrev Craig Small : > > > > Hi, > > I'm trying to understand why python3-mastodon fails the unit tests. > > I'm not sure what you found out so far. When I grepped the log you > linked, I couldn't find python3-magic or libmagic. I believe the > packages isn't installed and the test therefore fails. > I'm guessing now, but I think this has to do with reproducible build in > salsa. > > > > > 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 libmagi= c > 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/cpy= thon3_3.9_mastodon/build/mastodon/Mastodon.py", > line 55, in > > import magic > > File "/usr/lib/python3/dist-packages/magic/__init__.py", line 361, in > > > 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 > > > _open =3D _libraries['magic'].magic_open > > File "/usr/lib/python3.9/ctypes/__init__.py", line 387, in __getattr_= _ > > func =3D self.__getitem__(name) > > File "/usr/lib/python3.9/ctypes/__init__.py", line 392, in __getitem_= _ > > func =3D self._FuncPtr((name_or_ordinal, self)) > > AttributeError: python3.9: undefined symbol: magic_open > > > > > > > > > > > > 1: https://salsa.debian.org/python-team/packages/mastodon/-/jobs/131219= 0 > > > > --0000000000005f13a605b9f81892 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Seems that reprotest on salsa, is not installing the pytho= n3-magic.=C2=A0

I don't think that can be a problem = with cpython.

On Thu, Jan 28, 2021 at 8:39 AM H=C3=A5vard Flaget Aasen= <haavard_aasen@yahoo.no&g= t; wrote:
tor. 2= 8. jan. 2021 kl. 10:48 skrev Craig Small <csmall@debian.org>:
>
> Hi,
> I'm trying to understand why python3-mastodon fails the unit tests= .

I'm not sure what you found out so far. When I grepped the log you
linked, I=C2=A0 couldn't find python3-magic or libmagic. I believe the<= br> packages isn't installed and the test therefore fails.
I'm guessing now, but I think this has to do with reproducible build in= salsa.

>
> An example is at [1] and it seems that importing magic is enough to tr= igger it. The compat line is to handle both python3-magic and a libmagic mo= dule both wanting magic.
>
> Is this a cpython thing? I'm not sure what I can do to fix this. >
>=C2=A0 =C2=A0File "/tmp/reprotest.7a4W2G/build-experiment-1/build-= experiment-1/.pybuild/cpython3_3.9_mastodon/build/mastodon/Mastodon.py"= ;, line 55, in <module>
>=C2=A0 =C2=A0 =C2=A0import magic
>=C2=A0 =C2=A0File "/usr/lib/python3/dist-packages/magic/__init__.p= y", line 361, in <module>
>=C2=A0 =C2=A0 =C2=A0add_compat(globals())
>=C2=A0 =C2=A0File "/usr/lib/python3/dist-packages/magic/__init__.p= y", line 325, in add_compat
>=C2=A0 =C2=A0 =C2=A0from magic import compat
>=C2=A0 =C2=A0File "/usr/lib/python3/dist-packages/magic/compat.py&= quot;, line 61, in <module>
>=C2=A0 =C2=A0 =C2=A0_open =3D _libraries['magic'].magic_open >=C2=A0 =C2=A0File "/usr/lib/python3.9/ctypes/__init__.py", li= ne 387, in __getattr__
>=C2=A0 =C2=A0 =C2=A0func =3D self.__getitem__(name)
>=C2=A0 =C2=A0File "/usr/lib/python3.9/ctypes/__init__.py", li= ne 392, in __getitem__
>=C2=A0 =C2=A0 =C2=A0func =3D self._FuncPtr((name_or_ordinal, self))
> AttributeError: python3.9: undefined symbol: magic_open
>
>
>
>
>
> 1: https://salsa.debian.or= g/python-team/packages/mastodon/-/jobs/1312190
>

--0000000000005f13a605b9f81892--