ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Thomas_Blo's profile - activity

2019-10-24 09:13:51 -0500 received badge  Famous Question (source)
2017-11-26 16:16:21 -0500 marked best answer Using C++ class in Python 2.7 and 3.x

Hey, I was trying to write a Python C++ wrapper as described in the Tutorial: "Using a C++ class in Python".

Now to my question, is there a way to compile the Module for Python 2.7 and 3 simultaneously using catkin? So i can import the wrapper Class in both versions?

Because currently when Importing the wrapper to python 3 this error is thrown: ImportError: dynamic module does not define module export function (PyInit__wrapper_cpp) Since i can only link it against the python 2 libs.

Under Python 2 it is currently working without any errors.

Thanks for your help, Thomas

2017-11-26 16:14:42 -0500 received badge  Notable Question (source)
2017-08-02 08:15:26 -0500 received badge  Popular Question (source)
2017-07-28 13:17:26 -0500 received badge  Student (source)
2017-07-28 11:11:36 -0500 asked a question Using C++ class in Python 2.7 and 3.x

Using C++ class in Python 2.7 and 3.x Hey, I was trying to write a Python C++ wrapper as described in the Tutorial: "Us