python-systemd icon indicating copy to clipboard operation
python-systemd copied to clipboard

journal.Reader.add_match breaks on python>=3.10

Open Yamboy1 opened this issue 3 years ago • 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.

Yamboy1 avatar Nov 26 '22 16:11 Yamboy1

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

TitaniumHocker avatar Dec 06 '22 20:12 TitaniumHocker

I think this issue can be closed...

TitaniumHocker avatar Dec 06 '22 20:12 TitaniumHocker

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

calexandru2018 avatar Jan 13 '23 16:01 calexandru2018

@keszybz Are you alive?

TitaniumHocker avatar Jan 13 '23 16:01 TitaniumHocker

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

Guiorgy avatar Feb 11 '23 15:02 Guiorgy