Ask Your Question
0

actionlib ImportError for python

asked 2012-10-06 15:23:38 -0500

highencast gravatar image

updated 2014-01-28 17:13:51 -0500

ngrennan gravatar image

Hi folks, ROS noob here. For some reason I get an ImportError for actionlib with the following:

#!/usr/bin/env python

import cv
import roslib; roslib.load_manifest('robot_red')
import rospy
import actionlib
#rest of code...

which results in "ImportError: No module named actionlib" in the terminal. If anyone can describe what the problem might be I'll be eternally grateful. Thanks!

edit retag flag offensive close merge delete

Comments

1

I can just create package and run this code without problems. Does that means something you haven't installed?

sam gravatar imagesam ( 2012-10-06 15:47:56 -0500 )edit

@sam Thx for the input. I think the files for actionlib itself are already installed under opt/ros/electric/stacks/common/actionlib (assuming those are the files) but python/ros isn't finding them. No idea why.

highencast gravatar imagehighencast ( 2012-10-06 16:22:34 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
3

answered 2012-10-07 00:37:26 -0500

Jakub gravatar image

Check your manifest.xml file in robot_red package whether it contains the dependancy on actionlib

<package>
....
   <depend package="actionlib" />
...
</package>
edit flag offensive delete link more
1

answered 2012-10-06 15:52:44 -0500

sam gravatar image

You can try this: (notice the ROS version you use)

  sudo apt-get install ros-fuerte-actionlib
edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2012-10-06 15:23:38 -0500

Seen: 395 times

Last updated: Oct 07 '12