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

SystemError: incompatible with python 3.10 #107

Closed
TitaniumHocker opened this issue May 27, 2022 · 2 comments
Closed

SystemError: incompatible with python 3.10 #107

TitaniumHocker opened this issue May 27, 2022 · 2 comments

Comments

@TitaniumHocker
Copy link

TitaniumHocker commented May 27, 2022

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.

@kylemanna
Copy link

Just ran in to this as well, would love to see a new release tagged with the fix incorporated.

@keszybz
Copy link
Member

keszybz commented Aug 13, 2022

Yeah, this will be fixed in the next release.

@keszybz keszybz closed this as completed Aug 13, 2022
dferencz-laird pushed a commit to LairdCP/wb-buildroot that referenced this issue Sep 22, 2022
Python 3.10 dropped support for the use of 'int' in format strings for
PyArg_ParseTuple() and Py_BuildValue() in favor of using 'Py_ssize_t':

https://bugs.python.org/issue40943

This was addressed in python-systemd 'master', but no new releases are
available yet:

systemd/python-systemd#107

This change includes the patch which switches to using 'Py_ssize_t':

systemd/python-systemd@c71bbac

Bug 22270
jhatler pushed a commit to rfpros/wb-buildroot that referenced this issue Feb 2, 2023
Python 3.10 dropped support for the use of 'int' in format strings for
PyArg_ParseTuple() and Py_BuildValue() in favor of using 'Py_ssize_t':

https://bugs.python.org/issue40943

This was addressed in python-systemd 'master', but no new releases are
available yet:

systemd/python-systemd#107

This change includes the patch which switches to using 'Py_ssize_t':

systemd/python-systemd@c71bbac

Bug 22270
sbraneky pushed a commit to sbraneky/wb-buildroot that referenced this issue Feb 3, 2023
Python 3.10 dropped support for the use of 'int' in format strings for
PyArg_ParseTuple() and Py_BuildValue() in favor of using 'Py_ssize_t':

https://bugs.python.org/issue40943

This was addressed in python-systemd 'master', but no new releases are
available yet:

systemd/python-systemd#107

This change includes the patch which switches to using 'Py_ssize_t':

systemd/python-systemd@c71bbac

Bug 22270
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Feb 21, 2023
Includes bugfix from v234 which won't run on python3.10
See: systemd/python-systemd#107

Removes patches now no longer required as they are implemented in v235

drop setting md5 checksum for src_uri as it is no longer needed

rename patch directory to match recipe name as python2 version of recipe
is gone

V235 released to PyPI on 11 Feb 23
https://pypi.org/project/systemd-python/235/

Signed-off-by: Samuel Cook <samuel.cook@cornelisnetworks.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Feb 21, 2023
Includes bugfix from v234 which won't run on python3.10
See: systemd/python-systemd#107

Removes patches now no longer required as they are implemented in v235

drop setting md5 checksum for src_uri as it is no longer needed

rename patch directory to match recipe name as python2 version of recipe
is gone

V235 released to PyPI on 11 Feb 23
https://pypi.org/project/systemd-python/235/

Signed-off-by: Samuel Cook <samuel.cook@cornelisnetworks.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Feb 22, 2023
Includes bugfix from v234 which won't run on python3.10
See: systemd/python-systemd#107

Removes patches now no longer required as they are implemented in v235

drop setting md5 checksum for src_uri as it is no longer needed

rename patch directory to match recipe name as python2 version of recipe
is gone

V235 released to PyPI on 11 Feb 23
https://pypi.org/project/systemd-python/235/

Signed-off-by: Samuel Cook <samuel.cook@cornelisnetworks.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
daregit pushed a commit to daregit/yocto-combined that referenced this issue May 22, 2024
Includes bugfix from v234 which won't run on python3.10
See: systemd/python-systemd#107

Removes patches now no longer required as they are implemented in v235

drop setting md5 checksum for src_uri as it is no longer needed

rename patch directory to match recipe name as python2 version of recipe
is gone

V235 released to PyPI on 11 Feb 23
https://pypi.org/project/systemd-python/235/

Signed-off-by: Samuel Cook <samuel.cook@cornelisnetworks.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
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

3 participants