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

UnicodeEncodeError while installing ROS on Debian

asked 2014-01-29 06:17:56 -0500

josegaert gravatar image

updated 2016-10-24 09:00:50 -0500

ngrennan gravatar image

Hi all,

I am trying to instal ROS hydro on a Debian system following the guide on the wiki. When I executed:

./src/catkin/bin/catkin_make_isolated --install --install-space /opt/ros/hydro

I got this error:

==> Processing catkin package: 'catkin'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/root/ros_catkin_ws/build_isolated/catkin'
==> make -j4 -l4 in '/root/ros_catkin_ws/build_isolated/catkin'
Unhandled exception of type 'UnicodeEncodeError':
Traceback (most recent call last):
  File "./src/catkin/bin/../python/catkin/", line 832, in build_workspace_isolated
    number=index + 1, of=len(ordered_packages)
  File "./src/catkin/bin/../python/catkin/", line 585, in build_package
  File "./src/catkin/bin/../python/catkin/", line 378, in build_catkin_package
    if has_make_target(build_dir, 'install'):
  File "./src/catkin/bin/../python/catkin/", line 389, in has_make_target
    output = run_command(['make', '-pn'], path, quiet=True)
  File "./src/catkin/bin/../python/catkin/", line 208, in run_command
UnicodeEncodeError: 'ascii' codec can't encode character u'\xc9' in position 3: ordinal not in range(128)
<== Failed to process package 'catkin': 
  'ascii' codec can't encode character u'\xc9' in position 3: ordinal not in range(128)
Command failed, exiting.

Does anybody know what to do here?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-01-29 21:25:38 -0500

josegaert gravatar image

I found an anwser:

It has something to to with using a different languages. For now, Japanese systems and French (mine) systems have found to give the bug. You can solve it by putting your system in English for a while.

root@xwzy:~/ros_catkin_ws# env | grep LANG
root@xwzy:~/ros_catkin_ws# export LANG=en_US.UTF-8
root@anoesjka:~/ros_catkin_ws# env | grep LANG

And then it works.

edit flag offensive delete link more



For reference this is an open ticket which we haven't found a fix for yet:

Dirk Thomas gravatar image Dirk Thomas  ( 2014-01-30 04:33:44 -0500 )edit

Question Tools

1 follower


Asked: 2014-01-29 06:17:56 -0500

Seen: 1,185 times

Last updated: Jan 29 '14