Ask Your Question
1

cannot import moveit_commander

asked 2017-03-04 08:33:22 -0600

M_Allam gravatar image

updated 2017-03-04 08:42:06 -0600

I am using ros kinetic on ubuntu 16.04 and when i try to import moveit_commander it gives this error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/moveit_commander/__init__.py", line 3, in <module>
    from planning_scene_interface import *
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/moveit_commander/planning_scene_interface.py", line 48, in <module>
    import pyassimp
  File "/usr/lib/python2.7/dist-packages/pyassimp/__init__.py", line 1, in <module>
    from .core import *
  File "/usr/lib/python2.7/dist-packages/pyassimp/core.py", line 23, in <module>
    from . import structs
ImportError: cannot import name structs
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2017-03-04 08:56:35 -0600

gvdhoorn gravatar image

updated 2017-03-04 08:59:03 -0600

This is a known issue, see ros-planning/moveit#86.

ros-planning/moveit#450 should presumably fix this, but I'm not sure whether that has been released yet. If not, building the moveit_commander package from source (in your Catkin workspace) works (note that you probably only need that particular package in your workspace).

edit flag offensive delete link more

Comments

Yes, the fix is not yet released. I opened a release request.

130s gravatar image130s ( 2017-03-04 09:07:38 -0600 )edit

Has this bug been fixed? I still cannot import moveit_commander on Ubuntu 16.04 and pyassimp 3.2 I have seen ros-planning/moveit#450 #86, yet I didn't find some useful solution. could you give me a detailed advice on handling with terminal? PS: I have built the moveit_commander package from source.

AndyChou007 gravatar imageAndyChou007 ( 2018-04-27 03:41:38 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-03-04 08:33:22 -0600

Seen: 1,046 times

Last updated: Mar 04 '17