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

actionlib ImportError for python

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

highencast gravatar image

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

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 image sam  ( 2012-10-06 15:47:56 -0600 )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 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
3

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

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 -0600

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

Stats

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

Seen: 1,049 times

Last updated: Oct 07 '12