question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

module 'pytest' has no attribute 'allure'

See original GitHub issue

from pytest-allure-adaptor to allure-python2 but error: module 'pytest' has no attribute 'allure'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

6reactions
sseliverstovcommented, Jun 2, 2017

At first remove old version and install new:

pip uninstall pytest-allure-adaptor
pip install allure-pytest

And then, run your tests with alluredir option:

pytest --alluredir=%yourdir% ...

Please, send full stack traces if it still doesn’t work

1reaction
eskignaxcommented, Aug 23, 2018

@Abhilash04, I got the same issue and I solved it. I tried many things but rebuild the docker image with –no-cache option, solved the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

module 'pytest' has no attribute 'allure' - python - Stack Overflow
I think you have not installed the Allure-pytest package. you have to install it in your project using the below command.
Read more >
module 'pytest' has no attribute 'allure' · Issue #631 - GitHub
E AttributeError : module 'pytest' has no attribute 'allure'. I am using below plugins for the project and python version is latest one:...
Read more >
Getting AttributeError: module 'pytest' has no attribute 'main ...
Showing uo below error message after running the pytest code. ... Hey,. Please make sure you make the following checks: 1. The test...
Read more >
module 'pytest' has no attribute 'hookimpl'" running tests in ...
"AttributeError: module 'pytest' has no attribute 'hookimpl'" running tests in PyCharm. Open two Python projects in the same PyCharm window. In Settings > ......
Read more >
module 'pytest' has no attribute 'allure'问题解决_贰半的博客
pytho... ... 这个时候我们pip install py,对自带的py进行一个升级,覆盖掉这个内建的py即可。安装:pytest和pytest-parallel。
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found