You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/runner/.local/lib/python3.10/site-packages/tox/__main__.py", line 6, in <module>
run()
File "/home/runner/.local/lib/python3.10/site-packages/tox/run.py", line 19, in run
result = main(sys.argv[1:] if args is None else args)
File "/home/runner/.local/lib/python3.10/site-packages/tox/run.py", line [38](https://github.com/Dmitri-Sintsov/djk-sample/actions/runs/3469672017/jobs/5797158793#step:5:39), in main
state = setup_state(args)
File "/home/runner/.local/lib/python3.10/site-packages/tox/run.py", line 53, in setup_state
options = get_options(*args)
File "/home/runner/.local/lib/python3.10/site-packages/tox/config/cli/parse.py", line 38, in get_options
guess_verbosity, log_handler, source = _get_base(args)
File "/home/runner/.local/lib/python3.10/site-packages/tox/config/cli/parse.py", line 61, in _get_base
MANAGER.load_plugins(source.path)
File "/home/runner/.local/lib/python3.10/site-packages/tox/plugin/manager.py", line 83, in load_plugins
self._register_plugins(inline)
File "/home/runner/.local/lib/python3.10/site-packages/tox/plugin/manager.py", line 37, in _register_plugins
self.manager.load_setuptools_entrypoints(NAME)
File "/home/runner/.local/lib/python3.10/site-packages/pluggy/_manager.py", line 287, in load_setuptools_entrypoints
plugin = ep.load()
File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
module = import_module(match.group('module'))
File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 2[41](https://github.com/Dmitri-Sintsov/djk-sample/actions/runs/3469672017/jobs/5797158793#step:5:42), in _call_with_frames_removed
File "/home/runner/.local/lib/python3.10/site-packages/tox_pyenv.py", line [47](https://github.com/Dmitri-Sintsov/djk-sample/actions/runs/3469672017/jobs/5797158793#step:5:48), in <module>
import py
ModuleNotFoundError: No module named 'py'
Error: Process completed with exit code 1.
Environment
Provide at least:
Environment used to run the tests
Kernel version
Linux fv-az251-82 5.15.0-1024-azure #30-Ubuntu SMP Wed Nov 16 [23](https://github.com/Dmitri-Sintsov/djk-sample/actions/runs/3469672017/jobs/5797158793#step:5:24):37:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
System version
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
Python version
Python 3.10.8
Chrome version
Google Chrome 108.0.5359.94
Chrome driver version
ChromeDriver 108.0.5[35](https://github.com/Dmitri-Sintsov/djk-sample/actions/runs/3469672017/jobs/5797158793#step:5:36)9.71 (1e0e3868ee06e91ad6[36](https://github.com/Dmitri-Sintsov/djk-sample/actions/runs/3469672017/jobs/5797158793#step:5:37)a874420e3ca3ae3756ac-refs/branch-heads/5359@{#1016})
Output of running tox
I cannot re-run arbitrary tox commands from github action console, however using local environment with the same Ubuntu 22.04 produces the following error:
user@h67:~/work/djk-sample310/djk-sample$ python3 -m tox -r -e py3.10-django-4.1-bs3
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/user/work/djk-sample310/lib/python3.10/site-packages/tox/__main__.py", line 6, in <module>
run()
File "/home/user/work/djk-sample310/lib/python3.10/site-packages/tox/run.py", line 19, in run
result = main(sys.argv[1:] if args is None else args)
File "/home/user/work/djk-sample310/lib/python3.10/site-packages/tox/run.py", line 38, in main
state = setup_state(args)
File "/home/user/work/djk-sample310/lib/python3.10/site-packages/tox/run.py", line 53, in setup_state
options = get_options(*args)
File "/home/user/work/djk-sample310/lib/python3.10/site-packages/tox/config/cli/parse.py", line 38, in get_options
guess_verbosity, log_handler, source = _get_base(args)
File "/home/user/work/djk-sample310/lib/python3.10/site-packages/tox/config/cli/parse.py", line 61, in _get_base
MANAGER.load_plugins(source.path)
File "/home/user/work/djk-sample310/lib/python3.10/site-packages/tox/plugin/manager.py", line 83, in load_plugins
self._register_plugins(inline)
File "/home/user/work/djk-sample310/lib/python3.10/site-packages/tox/plugin/manager.py", line 37, in _register_plugins
self.manager.load_setuptools_entrypoints(NAME)
File "/home/user/work/djk-sample310/lib/python3.10/site-packages/pluggy/_manager.py", line 287, in load_setuptools_entrypoints
plugin = ep.load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/user/work/djk-sample310/lib/python3.10/site-packages/tox_pyenv.py", line 48, in <module>
from tox import hookimpl as tox_hookimpl
ImportError: cannot import name 'hookimpl' from 'tox' (/home/user/work/djk-sample310/lib/python3.10/site-packages/tox/__init__.py)
Provide the output of tox -rvv:
user@h67:~/work/djk-sample310/djk-sample$ tox -rvv
Traceback (most recent call last):
File "/home/user/work/djk-sample310/bin/tox", line 8, in <module>
sys.exit(run())
File "/home/user/work/djk-sample310/lib/python3.10/site-packages/tox/run.py", line 19, in run
result = main(sys.argv[1:] if args is None else args)
File "/home/user/work/djk-sample310/lib/python3.10/site-packages/tox/run.py", line 38, in main
state = setup_state(args)
File "/home/user/work/djk-sample310/lib/python3.10/site-packages/tox/run.py", line 53, in setup_state
options = get_options(*args)
File "/home/user/work/djk-sample310/lib/python3.10/site-packages/tox/config/cli/parse.py", line 38, in get_options
guess_verbosity, log_handler, source = _get_base(args)
File "/home/user/work/djk-sample310/lib/python3.10/site-packages/tox/config/cli/parse.py", line 61, in _get_base
MANAGER.load_plugins(source.path)
File "/home/user/work/djk-sample310/lib/python3.10/site-packages/tox/plugin/manager.py", line 83, in load_plugins
self._register_plugins(inline)
File "/home/user/work/djk-sample310/lib/python3.10/site-packages/tox/plugin/manager.py", line 37, in _register_plugins
self.manager.load_setuptools_entrypoints(NAME)
File "/home/user/work/djk-sample310/lib/python3.10/site-packages/pluggy/_manager.py", line 287, in load_setuptools_entrypoints
plugin = ep.load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/user/work/djk-sample310/lib/python3.10/site-packages/tox_pyenv.py", line 48, in <module>
from tox import hookimpl as tox_hookimpl
ImportError: cannot import name 'hookimpl' from 'tox' (/home/user/work/djk-sample310/lib/python3.10/site-packages/tox/__init__.py)
user@h67:~/work/djk-sample310/djk-sample$
Minimal example
One may re-run project jobs manually, however tox has to be updated or perhaps something has to be fixed in tox.ini and / or github actions settings.
Reverting locally to tox 3.x works fine in the same local environment:
Issue
github actions fail with updated to stable tox 4.x
With previous stable version of tox (https://pypi.org/project/tox/3.27.1/) the github actions were running just fine:
https://github.com/Dmitri-Sintsov/djk-sample/actions/runs/3469672017/jobs/5797158793
Now when stable tox 4.x is out and is picked by pip, the actions produce the following error:
https://github.com/Dmitri-Sintsov/djk-sample/actions/runs/3647429807/jobs/6159652294#step:5:74
Environment
Provide at least:
Output of running tox
I cannot re-run arbitrary tox commands from github action console, however using local environment with the same Ubuntu 22.04 produces the following error:
Provide the output of
tox -rvv
:Minimal example
One may re-run project jobs manually, however tox has to be updated or perhaps something has to be fixed in tox.ini and / or github actions settings.
Reverting locally to tox 3.x works fine in the same local environment:
The text was updated successfully, but these errors were encountered: