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

KeyError: 'nodeid' #148

Closed
hddmet opened this issue Sep 20, 2015 · 6 comments
Closed

KeyError: 'nodeid' #148

hddmet opened this issue Sep 20, 2015 · 6 comments

Comments

@hddmet
Copy link

hddmet commented Sep 20, 2015

Hi there,

I am getting KeyError: 'nodeid' when running py.test with pytest-bdd installed. py.test seems to detect pytest-bdd plugin but it stops running when trying to load it. I am not sure whether the error is caused by my setup environment or because there is an api incompatibility between the latest py.test and pytest-bdd plugin. Please help. If you required additional info, please let me know.

Traceback

pluggy.py", line 593, in <listcomp>
INTERNALERROR>     args = [all_kwargs[argname] for argname in hook_impl.argnames]
INTERNALERROR> KeyError: 'nodeid'
  • Details traceback is also included

My setup environment

OS: centos 7.1 3.10.0-229.14.1.el7.x86_64
virtualenvwrapper
python 3.4.3

python package list

coverage (4.0)
glob2 (0.4.1)
Mako (1.0.2)
MarkupSafe (0.23)
parse (1.6.6)
parse-type (0.3.4)
pip (7.1.2)
py (1.4.30)
pytest (2.8.0)
pytest-bdd (2.15.0)
setuptools (18.2)
six (1.9.0)
wheel (0.24.0)

Detailed traceback:

INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/home/aaron/dev/virtualenv/py34-skeleton/lib/python3.4/site-packages/_pytest/main.py", line 86, in wrap_session
INTERNALERROR>     config._do_configure()
INTERNALERROR>   File "/home/aaron/dev/virtualenv/py34-skeleton/lib/python3.4/site-packages/_pytest/config.py", line 829, in _do_configure
INTERNALERROR>     self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
INTERNALERROR>   File "/home/aaron/dev/virtualenv/py34-skeleton/lib/python3.4/site-packages/_pytest/vendored_packages/pluggy.py", line 729, in call_historic
INTERNALERROR>     self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR>   File "/home/aaron/dev/virtualenv/py34-skeleton/lib/python3.4/site-packages/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "/home/aaron/dev/virtualenv/py34-skeleton/lib/python3.4/site-packages/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR>     _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR>   File "/home/aaron/dev/virtualenv/py34-skeleton/lib/python3.4/site-packages/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "/home/aaron/dev/virtualenv/py34-skeleton/lib/python3.4/site-packages/_pytest/terminal.py", line 47, in pytest_configure
INTERNALERROR>     config.pluginmanager.register(reporter, 'terminalreporter')
INTERNALERROR>   File "/home/aaron/dev/virtualenv/py34-skeleton/lib/python3.4/site-packages/_pytest/config.py", line 206, in register
INTERNALERROR>     ret = super(PytestPluginManager, self).register(plugin, name)
INTERNALERROR>   File "/home/aaron/dev/virtualenv/py34-skeleton/lib/python3.4/site-packages/_pytest/vendored_packages/pluggy.py", line 370, in register
INTERNALERROR>     hook._maybe_apply_history(hookimpl)
INTERNALERROR>   File "/home/aaron/dev/virtualenv/py34-skeleton/lib/python3.4/site-packages/_pytest/vendored_packages/pluggy.py", line 747, in _maybe_apply_history
INTERNALERROR>     res = self._hookexec(self, [method], kwargs)
INTERNALERROR>   File "/home/aaron/dev/virtualenv/py34-skeleton/lib/python3.4/site-packages/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "/home/aaron/dev/virtualenv/py34-skeleton/lib/python3.4/site-packages/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR>     _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR>   File "/home/aaron/dev/virtualenv/py34-skeleton/lib/python3.4/site-packages/_pytest/vendored_packages/pluggy.py", line 593, in execute
INTERNALERROR>     args = [all_kwargs[argname] for argname in hook_impl.argnames]
INTERNALERROR>   File "/home/aaron/dev/virtualenv/py34-skeleton/lib/python3.4/site-packages/_pytest/vendored_packages/pluggy.py", line 593, in <listcomp>
INTERNALERROR>     args = [all_kwargs[argname] for argname in hook_impl.argnames]
INTERNALERROR> KeyError: 'nodeid'
@rafaduran
Copy link

I'm getting same error, works fine with pytest<2.8.0

@hddmet
Copy link
Author

hddmet commented Sep 21, 2015

Ok Rafael, thanks for the heads-up. I guess I will need to use pytest < 2.8.0 for
the time being.

On Mon, Sep 21, 2015 at 3:37 AM, Rafael Durán Castañeda <
notifications@github.com> wrote:

I'm getting same error, works fine with pytest<2.8.0


Reply to this email directly or view it on GitHub
#148 (comment)
.

@bubenkoff
Copy link
Member

yes it's actually pytest issue, still not solved
we can't merge #149 because of pytest-dev/pytest#1062

@hddmet
Copy link
Author

hddmet commented Oct 2, 2015

Thanks.

On Thu, Oct 1, 2015, 3:13 PM Anatoly Bubenkov notifications@github.com
wrote:

yes it's actually pytest issue, still not solved
we can't merge #149 #149
because of pytest-dev/pytest#1062
pytest-dev/pytest#1062


Reply to this email directly or view it on GitHub
#148 (comment)
.

@hddmet
Copy link
Author

hddmet commented Oct 2, 2015

By the way, it is no longer an issue for me since I am using pytest<2.8 as
suggested by Rafael. Therefore, it is fine with me if you prefer to close
this report since #149 already addresses the same issue.

On Fri, Oct 2, 2015, 8:48 AM Aaron Diep ahkdiep@gmail.com wrote:

Thanks.

On Thu, Oct 1, 2015, 3:13 PM Anatoly Bubenkov notifications@github.com
wrote:

yes it's actually pytest issue, still not solved
we can't merge #149 #149
because of pytest-dev/pytest#1062
pytest-dev/pytest#1062


Reply to this email directly or view it on GitHub
#148 (comment)
.

@olegpidsadnyi
Copy link
Contributor

This seems to be no longer an issue since pytest is fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants