Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Yamboy1 opened this issue Nov 26, 2022 · 5 comments
Open

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

Yamboy1 opened this issue Nov 26, 2022 · 5 comments

Comments

@Yamboy1
Copy link

Yamboy1 commented Nov 26, 2022

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
Copy link

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

@TitaniumHocker
Copy link

I think this issue can be closed...

@calexandru2018
Copy link

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

@TitaniumHocker
Copy link

@keszybz Are you alive?

@Guiorgy
Copy link
Contributor

Guiorgy commented Feb 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants