Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #13151
| From | Craig Small <csmall@debian.org> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | python3-mastodon fails CI due to bad magic? |
| Date | 2021-01-28 11:50 +0100 |
| Message-ID | <BCd2a-uy-11@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
[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
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