Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1006743: SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

1,167 views
Skip to first unread message

Dan Bungert

unread,
Mar 3, 2022, 9:10:03 PM3/3/22
to
Package: python-systemd
Version: 234-3build6
Severity: normal
User: ubuntu...@lists.ubuntu.com
Usertags: origin-ubuntu jammy

Dear Maintainer,
This bug report was also filed in Ubuntu and can be found at
https://launchpad.net/bugs/1963582
The description, from Dan Bungert, follows:

Attempting to use the Reader class with python3.10, such as documented in the
example at
https://www.freedesktop.org/software/systemd/python-systemd/journal.html?highlight=reader#systemd.journal.Reader,
results in the following traceback

File "/usr/lib/python3/dist-packages/systemd/journal.py", line 376, in this_boot
self.add_match(_BOOT_ID=bootid)
File "/usr/lib/python3/dist-packages/systemd/journal.py", line 244, in add_match
super(Reader, self).add_match(arg)
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

I have sent a MR that should help, using a cherry-picked commit from upstream.
https://salsa.debian.org/systemd-team/python-systemd/-/merge_requests/2

-Dan

Yuri D'Elia

unread,
Apr 1, 2022, 1:00:03 PM4/1/22
to
Source: python-systemd
Followup-For: Bug #1006743

This issue currently breaks fail2ban for me, which is now defaulting to
python3.10 (via the default python3 dependency).
0 new messages