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

feature_python3 - not compatible with Python 3.8 #16560

Open
mooninite opened this issue Sep 2, 2019 · 4 comments
Open

feature_python3 - not compatible with Python 3.8 #16560

mooninite opened this issue Sep 2, 2019 · 4 comments

Comments

@mooninite
Copy link
Contributor

@mooninite mooninite commented Sep 2, 2019

Bug report

Describe the bug

Here is a clear and concise description of what the problem is:

xbmc/interfaces/python/PythonInvoker.cpp

There are a three references in the file above to the private interfaces of PyInterpreterState.

Example:

s = state->interp->tstate_head;

Python 3.8 has finally removed the public interfaces to PyInterpreterState. The C documentation has always stated that there were never any public interfaces but projects such as Kodi used them anyway.

Announcement:
https://mail.python.org/pipermail/python-dev/2019-February/156344.html

Bug tracker to request a public interface:
https://bugs.python.org/issue35886

Possible Fix

Work with upstream to create a real public interface.

Workaround:

Adding the following to the top of PythonInvoker.cpp will expose the structs again.

#if PY_VERSION_HEX >= 0x03080000
# define Py_BUILD_CORE
# undef HAVE_STD_ATOMIC
/* for access to the fields of PyInterpreterState */
#  include "internal/pycore_pystate.h"
# undef Py_BUILD_CORE
# define HAVE_STD_ATOMIC
#endif

Your Environment

Used Operating system:

  • Android

  • iOS

  • Linux

  • OSX

  • Raspberry-Pi

  • Windows

  • Windows UWP

  • Operating system version/name:

  • Kodi version: 18.4 / 19.x

@xbmc-gh-bot
Copy link

@xbmc-gh-bot xbmc-gh-bot bot commented Sep 2, 2019

Thank you for using Kodi and our issue tracker. This is your friendly Kodi GitHub bot 😉

It seems that you have not followed the template we provide and require for all bug reports (or have opened a roadmap item by accident). Please understand that following the template is mandatory and required for the team to be able handle the volume of open issues efficiently.

Please edit your issue message to follow our template and make sure to fill in all fields appropriately. The issue will be closed after one week has passed without satisfactory follow-up from your side.

This is an automatically generated message. If you believe it was sent in error, please say so and a team member will remove the "Ignored rules" label.

@mooninite
Copy link
Contributor Author

@mooninite mooninite commented Sep 2, 2019

Please remove the "Ignored rules" label.

@louiestevenson

This comment was marked as spam.

@yol
Copy link
Member

@yol yol commented Dec 19, 2019

@fuzzard fuzzard reopened this Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

6 participants
You can’t perform that action at this time.