1、问题现象:
python3.8环境安装rf工具套件
启动rf后报错如下:
<class 'robotide.preferences.configobj.UnreprError'> Parse error in value at line 0.
2、解决方法:
官方git仓库:https://github.com/robotframework/RIDE
安装测试版的rf
安装完成后启动正常
启动后导入测试工程发现HttpLibrary模块导入为红色,
参考解决:https://www.cnblogs.com/joker666/p/11583249.html,https://www.cnblogs.com/joker666/p/11583309.html
压缩包文件下载:https://pypi.org/project/livetest/#files
解压后修改:
1)修改 \livetest-0.5\livetest\__init__.py
修改import httplib -> import http.client as httplib
修改import urlparse -> import urllib.parse
修改from Cookie import BaseCookie, CookieError -> import http.cookiejar
修改XXXError, e 为XXXError as e
2)修改 \livetest-0.5\setup.py
修改long_description=file('README.rst').read() -> long_description=open('README.rst').read()
修改version=livetest.__version__ -> version='0.5'
修改author_email=livetest.__author__ -> author_email='[email protected]'
3)修改执行 python setup.py install,安装成功
4)修改HttpLibrary的__init__.py (文件路径:C:\Python37\Lib\site-packages\HttpLibrary)
修改from urlparse import urlparse ->from urllib.parse import urlparse
修改except ValueError, e为 except ValueError as e (共两处)
重启ride即可