xyh421
xyh421
采纳率50%
2016-08-09 03:52 阅读 5.7k

'utf8' codec can't decode byte 0xbd

问题描述:
RobotFramework ride 导入用户自定义库时报错

报错日志:
20160809 10:28:52.264 [WARN]: Importing test library "C:/Python27/Lib/site-packages/CustomLibrary/runbat.py" failed

Traceback (most recent call last):
Importing test library 'C:\Python27\Lib\site-packages\CustomLibrary\runbat.py' failed: SyntaxError: (unicode error) 'utf8' codec can't decode byte 0xbd in position 0: invalid start byte (runbat.py, line 16)
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\robotide\lib\robot\utils\importer.py", line 143, in import
return __import
_(name, fromlist=fromlist)

用户自定义的库文件源码:
如图图片说明

这个是网上的一个教程,我复制粘贴搞不定了,求带飞。

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

相关推荐