man-group / man-group/notebooker
docker, AttributeError: module 'pytest' has no attribute 'StashKey'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 939
- Forks
- 95
- Avg merge
- 9d 1h
- Merged PRs (30d)
- 1
Description
when I run docker-compose up, I met error:
251.2
251.2 The HTML pages are in build/sphinx/html.
251.4 + py.test tests
253.0 Traceback (most recent call last):
253.0 File "/opt/conda/bin//py.test", line 11, in
253.0 sys.exit(main())
253.0 File "/opt/conda/lib/python3.8/site-packages/_pytest/config/__init__.py", line 105, in main
253.0 config = _prepareconfig(args, plugins)
253.0 File "/opt/conda/lib/python3.8/site-packages/_pytest/config/__init__.py", line 257, in _prepareconfig
253.0 return pluginmanager.hook.pytest_cmdline_parse(
253.0 File "/opt/conda/lib/python3.8/site-packages/pluggy/hooks.py", line 286, in __call__
253.0 return self._hookexec(self, self.get_hookimpls(), kwargs)
253.0 File "/opt/conda/lib/python3.8/site-packages/pluggy/manager.py", line 93, in _hookexec
253.0 return self._inner_hookexec(hook, methods, kwargs)
253.0 File "/opt/conda/lib/python3.8/site-packages/pluggy/manager.py", line 84, in
253.0 self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
253.0 File "/opt/conda/lib/python3.8/site-packages/pluggy/callers.py", line 203, in _multicall
253.0 gen.send(outcome)
253.0 File "/opt/conda/lib/python3.8/site-packages/_pytest/helpconfig.py", line 90, in pytest_cmdline_parse
253.0 config = outcome.get_result()
253.0 File "/opt/conda/lib/python3.8/site-packages/pluggy/callers.py", line 80, in get_result
253.0 raise ex[1].with_traceback(ex[2])
253.0 File "/opt/conda/lib/python3.8/site-packages/pluggy/callers.py", line 187, in _multicall
253.0 res = hook_impl.function(*args)
253.0 File "/opt/conda/lib/python3.8/site-packages/_pytest/config/__init__.py", line 836, in pytest_cmdline_parse
253.0 self.parse(args)
253.0 File "/opt/conda/lib/python3.8/site-packages/_pytest/config/__init__.py", line 1044, in parse
253.0 self._preparse(args, addopts=addopts)
253.0 File "/opt/conda/lib/python3.8/site-packages/_pytest/config/__init__.py", line 992, in _preparse
253.0 self.pluginmanager.load_setuptools_entrypoints("pytest11")
253.0 File "/opt/conda/lib/python3.8/site-packages/pluggy/manager.py", line 299, in load_setuptools_entrypoints
253.0 plugin = ep.load()
253.0 File "/opt/conda/lib/python3.8/importlib/metadata.py", line 77, in load
253.0 module = import_module(match.group('module'))
253.0 File "/opt/conda/lib/python3.8/importlib/__init__.py", line 127, in import_module
253.0 return _bootstrap._gcd_import(name[level:], package, level)
253.0 File "", line 1014, in _gcd_import
253.0 File "", line 991, in _find_and_load
253.0 File "", line 975, in _find_and_load_unlocked
253.0 File "", line 671, in _load_unlocked
253.0 File "/opt/conda/lib/python3.8/site-packages/_pytest/assertion/rewrite.py", line 152, in exec_module
253.0 exec(co, module.__dict__)
253.0 File "/opt/conda/lib/python3.8/site-packages/pytest_timeout.py", line 22, in
253.0 SESSION_TIMEOUT_KEY = pytest.StashKey[float]()
253.0 AttributeError: module 'pytest' has no attribute 'StashKey'
------
failed to solve: process "/bin/sh -c set -eux ; pip install -e \".[prometheus, test, docs]\" ; python -m ipykernel install --user --name=notebooker_kernel ; pip install nbformat jupyter-core jupyter-client Pandoc --upgrade ; pip install -r ./notebooker/notebook_templates_example/notebook_requirements.txt ; python setup.py develop ; python setup.py build_sphinx ; py.test tests ; python setup.py bdist_wheel --universal" did not complete successfully: exit code: 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect setup.py and notebooker/notebook_templates_example/notebook_requirements.txt, then check the pytest and pytest-timeout versions installed during the Docker build. Re-run docker-compose up through py.test tests and confirm the build completes without the StashKey traceback.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker-compose, jupyter-notebook, python
- Domain
- build-system, devops, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100