-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
3.7.0: Hookspec method signature regression #3753
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
Comments
Hi @jperras, The hook signature did not change, but we are passing the |
I believe the version that was running that caused the error was The error was encountered during an automated test run that installed Our deps=
freezegun
pytest-mock
pytest
pyserial
pytest-asyncio
websockets
pytest_profiling
-rrequirements.txt |
It might be Line 72 in 2534193
I suggest to try recreating the environment with |
pytest requires pluggy >= 0.7, while we always use pluggy 0.6, as specified by requirements.txt. as this version is good enough for tox. but in tox.ini, we do use pytest, and no version is specified, so we have good chance running into pytest-dev/pytest#3753 Signed-off-by: Kefu Chai <[email protected]>
pytest requires pluggy >= 0.7, while we always use pluggy 0.6, as specified by requirements.txt. as this version is good enough for tox. but in tox.ini, we do use pytest, and no version is specified, so we have good chance running into pytest-dev/pytest#3753 also, remove pytest from tox.ini, as this dependency has been added in requirements.txt Signed-off-by: Kefu Chai <[email protected]>
This is happening to me on Travis, even after I clear the caches, but only on some of the jobs? https://travis-ci.com/nedbat/coveragepy/builds/81086869 The failures are on the jobs measuring coverage, which might reuse the environment (I'm unclear on the Travis details). |
@nedbat looks like travis is broken |
The problem seems to be that tox has this requirement: |
@nedbat neat find, thanks for sharing, it might need a fix in tox |
Closing as this is not really related to pytest. Thanks to all participants! |
Sorry to be the bearer of bad news, but
still not fixed, rolling back to pytest-3.6.4 |
@kevindawson still a pip issue - pytest has correctly listed that it needs a newer pluggy version |
@kevindawson on second thought - it seems to more of a system issue |
@RonnyPfannschmidt thanks for the prompt baff ;)
|
@kevindawson as starting point, ask pip what version of pluggy it has installed, also check the pythonpath its possible that a system level install is shadowing the newer version (it looks like you are on a debian or derivative and did a global install) |
many thanks |
you were quite correct
again many thanks |
this snippet might be of some use
alive n kicking now ;) |
@kevindawson thanks for the update on the working package-set, please include a reference to the hicup you faced for future reference i'm happy its alright now, but me and future victims of the problem might want to know whats wrong |
@RonnyPfannschmidt ok, I trust this is what you were looking for ;) My HiccupIt's possible that a system level install is shadowing the newer version ? YES I am new to Python but not to nix, so decided I would use 3.6. As all apps are easy to install, I only need ONE copy even thought I do have numerous user accounts.
Should have been all that I needed, But
CLEAN
All Good |
@kevindawson thanks for following up with the steps and the problem that happened the issue you faced is the main reason why we strongly recommend using virtualenvs instead of the system python (since it is entirely possible that you inadvertently broke something that's part of your system by using pip on the system python using sudo) |
Thanks for the info. I was trying to avoid virtualenvs per project
Any pointers on Git & virtualenvs best practices, please |
hmm, personally i just use virtualenvs and tox often |
many thanks |
@kevindawson fabulous, i'm happy you found a setup that works for you and shared it with us |
This still seems like an issue in some way or another? I get the same when I try doing
Indeed pip installed edit: It also doesn't install |
Weird, it works for me with |
Based off discussion [here](pytest-dev/pytest#3753)
When upgrading from pytest 3.6.x to 3.7, it seems as though the signature for
hookspec
has changed:Reverting back to 3.6.4 fixes the issue.
Plugins being used:
The text was updated successfully, but these errors were encountered: