-
Notifications
You must be signed in to change notification settings - Fork 11
Description
pluggy.manager.PluginValidationError: unknown hook 'pytest_namespace' in plugin <module 'allure_pytest.plugin' from
Seem to be hitting this bug. Quick google didn't show how to fix it.
pybind/pybind11#1670
(python374_sept_2019_venv) [bachs1x@loyalrabbit pytest_tutorial]$ pytest src/tests
=========================================================================================== test session starts ===========================================================================================
platform linux -- Python 3.7.4, pytest-5.1.3, py-1.8.0, pluggy-0.13.0 -- /home/bachs1x/python374_sept_2019_venv/bin/python3.7
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/home/bachs1x/current_directory/main_python/hypothesis-testing/pytest_tutorial/.hypothesis/examples')
metadata: {'Python': '3.7.4', 'Platform': 'Linux-3.10.0-957.27.2.el7.x86_64-x86_64-with-centos-7.6.1810-Core', 'Packages': {'pytest': '5.1.3', 'py': '1.8.0', 'pluggy': '0.13.0'}, 'Plugins': {'hypothesis': '4.36.2', 'allure-pytest': '2.5.0', 'metadata': '1.8.0', 'html': '2.0.0', 'forked': '1.0.2', 'xdist': '1.29.0', 'cov': '2.7.1'}}
rootdir: /home/bachs1x/current_directory/main_python/hypothesis-testing/pytest_tutorial/src, inifile: pytest.ini
plugins: hypothesis-4.36.2, allure-pytest-2.5.0, metadata-1.8.0, html-2.0.0, forked-1.0.2, xdist-1.29.0, cov-2.7.1
collected 16 items
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/home/bachs1x/python374_sept_2019_venv/lib/python3.7/site-packages/_pytest/main.py", line 191, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> File "/home/bachs1x/python374_sept_2019_venv/lib/python3.7/site-packages/_pytest/main.py", line 234, in _main
INTERNALERROR> config.hook.pytest_collection(session=session)
INTERNALERROR> File "/home/bachs1x/python374_sept_2019_venv/lib/python3.7/site-packages/pluggy/hooks.py", line 286, in call
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "/home/bachs1x/python374_sept_2019_venv/lib/python3.7/site-packages/pluggy/manager.py", line 92, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/home/bachs1x/python374_sept_2019_venv/lib/python3.7/site-packages/pluggy/manager.py", line 86, in
INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR> File "/home/bachs1x/python374_sept_2019_venv/lib/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/home/bachs1x/python374_sept_2019_venv/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/home/bachs1x/python374_sept_2019_venv/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/home/bachs1x/python374_sept_2019_venv/lib/python3.7/site-packages/_pytest/main.py", line 244, in pytest_collection
INTERNALERROR> return session.perform_collect()
INTERNALERROR> File "/home/bachs1x/python374_sept_2019_venv/lib/python3.7/site-packages/_pytest/main.py", line 438, in perform_collect
INTERNALERROR> self.config.pluginmanager.check_pending()
INTERNALERROR> File "/home/bachs1x/python374_sept_2019_venv/lib/python3.7/site-packages/pluggy/manager.py", line 275, in check_pending
INTERNALERROR> % (name, hookimpl.plugin),
INTERNALERROR> pluggy.manager.PluginValidationError: unknown hook 'pytest_namespace' in plugin <module 'allure_pytest.plugin' from '/home/bachs1x/python374_sept_2019_venv/lib/python3.7/site-packages/allure_pytest/plugin.py'>
(python374_sept_2019_venv) [bachs1x@loyalrabbit pytest_tutorial]$ pip freeze > requirements.txt
(python374_sept_2019_venv) [bachs1x@loyalrabbit pytest_tutorial]$ cat requirements.txt
allure-pytest==2.5.0
allure-python-commons==2.5.0
apipkg==1.5
appdirs==1.4.3
atomicwrites==1.3.0
attrs==19.1.0
black==19.3b0
boto3==1.9.228
botocore==1.12.228
certifi==2019.9.11
chardet==3.0.4
Click==7.0
coverage==4.5.4
Django==2.2.5
docutils==0.15.2
execnet==1.7.1
hypothesis==4.36.2
hypothesis-auto==1.1.1
hypothesis-fspaths==0.1
idna==2.8
importlib-metadata==0.23
Jinja2==2.10.1
jmespath==0.9.4
json2html==1.3.0
MarkupSafe==1.1.1
more-itertools==7.2.0
numpy==1.17.1
packaging==19.2
pandas==0.25.1
pluggy==0.13.0
py==1.8.0
pydantic==0.32.2
pyparsing==2.4.2
pytest==5.1.3
pytest-cov==2.7.1
pytest-forked==1.0.2
pytest-html==2.0.0
pytest-metadata==1.8.0
pytest-xdist==1.29.0
python-coveralls==2.9.3
python-dateutil==2.8.0
pytz==2019.2
PyYAML==5.1.2
requests==2.22.0
s3transfer==0.2.1
six==1.12.0
sqlparse==0.3.0
toml==0.10.0
urllib3==1.25.3
wcwidth==0.1.7
zipp==0.6.0