httprunner 3运行报错AttributeError: module 'allure' has no attribute 'severity_level'

很多查询结果都是先卸载pytest-allure-adaptor,然后再安装allure-pytest

pip3 uninstall pytest-allure-adaptor

pip3 install allure-pytest

尝试了好几次,仍然报错AttributeError: module 'allure' has no attribute 'severity_level'

因为在pycharm中用的python版本是3.6,所以也没怀疑是python版本问题,后来在终端验证python版本,默认是3.4.4

 

 可能是python版本问题,因为httprunner V3.x要求的python版本是>=3.6,<4.0,所以重新安装python 3.8版本后,运行正常

 

 

 

posted @ 2020-07-23 14:14  yimu-yimu  阅读(1550)  评论(0编辑  收藏  举报