journal.Reader.add_match breaks on python>=3.10
Yamboy1 opened this issue · 5 comments
Yamboy1 commented
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.
TitaniumHocker commented
TitaniumHocker commented
I think this issue can be closed...
calexandru2018 commented
I'm still experiencing this issue, when is the release happening ?
TitaniumHocker commented
@keszybz Are you alive?
Guiorgy commented
@Yamboy1, @TitaniumHocker, @calexandru2018 v235 has been published to pypi, this can be closed