systemd/python-systemd

journal.Reader.add_match breaks on python>=3.10

Yamboy1 opened this issue · 5 comments

Minimal repro:

from systemd import journal

j = journal.Reader()
j.add_match(_SYSTEMD_UNIT="httpd.service")

Error:

Traceback (most recent call last):
  File "/home/dobby/project/server/./server.py", line 14, in <module>
    j.add_match(_SYSTEMD_UNIT="httpd.service")
  File "/home/dobby/.local/share/virtualenvs/server-dx5eltbR/lib64/python3.11/site-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

See python/cpython#85115 for more info.

This is already fixed, see #107, but new release wasn't uploaded to PyPI, see #120

I think this issue can be closed...

I'm still experiencing this issue, when is the release happening ?

@keszybz Are you alive?

@Yamboy1, @TitaniumHocker, @calexandru2018 v235 has been published to pypi, this can be closed