ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
1

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/builder.py", line 832, in build_workspace_isolated
    number=index + 1, of=len(ordered_packages)
  File "./src/catkin/bin/../python/catkin/builder.py", line 585, in build_package
    destdir=destdir
  File "./src/catkin/bin/../python/catkin/builder.py", line 378, in build_catkin_package
    if has_make_target(build_dir, 'install'):
  File "./src/catkin/bin/../python/catkin/builder.py", line 389, in has_make_target
    output = run_command(['make', '-pn'], path, quiet=True)
  File "./src/catkin/bin/../python/catkin/builder.py", line 208, in run_command
    out.write(line)
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
3

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
LANG=fr_BE.UTF-8
LANGUAGE=fr_BE:fr
root@xwzy:~/ros_catkin_ws# export LANG=en_US.UTF-8
root@anoesjka:~/ros_catkin_ws# env | grep LANG
LANG=en_US.UTF-8
LANGUAGE=fr_BE:fr

And then it works.

edit flag offensive delete link more

Comments

1

For reference this is an open ticket which we haven't found a fix for yet: https://github.com/ros/catkin/issues/578

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 974 times

Last updated: Jan 29 '14