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

FTBS w/ Python 3.13 - implicit declaration of function ‘PyEval_InitThreads’, 'PyEval_CallObject' #645

Open
knight-of-ni opened this issue Oct 24, 2023 · 0 comments · May be fixed by #647

Comments

@knight-of-ni
Copy link

libcec fails to build with Python 3.13.0a1.

/builddir/build/BUILD/libcec-libcec-6.0.2/redhat-linux-build/src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:5497:9: error: ‘PyEval_InitThreads’ was not declared in this scope; did you mean ‘PyEval_SaveThread’?
5497 | PyEval_InitThreads();
| ^~~~~~~~~~~~~~~~~~
| PyEval_SaveThread

/builddir/build/BUILD/libcec-libcec-6.0.2/src/libcec/SwigHelper.h:122:18: error: ‘PyEval_CallObject’ was not declared in this scope; did you mean ‘PyObject_CallObject’?
122 | result = PyEval_CallObject(m_callbacks[callback], arglist);
| ^~~~~~~~~~~~~~~~~
| PyObject_CallObject

More details can be found here:
https://bugzilla.redhat.com/show_bug.cgi?id=2245791

The fix looks fairly straightforward. If needed I can provide a PR to resolve this, after I return from an out of town trip for day job.

@knight-of-ni knight-of-ni linked a pull request Oct 26, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant