[ros-users] import rospy "no module named msg"
Tully Foote
tfoote at willowgarage.com
Sat May 15 18:19:58 UTC 2010
Brett,
I believe that the error message you are getting is because the message
generators in roslib have not been run. They are usually run during the
build step. For getting things to work on your phone, you will probably
need to run a stripped down version of the build.
Tully
On Sat, May 15, 2010 at 10:05 AM, Brett Graham
<graham at rowland.harvard.edu>wrote:
> I'm trying to load rospy on a computer that does not have ros installed on
> it.
>
> When I try:
> import rospy
>
> I get the following error:
>
> ---------------------------------------------------------------------------
> ImportError Traceback (most recent call last)
>
> pysrc/<ipython console> in <module>()
>
> pysrc/rospy/__init__.py in <module>()
> 42 from roslib.rosenv import ROS_ROOT, ROS_MASTER_URI,
> ROS_HOSTNAME, ROS_NAMESPACE, ROS_PACKAGE_PATH, ROS_LOG_DIR
> 43
> ---> 44 import rospy.core
> 45 import rospy.init
> 46
>
> pysrc/rospy/core.py in <module>()
> 47 import xmlrpclib
> 48
> ---> 49 import roslib.msg
> 50 import roslib.rosenv
> 51 import roslib.roslogging
>
> ImportError: No module named msg
> ---------------------------------------------------------------------------
>
> I don't have the option to install ros on the computer (it's my phone
> :) ). Is there a way to get around this, or am I misunderstanding how
> to load rospy?
>
> Thanks in advance for your help.
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
--
Tully Foote
Systems Engineer
Willow Garage, Inc.
tfoote at willowgarage.com
(650) 475-2827
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100515/00e70bc4/attachment-0003.html>
More information about the ros-users
mailing list