allure运行报错TypeError:attrib() got an unexpected keyword argument 'convert'

一、初始环境:
python: 3.6.5
allure: 2.7
pytest: 4.0.1
pytest-html: 1.3
attrs: 19.3.0
二、生成报告时报错信息:
(1)在cmd中输入: allure generate --clean report/result -o report/html 回车,出现报错信息“TypeError:attrib() got an unexpected keyword argument ‘convert’”如图:
allure运行报错TypeError:attrib() got an unexpected keyword argument 'convert'
百度查询的结果解决这类问题的资料比较少 ,其实总结来说,出现这种莫名其妙的报错信息基本都是因为安装的插件与python兼容性有冲突导致的
三、解决步骤:
(1)卸载attrs 19.3.0版本,命令:pip uninstall attrs
allure运行报错TypeError:attrib() got an unexpected keyword argument 'convert'
(2)卸载成功后,重新安装attrs 19.1.0版本,命令:pip install attrs==19.1.0
(3)重新输入:allure generate --clean report/result -o report/html 回车,成功:
allure运行报错TypeError:attrib() got an unexpected keyword argument 'convert'
注:肯定有小伙伴会有疑问,你是怎么知道attrs的版本不兼容的呢?
百度搜索到的链接如下:https://*.com/questions/58189683/typeerror-attrib-got-an-unexpected-keyword-argument-convert

跟我一起见证成长过程的你,记得关注我哦~