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版本后,运行正常

 

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM