Ask Your Question
0

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

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

snowman gravatar image

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

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


SUMMARY
========

PARAMETERS
 * /rosdistro: kinetic
 * /rosversion: 1.12.14

NODES

auto-starting new master
process[master]: started with pid [28650]
ROS_MASTER_URI=http://wuxueming-n8xejek:11311/

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 reopen merge delete

Closed for the following reason duplicate question by snowman
close date 2020-04-05 08:47:30.516561

Comments

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

Never paraphrase errors or warnings.

gvdhoorn gravatar image gvdhoorn  ( 2018-11-16 09:40:29 -0500 )edit

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

snowman gravatar image snowman  ( 2018-11-16 19:05:13 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

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

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

Question Tools

1 follower

Stats

Asked: 2018-11-16 09:36:50 -0500

Seen: 128 times

Last updated: Jan 20