Ask Your Question

roscore on python2.7 'ascii' codec can't decode byte 0xe6 in position 16

asked 2018-11-16 09:36:50 -0600

snowman gravatar image

updated 2018-11-16 19:26:15 -0600

Hey, When I set python3.5 as default, I got a error. So, I corrected it to python2.7, However, roscore gave me a Error like this

~$ roscore

... logging to /home/wuxueming/.ros/log/67c4edca-e9fb-11e8-a50a-7c2a314f2b58/roslaunch-wuxueming-n8xejek-28640.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://wuxueming-n8xejek:37377/
ros_comm version 1.12.14


 * /rosdistro: kinetic
 * /rosversion: 1.12.14


auto-starting new master
process[master]: started with pid [28650]

setting /run_id to 67c4edca-e9fb-11e8-a50a-7c2a314f2b58
'ascii' codec can't decode byte 0xe6 in position 16: ordinal not in range(128)
The traceback for the exception was written to the log file
[master] killing on exit

'ascii' codec can't decode byte 0xe6 in position 16: ordinal not in range(128)

How to solve the problem? Thanks so much.

edit retag flag offensive close merge delete


Please update your post with the full error message / stack trace.

Never paraphrase errors or warnings.

gvdhoorn gravatar imagegvdhoorn ( 2018-11-16 09:40:29 -0600 )edit

Thanks.And I will update with the full errror message.

snowman gravatar imagesnowman ( 2018-11-16 19:05:13 -0600 )edit

1 Answer

Sort by » oldest newest most voted

answered 2020-01-20 10:13:47 -0600

snowman gravatar image

Sorry for later. A long time ago, I had saved this problem .

It just need to open terminal and input this

$ sudo update-alternatives --config python
有 2 个候选项可用于替换 python (提供 /usr/bin/python)。

  选择       路径            优先级  状态
  0            /usr/bin/python3   150       自动模式
* 1            /usr/bin/python2   100       手动模式
  2            /usr/bin/python3   150       手动模式

Next you need to chose python2, just it looks like, push the number 2 & Enter. Everything is OK.

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: 2018-11-16 09:36:50 -0600

Seen: 86 times

Last updated: Jan 20