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
ImportError: cannot import name 'DepConfig' from 'tox.config' upon running tox
Environment
Provide at least:
OS: macOS
pip list of the host Python where tox is installed:
tox == 4.0.15
Output of running tox
Provide the output of tox -rvv:
Traceback (most recent call last): File "/Users/wookayin/.miniforge3/envs/py311/bin/tox", line 8, in <module> sys.exit(run()) ^^^^^ File "/Users/wookayin/.miniforge3/envs/py311/lib/python3.11/site-packages/tox/run.py", line 19, in run result = main(sys.argv[1:] if args is None else args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/wookayin/.miniforge3/envs/py311/lib/python3.11/site-packages/tox/run.py", line 38, in main state = setup_state(args) ^^^^^^^^^^^^^^^^^ File "/Users/wookayin/.miniforge3/envs/py311/lib/python3.11/site-packages/tox/run.py", line 53, in setup_state options = get_options(*args) ^^^^^^^^^^^^^^^^^^ File "/Users/wookayin/.miniforge3/envs/py311/lib/python3.11/site-packages/tox/config/cli/parse.py", line 38, in get_options guess_verbosity, log_handler, source = _get_base(args) ^^^^^^^^^^^^^^^ File "/Users/wookayin/.miniforge3/envs/py311/lib/python3.11/site-packages/tox/config/cli/parse.py", line 61, in _get_base MANAGER.load_plugins(source.path) File "/Users/wookayin/.miniforge3/envs/py311/lib/python3.11/site-packages/tox/plugin/manager.py", line 90, in load_plugins self._register_plugins(inline) File "/Users/wookayin/.miniforge3/envs/py311/lib/python3.11/site-packages/tox/plugin/manager.py", line 38, in _register_plugins self.manager.load_setuptools_entrypoints(NAME) File "/Users/wookayin/.miniforge3/envs/py311/lib/python3.11/site-packages/pluggy/_manager.py", line 287, in load_setuptools_entrypoints plugin = ep.load() ^^^^^^^^^ File "/Users/wookayin/.miniforge3/envs/py311/lib/python3.11/importlib/metadata/__init__.py", line 198, in load module = import_module(match.group('module')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/wookayin/.miniforge3/envs/py311/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1206, in _gcd_import File "<frozen importlib._bootstrap>", line 1178, in _find_and_load File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/Users/wookayin/.miniforge3/envs/py311/lib/python3.11/site-packages/testmon/tox_testmon.py", line 6, in <module> from tox.config import DepConfigImportError: cannot import name 'DepConfig' from 'tox.config' (/Users/wookayin/.miniforge3/envs/py311/lib/python3.11/site-packages/tox/config/__init__.py)
Minimal example
If possible, provide a minimal reproducer for the issue:
# tox.ini[tox]env_list = py310 py39 py38 py37
$ tox
The text was updated successfully, but these errors were encountered:
Seems this happens with tox >= 4.0; it's OK with tox < 4.0. Was DepConfig deprecated or removed?
Seems this is a problem of pytest-testmon (installed: 1.4.2) that is not compatible with tox 4.x. Removing pytest-testmon resolves the issue temporarily.
Issue
ImportError: cannot import name 'DepConfig' from 'tox.config' upon running
tox
Environment
Provide at least:
pip list
of the host Python wheretox
is installed:tox == 4.0.15
Output of running tox
Provide the output of
tox -rvv
:Minimal example
If possible, provide a minimal reproducer for the issue:
$ tox
The text was updated successfully, but these errors were encountered: