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

Fails to build on Python 3.13: PyEval_CallObject removed #568

Open
stefanor opened this issue Sep 13, 2024 · 0 comments
Open

Fails to build on Python 3.13: PyEval_CallObject removed #568

stefanor opened this issue Sep 13, 2024 · 0 comments

Comments

@stefanor
Copy link

pinst = PyEval_CallObject(pclass, pargs);

cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tf2_ros && /usr/bin/c++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DROSCONSOLE_BACKEND_LOG4CXX -DROS_BUILD_SHARED_LIBS=1 -DROS_PACKAGE_NAME=\"tf2_ros\" -Dtf2_ros_EXPORTS -I/<<PKGBUILDDIR>>/tf2_ros/include -I/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/devel/include -I/<<PKGBUILDDIR>>/tf2/include -I/<<PKGBUILDDIR>>/tf2_msgs/include -I/usr/include/xmlrpcpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -MD -MT tf2_ros/CMakeFiles/tf2_ros.dir/src/static_transform_broadcaster.cpp.o -MF CMakeFiles/tf2_ros.dir/src/static_transform_broadcaster.cpp.o.d -o CMakeFiles/tf2_ros.dir/src/static_transform_broadcaster.cpp.o -c /<<PKGBUILDDIR>>/tf2_ros/src/static_transform_broadcaster.cpp
/<<PKGBUILDDIR>>/tf2_py/src/tf2_py.cpp: In function ‘PyObject* transform_converter(const geometry_msgs::TransformStamped*)’:
/<<PKGBUILDDIR>>/tf2_py/src/tf2_py.cpp:89:11: error: ‘PyEval_CallObject’ was not declared in this scope; did you mean 'PyObject_CallObject’?
   89 |   pinst = PyEval_CallObject(pclass, pargs);
      |           ^~~~~~~~~~~~~~~~~
      |           PyObject_CallObject
make[3]: *** [tf2_py/CMakeFiles/tf2_py.dir/build.make:79: tf2_py/CMakeFiles/tf2_py.dir/src/tf2_py.cpp.o] Error 1

https://docs.python.org/3.13/whatsnew/3.13.html#removed-c-apis

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

No branches or pull requests

1 participant