很多查询结果都是先卸载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

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

 

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

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

 

 

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

 

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2021-09-02
  • 2021-12-16
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
猜你喜欢
  • 2021-06-11
  • 2022-12-23
  • 2021-06-17
  • 2022-01-26
  • 2021-07-17
  • 2022-12-23
相关资源
相似解决方案