Skip to content

SystemError: incompatible with python 3.10 #107

@TitaniumHocker

Description

@TitaniumHocker

When using package with python3.10 this error occurs on using systemd.journal.Reader:

...
reader.this_boot()
  File "/home/ifedorov/.cache/pypoetry/virtualenvs/jviewer-g9vQZSG3-py3.10/lib/python3.10/site-packages/systemd/journal.py", line 376, in this_boot
    self.add_match(_BOOT_ID=bootid)
  File "/home/ifedorov/.cache/pypoetry/virtualenvs/jviewer-g9vQZSG3-py3.10/lib/python3.10/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: https://docs.python.org/3/c-api/arg.html#strings-and-buffers
See: https://docs.python.org/3/whatsnew/3.10.html#id2

This error seems to be fixed in this commit, so new release needs to be made.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions