Ask Your Question

catkin_create_android_repo error: can't encode character

asked 2013-07-30 09:58:15 -0500

Amancio Díaz gravatar image

updated 2013-07-30 20:37:48 -0500

Hi everyone, I am starting with Ros installing Hydro on Ubuntu 13.04 following

(ROS WIKI URL)/wiki/sig/Rosjava/Android%20Development%20Environment

I can compile android_core ok.

When I try to create my own repo following

(ROS WIKI URL)/wiki/rosjava_tools/hydro

I found the follow error:

$ catkin_create_android_repo my_project android_core rosjava_core android_extras

[error] 'ascii' codec can't encode character u'\xed' in position 34: ordinal not in range(128) : <type 'exceptions.unicodeencodeerror'="">

a directory named my_project is created with an empty settings.gradle.

Locales on my machine are set to es_ES.UTF-8, but I have tried putting LC_ALL=C with the same results.

Apt is configured to download ROS packages from "deb PACKAGES_ROS_ORG_URL/ros/ubuntu raring main"

Any help will be wellcome

Thanks in advance

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2013-08-08 06:00:02 -0500

Amancio Díaz gravatar image

I found the problem in the user's name (not the login). The script reads /etc/passwords to obtain the user name. In my case it was "Díaz" so when trying to write the "í" in the build.gradle it brakes. Just remove the acute from the user's surname and everything works again.

edit flag offensive delete link more

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


Asked: 2013-07-30 09:58:15 -0500

Seen: 164 times

Last updated: Aug 08 '13