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

Python3 roscpp_init: dynamic module does not define module export function #2156

Closed
a-z-e-r-i-l-a opened this issue Jun 19, 2020 · 4 comments

Comments

@a-z-e-r-i-l-a
Copy link

Is your feature request related to a problem? Please describe.
I would like to invoke roscpp_init('node_name', []) that is mentioned here in Python3.

If I do so however I get the following error:

    from moveit_ros_planning_interface._moveit_roscpp_initializer import roscpp_init
ImportError: dynamic module does not define module export function (PyInit__moveit_roscpp_initializer)

I thought if I build moveit from source in my workspace with cmake arguments corresponding python3 it may fix the problem, but even without these arguments haven't been able to build the planning_interface package without error.

I would be glad if you could kindly help me about this issue.

@welcome
Copy link

welcome bot commented Jun 19, 2020

Thanks for reporting an issue. Because we're a volunteer community, providing a pull request with suggested changes is always welcomed.

@IndustrialEngStudent
Copy link

I have the same error when trying to import moveit_commander in the python based move group interface. Did you solve your issue?

@a-z-e-r-i-l-a
Copy link
Author

@IndustrialEngStudent not through moveit. but in the end I made a package that would initialize the node handle similar to how it's done in moveit_ros_planning_interface._moveit_roscpp_initializer import roscpp_init , and then built this package with python3 cmake args.

@rhaschke
Copy link
Contributor

Building and using MoveIt's python API with Python3 works as far as I know. Of course, you need to build your whole ROS environment with Python3 support - as done in Noetic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants