Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named '_pytest' #4

Closed
exarkun opened this issue Apr 27, 2022 · 4 comments
Closed

ModuleNotFoundError: No module named '_pytest' #4

exarkun opened this issue Apr 27, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@exarkun
Copy link

exarkun commented Apr 27, 2022

slipcover seems to have an undeclared dependency on pytest now.

python -m slipcover run --json --out slipcover.json -m twisted.trial sometestsuite

fails:

Traceback (most recent call last):
  File "C:\hostedtoolcache\windows\Python\3.9.12\x64\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\hostedtoolcache\windows\Python\3.9.12\x64\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\hostedtoolcache\windows\Python\3.9.12\x64\lib\site-packages\slipcover\__main__.py", line 153, in <module>
    wrap_pytest()
  File "C:\hostedtoolcache\windows\Python\3.9.12\x64\lib\site-packages\slipcover\__main__.py", line 112, in wrap_pytest
    import _pytest.assertion.rewrite
ModuleNotFoundError: No module named '_pytest'
Error: Process completed with exit code 1.
@jaltmayerpizzorno jaltmayerpizzorno added the bug Something isn't working label Apr 27, 2022
@jaltmayerpizzorno jaltmayerpizzorno self-assigned this Apr 27, 2022
@jaltmayerpizzorno
Copy link
Collaborator

jaltmayerpizzorno commented Apr 27, 2022

Ah indeed, I thought about this case but forgot to add it in (I should set up a test environment without pytest...)

@jaltmayerpizzorno
Copy link
Collaborator

Please try again with pip install -i https://test.pypi.org/simple/ slipcover==0.1.1.dev202204271309 and let me know if that solves it. Thank you!

@jaltmayerpizzorno
Copy link
Collaborator

I think this solves it... I'll bring it out as v1.1.2 before other people run into it.

@exarkun
Copy link
Author

exarkun commented Apr 28, 2022

Yep, this works for me. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants