UnicodeEncodeError:'ascii'编解码器无法在位置131处编码字符u'\ xa7':序数不在范围内(128)

时间:2019-07-10 22:57:28

标签: python python-3.x python-2.7 ros

我在python 2.7上使用ROS- Melodic,当我尝试启动文件时,出现以下错误,如下所示,

如何解决此问题?这从未发生过

roslaunch my_robot_description myrobot.launch
    ... logging to /home/murtaza/.ros/log/7d1ccb5c-a35a-11e9-b27a-000c298dc171/roslaunch-ubuntu-48848.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.

    Traceback (most recent call last):
      File "/opt/ros/melodic/bin/roslaunch", line 35, in <module>
        roslaunch.main()
      File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/__init__.py", line 326, in main
        handle_exception(roslaunch_core, logger, "RLException: ", e)
      File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/__init__.py", line 225, in handle_exception
        roslaunch_core.printerrlog(msg + str(e))
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xa7' in position 131: ordinal not in range(128)

0 个答案:

没有答案