diff -ur a/src/libcec/SwigHelper.h b/src/libcec/SwigHelper.h
--- a/src/libcec/SwigHelper.h	2020-07-13 06:18:33.000000000 -0400
+++ b/src/libcec/SwigHelper.h	2024-11-23 15:00:04.684002606 -0500
@@ -119,7 +119,7 @@
       if (!!m_callbacks[callback])
       {
         /** call the callback */
-        result = PyEval_CallObject(m_callbacks[callback], arglist);
+        result = PyObject_CallObject(m_callbacks[callback], arglist);
 
         /** unref the argument and result */
         if (!!arglist)
