systemd / python-systemd

Python wrappers for systemd functionality
GNU Lesser General Public License v2.1
467 stars 66 forks source link

journal.Reader.add_match breaks on python>=3.10 #122

Open Yamboy1 opened 1 year ago

Yamboy1 commented 1 year ago

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 1 year ago

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

TitaniumHocker commented 1 year ago

I think this issue can be closed...

calexandru2018 commented 1 year ago

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

TitaniumHocker commented 1 year ago

@keszybz Are you alive?

Guiorgy commented 1 year ago

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