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

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



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

sam gravatar image sam  ( 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 image highencast  ( 2012-10-06 16:22:34 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

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

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

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

Question Tools


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

Seen: 999 times

Last updated: Oct 07 '12