ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

'ascii' codec can't decode byte 0x9a in position 3: ordinal not in range(128) while launching Moveit Setup Assiatant with roslaunch.

asked 2017-01-02 22:09:52 -0500

MikeArmstrong gravatar image

updated 2017-01-02 23:56:47 -0500

ahendrix gravatar image

I installed Kinetic using on a Ubuntu 16.04 machine and installed Moveit! using . When I execute roslaunch moveit_setup_assistant setup_assistant.launch, following instructions here, , I get [roslaunch][ERROR] 2017-01-02 11:25:28,199: 'ascii' codec can't decode byte 0x9a in position 3: ordinal not in range(128).

Uname -a information: Precision-5510 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

env | grep ROS information:


The complete log file is below.

Any help in resolving this would be greatly appreciated. Please let me know if more information is needed.


[roslaunch][INFO] 2017-01-02 11:25:27,837: Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
[roslaunch][INFO] 2017-01-02 11:25:27,839: Done checking log file disk usage. Usage is <1GB.
[roslaunch][INFO] 2017-01-02 11:25:27,840: roslaunch starting with args ['/opt/ros/kinetic/bin/roslaunch', 'moveit_setup_assistant', 'setup_assistant.launch']
[roslaunch][INFO] 2017-01-02 11:25:27,840: roslaunch env is {'MANDATORY_PATH': '/usr/share/gconf/ubuntu.mandatory.path', 'ROS_DISTRO': 'kinetic', 'ROS_LOG_FILENAME': '/home/mike/.ros/log/d5d1f0fe-d118-11e6-8c3f-34f39a87b69e/roslaunch-mike-Precision-5510-9950.log', 'XDG_GREETER_DATA_DIR': '/var/lib/lightdm-data/mike', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'PKG_CONFIG_PATH': '/opt/ros/kinetic/lib/pkgconfig:/opt/ros/kinetic/lib/x86_64-linux-gnu/pkgconfig', 'UPSTART_EVENTS': 'started starting', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'XDG_SESSION_TYPE': 'x11', 'ROSLISP_PACKAGE_DIRECTORIES': '', 'QT_IM_MODULE': 'ibus', 'LOGNAME': 'mike', 'USER': 'mike', 'PATH': '/opt/ros/kinetic/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin', 'XDG_VTNR': '7', 'GNOME_KEYRING_CONTROL': '', 'CMAKE_PREFIX_PATH': '/opt/ros/kinetic', 'LD_LIBRARY_PATH': '/opt/ros/kinetic/lib:/opt/ros/kinetic/lib/x86_64-linux-gnu:/home/mike/Spinnaker/spinnaker_1_0_0_295_amd64/lib/', 'LANG': 'en_US.UTF-8', 'TERM': 'xterm-256color', 'SHELL': '/bin/bash', 'XDG_SESSION_PATH': '/org/freedesktop/DisplayManager/Session0', 'XAUTHORITY': '/home/mike/.Xauthority', 'LANGUAGE': 'en_US', 'COMPIZ_CONFIG_PROFILE': 'ubuntu', 'SHLVL': '1', 'QT_LINUX_ACCESSIBILITY_ALWAYS_ON': '1', 'QT_QPA_PLATFORMTHEME': 'appmenu-qt5', 'CLUTTER_IM_MODULE': 'xim', 'DISPLAY': ':0', 'UPSTART_INSTANCE': '', 'QT_ACCESSIBILITY': '1', 'WINDOWID': '69206026', 'SESSIONTYPE': 'gnome-session', 'XMODIFIERS': '@im=ibus', 'ROS_ETC_DIR': '/opt/ros/kinetic/etc/ros', 'GPG_AGENT_INFO': '/home/mike/.gnupg/S.gpg-agent:0:1', 'HOME': '/home/mike', 'QT4_IM_MODULE': 'xim', 'GTK2_MODULES': 'overlay-scrollbar', 'XDG_SESSION_DESKTOP': 'ubuntu', 'XDG_RUNTIME_DIR': '/run/user/1001', 'INSTANCE': 'Unity', 'PYTHONPATH': '/opt/ros/kinetic/lib/python2.7/dist-packages', 'SSH_AUTH_SOCK': '/run/user/1001/keyring/ssh', 'VTE_VERSION': '4205', 'ROS_ROOT': '/opt/ros/kinetic/share/ros', 'GDMSESSION': 'ubuntu', 'IM_CONFIG_PHASE': '1', 'UPSTART_JOB': 'unity-settings-daemon', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'GNOME_KEYRING_PID': '', 'XDG_SEAT_PATH': '/org/freedesktop/DisplayManager/Seat0', 'ROS_PACKAGE_PATH': '/opt/ros/kinetic/share', 'XDG_CURRENT_DESKTOP': 'Unity', 'XDG_SESSION_ID': 'c8', 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-j8R8N43uH9', '_': '/opt/ros/kinetic/bin/roslaunch', 'DEFAULTS_PATH': '/usr/share/gconf/ubuntu.default.path', 'GTK_IM_MODULE': 'ibus', 'DESKTOP_SESSION': 'ubuntu', 'UPSTART_SESSION': 'unix:abstract=/com/ubuntu/upstart-session/1001/2096', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg', 'GTK_MODULES': 'gail:atk-bridge:unity-gtk-module', 'GDM_LANG': 'en_US', 'XDG_DATA_DIRS': '/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'PWD': '/home/mike', 'JOB': 'gnome-session', 'ROS_MASTER_URI': 'http://localhost:11311', 'DESKTOP_MODE': '1', 'LS_COLORS': 'rs ...
edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2017-01-03 00:07:04 -0500

ahendrix gravatar image

It seems like there's a non-ascii character (probably š) in one of the file names of one of the files on your system, and the python library for dealing with paths and filenames (os.path.isdir) doesn't like that.

I realize that's not very specific, but without modifying roslaunch to add additional debug information, there's not much more I can say.

You can search for files with that character in the file name in /opt/ros with find /opt/ros -name '*š*'. If that doesn't find anything, you can try searching the whole file system: find / -name '*š*' (give this an hour or two to run if you have a large file system, a slow hard drive, or both)

edit flag offensive delete link more

answered 2017-01-03 11:16:51 -0500

MikeArmstrong gravatar image

updated 2017-01-03 11:17:50 -0500

Thanks ahendrix. As it turns out there was a zero length file named ?p?@@ in the //opt/ros/kinetic/lib/moveit_setup_assistant directory. I don't know how it got there as this is a clean installation of Kinetic. But all is well and Setup Assistant runs.

Thanks again,


edit flag offensive delete link more


I just installed that debian on my system and could not find a similar file. If you are able to track down a fix please contribute to the Github repo, thanks!

Dave Coleman gravatar image Dave Coleman  ( 2017-01-04 10:42:02 -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



Asked: 2017-01-02 22:09:52 -0500

Seen: 1,037 times

Last updated: Jan 03 '17