Print

Print


Once again, python moves faster than most projects. In this case Python 3.7 started deprecating use of  PyEval_ThreadsInitialized() plus some other functions used in PyXRootDModule.cc and should be version checked. An example of such a fix can be seen in:

https://github.com/gjcarneiro/pybindgen/commit/5fbeb8d0659531b2c237947dd1d26931175f29dd

The specific error was reported in https://github.com/xrootd/xrootd/issues/1481 and the excerpt of the issue is below.

7: warning: 'int PyEval_ThreadsInitialized()' is deprecated [-Wdeprecated-declarations]
84 | if ( !PyEval_ThreadsInitialized() ) {
| ^
In file included from /usr/include/python3.9/Python.h:145,
from /home/saba/alice/sw/BUILD/70f7dfa756380c5669baf922e0068ee424a0ba3d/XRootD/bindings/python/src/PyXRootD.hh:28,
from /home/saba/alice/sw/BUILD/70f7dfa756380c5669baf922e0068ee424a0ba3d/XRootD/bindings/python/src/PyXRootDModule.cc:25:
/usr/include/python3.9/ceval.h:129:36: note: declared here
129 | Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void);

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1482

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1