-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Internalerror KeyError: 'nodeid' #1034
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
@flub assisted on IRC and I removed and reinstalled pytest-xdist using pip and that solved the issue. $ py.test --version Should I delete this issue? |
If you don't have any more questions, please do. 😄 |
we should still report a bug to pluggy, since the error messages it gives are subpar atm |
Thanks Ronny! |
My project just started throwing this error today on TravisCI. Pinning to pytest 2.7.2 solves the issue for now. |
Can you share the project? Or at least which plugins it uses? This still has to be studied better, but it seems to be a hook calling another without all required arguments. |
Sure, here's the exact error: https://travis-ci.org/django-json-api/django-rest-framework-json-api/jobs/81470678 |
Thanks! |
I'm reopening this... I think there's a deeper problem here, because @jerel's project uses pure pytest. Looking at the traceback, perhaps it has something to do with @RonnyPfannschmidt what do you think? |
👍 having this issue internally too. I can't share logs, but I can try to make a test-case if it's not obvious from the above error. The build fails with this requirements.txt:
and passes with this:
|
@habnabit can you share the exact versions of the libraries as well? |
Same behavior with the following versions:
|
@RonnyPfannschmidt
error:
|
Also just run into this, was running fine until I added pytest-factoryboy. Downgrading to 2.7.2 "fixes" it for me. working:
|
recent pluggy made a better exception handler for anyone testing this, can you install pluggy from git and remove the vendored one in the pytest install |
Assuming the commit above does the trick, pytest is bailing trying to print the following warning message when using
|
Looks like addhooks may indeed be the problem in pytest-factoryboy. |
When I try running tests with py.test version 2.8.0 on my Ubuntu 14.04 LTS machine, I get the following internal error:
$ py.test
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/main.py", line 86, in wrap_session
INTERNALERROR> config._do_configure()
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/config.py", line 829, in _do_configure
INTERNALERROR> self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 729, in call_historic
INTERNALERROR> self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 333, in
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/xdist/plugin.py", line 62, in pytest_configure
INTERNALERROR> multicall.execute()
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/terminal.py", line 47, in pytest_configure
INTERNALERROR> config.pluginmanager.register(reporter, 'terminalreporter')
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/config.py", line 206, in register
INTERNALERROR> ret = super(PytestPluginManager, self).register(plugin, name)
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 370, in register
INTERNALERROR> hook._maybe_apply_history(hookimpl)
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 747, in _maybe_apply_history
INTERNALERROR> res = self._hookexec(self, [method], kwargs)
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 333, in
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 593, in execute
INTERNALERROR> args = [all_kwargs[argname] for argname in hook_impl.argnames]
INTERNALERROR> KeyError: 'nodeid'
$ py.test --version
This is pytest version 2.8.0, imported from /usr/local/lib/python2.7/dist-packages/pytest.pyc
setuptools registered plugins:
pytest-xdist-1.11 at /usr/local/lib/python2.7/dist-packages/xdist/plugin.pyc
What's wrong?
The text was updated successfully, but these errors were encountered: