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

PyEval_CallObject is deprecated in Python 3.9 #463

Open
ignatenkobrain opened this issue Jul 20, 2021 · 0 comments
Open

PyEval_CallObject is deprecated in Python 3.9 #463

ignatenkobrain opened this issue Jul 20, 2021 · 0 comments
Labels
A-bindings Area: Bindings

Comments

@ignatenkobrain
Copy link
Collaborator

/builddir/build/BUILD/libsolv-0.7.19/redhat-linux-build/bindings/python/solv_python.c: In function 'loadcallback':
/builddir/build/BUILD/libsolv-0.7.19/redhat-linux-build/bindings/python/solv_python.c:4353:5: warning: 'PyEval_CallObjectWithKeywords' is deprecated [-Wdeprecated-declarations]
 4353 |     PyObject *result = PyEval_CallObject((PyObject *)d, args);
      |     ^~~~~~~~
In file included from /usr/include/python3.10/Python.h:144,
                 from /builddir/build/BUILD/libsolv-0.7.19/redhat-linux-build/bindings/python/solv_python.c:157:
/usr/include/python3.10/ceval.h:17:43: note: declared here
   17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I think simply replacing PyEval_CallObject with PyObject_CallObject should do the trick, but not sure if latter is available in everywhere what libsolv supports.

@ignatenkobrain ignatenkobrain added the A-bindings Area: Bindings label Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-bindings Area: Bindings
Projects
None yet
Development

No branches or pull requests

1 participant