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

Revision history [back]

Hi,

we patched parts of ros core and ros_comm for python3 so basically messaging should be possible.

You just have to set you Pythonpath to roslib and in set your yaml-folder (in case you need it) to the pyyaml you installed using python3:

export PYTHONPATH=$PYYAML_DIR/pyyaml/lib/python3.2/site-packages:/opt/ros/electric/ros/core/roslib/src

After importing roslib in your python-file, you should be able to normally use roslib.load_manifest and code in Python3.

So far i only used it with ROS Electric, but i will install Fuerte quite soon and check if everything works....

NOTE: ROS Fuerte DOES NOT officially support Python3! Although the following discussion is about work in progress for partial Python3 compatibility!

Hi,

we patched parts of ros core and ros_comm for python3 so basically messaging should be possible.

You just have to set you Pythonpath to roslib and in set your yaml-folder (in case you need it) to the pyyaml you installed using python3:

export PYTHONPATH=$PYYAML_DIR/pyyaml/lib/python3.2/site-packages:/opt/ros/electric/ros/core/roslib/src

After importing roslib in your python-file, you should be able to normally use roslib.load_manifest and code in Python3.

So far i only used it with ROS Electric, but i will install Fuerte quite soon and check if everything works....