Closed JulienPalard closed 1 year ago
I'm surprised this worked with old tox. Unfortunately, your specs are not valid, per https://peps.python.org/pep-0440/#version-specifiers:
A version specifier consists of a series of version clauses, separated by commas.
So you need to specify matplotlib>=2,<3
, not matplotlib>=2<3
.
Oh oh.
Sorry for the noise, and thank you so much @gaborbernat answering so fast and for your work on tox!!!
Issue
I'm having:
It was working on tox 3 but starts to break with tox 4 with:
(The
./
are added)Environment
Provide at least:
pip list
``` Package Version ------------- ------- cachetools 5.3.0 chardet 5.1.0 colorama 0.4.6 distlib 0.3.6 filelock 3.9.0 packaging 23.0 pip 22.3.1 platformdirs 2.6.2 pluggy 1.0.0 pyproject_api 1.5.0 setuptools 65.6.3 tomli 2.0.1 tox 4.4.2 virtualenv 20.17.1 ```Output of running tox
The output of `tox -rvv py39-high`
```console $ tox -rvv -e py39-high py39-high: 334 W remove tox env folder /home/mdk/clones/mdk/oeis/.tox/py39-high [tox/tox_env/api.py:321] .pkg: 400 W remove tox env folder /home/mdk/clones/mdk/oeis/.tox/.pkg [tox/tox_env/api.py:321] py39-high: 414 I find interpreter for spec PythonSpec(major=3, minor=9) [virtualenv/discovery/builtin.py:56] py39-high: 414 D discover exe for PythonInfo(spec=CPython3.10.9.final.0-64, exe=/home/mdk/clones/mdk/oeis/.venv/bin/python, platform=linux, version='3.10.9 (main, Dec 7 2022, 13:47:07) [GCC 12.2.0]', encoding_fs_io=utf-8-utf-8) in /usr [virtualenv/discovery/py_info.py:437] py39-high: 423 D filesystem is case-sensitive [virtualenv/info.py:24] py39-high: 425 D got python info of /usr/bin/python3.10 from /home/mdk/.local/share/virtualenv/py_info/1/8a94588eda9d64d9e9a351ab8144e55b1fabf5113b54e67dd26a8c27df0381b3.json [virtualenv/app_data/via_disk_folder.py:129] py39-high: 426 I proposed PythonInfo(spec=CPython3.10.9.final.0-64, system=/usr/bin/python3.10, exe=/home/mdk/clones/mdk/oeis/.venv/bin/python, platform=linux, version='3.10.9 (main, Dec 7 2022, 13:47:07) [GCC 12.2.0]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:63] py39-high: 426 D discover PATH[0]=/home/mdk/clones/mdk/oeis/.venv/bin/ [virtualenv/discovery/builtin.py:108] py39-high: 427 D got python info of /home/mdk/clones/mdk/oeis/.venv/bin/python3 from /home/mdk/.local/share/virtualenv/py_info/1/f060083d106e46a10a0e6286c1f52ce9e3e1548d3beccef8cec3bd001b34d056.json [virtualenv/app_data/via_disk_folder.py:129] py39-high: 428 D discover exe from cache /usr - exact False: PythonInfo({'architecture': 64, 'base_exec_prefix': '/usr', 'base_prefix': '/usr', 'distutils_install': {}, 'exec_prefix': '/usr', 'executable': '/home/mdk/clones/mdk/oeis/.venv/bin/python', 'file_system_encoding': 'utf-8', 'has_venv': True, 'implementation': 'CPython', 'max_size': 9223372036854775807, 'original_executable': '/usr/bin/python3.10', 'os': 'posix', 'path': ['/home/mdk/clones/mdk/oeis/.venv/lib/python3.10/site-packages/virtualenv/discovery', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/usr/local/lib/python3.10/dist-packages', '/usr/lib/python3/dist-packages', '/usr/lib/python3.10/dist-packages'], 'platform': 'linux', 'prefix': '/usr', 'real_prefix': None, 'stdout_encoding': 'utf-8', 'sysconfig': {'makefile_filename': '/usr/lib/python3.10/config-3.10-x86_64-linux-gnu/Makefile'}, 'sysconfig_paths': {'data': '{base}', 'include': '{installed_base}/include/python{py_version_short}{abiflags}', 'platlib': '{platbase}/{platlibdir}/python{py_version_short}/site-packages', 'platstdlib': '{platbase}/{platlibdir}/python{py_version_short}', 'purelib': '{base}/lib/python{py_version_short}/site-packages', 'scripts': '{base}/bin', 'stdlib': '{installed_base}/{platlibdir}/python{py_version_short}'}, 'sysconfig_scheme': 'posix_prefix', 'sysconfig_vars': {'PYTHONFRAMEWORK': '', 'abiflags': '', 'base': '/usr', 'installed_base': '/usr', 'platbase': '/usr', 'platlibdir': 'lib', 'py_version_short': '3.10'}, 'system_executable': '/usr/bin/python3.10', 'system_stdlib': '/usr/lib/python3.10', 'system_stdlib_platform': '/usr/lib/python3.10', 'version': '3.10.9 (main, Dec 7 2022, 13:47:07) [GCC 12.2.0]', 'version_info': VersionInfo(major=3, minor=10, micro=9, releaselevel='final', serial=0), 'version_nodot': '310'}) [virtualenv/discovery/py_info.py:435] py39-high: 428 D discover exe from cache /usr - exact False: PythonInfo({'architecture': 64, 'base_exec_prefix': '/usr', 'base_prefix': '/usr', 'distutils_install': {}, 'exec_prefix': '/usr', 'executable': '/home/mdk/clones/mdk/oeis/.venv/bin/python3', 'file_system_encoding': 'utf-8', 'has_venv': True, 'implementation': 'CPython', 'max_size': 9223372036854775807, 'original_executable': '/usr/bin/python3.10', 'os': 'posix', 'path': ['/home/mdk/clones/mdk/oeis/.venv/lib/python3.10/site-packages/virtualenv/discovery', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/usr/local/lib/python3.10/dist-packages', '/usr/lib/python3/dist-packages', '/usr/lib/python3.10/dist-packages'], 'platform': 'linux', 'prefix': '/usr', 'real_prefix': None, 'stdout_encoding': 'utf-8', 'sysconfig': {'makefile_filename': '/usr/lib/python3.10/config-3.10-x86_64-linux-gnu/Makefile'}, 'sysconfig_paths': {'data': '{base}', 'include': '{installed_base}/include/python{py_version_short}{abiflags}', 'platlib': '{platbase}/{platlibdir}/python{py_version_short}/site-packages', 'platstdlib': '{platbase}/{platlibdir}/python{py_version_short}', 'purelib': '{base}/lib/python{py_version_short}/site-packages', 'scripts': '{base}/bin', 'stdlib': '{installed_base}/{platlibdir}/python{py_version_short}'}, 'sysconfig_scheme': 'posix_prefix', 'sysconfig_vars': {'PYTHONFRAMEWORK': '', 'abiflags': '', 'base': '/usr', 'installed_base': '/usr', 'platbase': '/usr', 'platlibdir': 'lib', 'py_version_short': '3.10'}, 'system_executable': '/usr/bin/python3.10', 'system_stdlib': '/usr/lib/python3.10', 'system_stdlib_platform': '/usr/lib/python3.10', 'version': '3.10.9 (main, Dec 7 2022, 13:47:07) [GCC 12.2.0]', 'version_info': VersionInfo(major=3, minor=10, micro=9, releaselevel='final', serial=0), 'version_nodot': '310'}) [virtualenv/discovery/py_info.py:435] py39-high: 429 D discover PATH[1]=/usr/local/bin [virtualenv/discovery/builtin.py:108] py39-high: 429 D discover PATH[2]=/usr/bin [virtualenv/discovery/builtin.py:108] py39-high: 430 D got python info of /usr/bin/python3 from /home/mdk/.local/share/virtualenv/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.json [virtualenv/app_data/via_disk_folder.py:129] py39-high: 430 I proposed PathPythonInfo(spec=CPython3.10.9.final.0-64, exe=/usr/bin/python3, platform=linux, version='3.10.9 (main, Dec 7 2022, 13:47:07) [GCC 12.2.0]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:63] py39-high: 431 D got python info of /usr/bin/python from /home/mdk/.local/share/virtualenv/py_info/1/767d51c1340bd893661ea55ea3124f6de3c7a262a8b4abca0554b478b1e2ff90.json [virtualenv/app_data/via_disk_folder.py:129] py39-high: 432 I proposed PathPythonInfo(spec=CPython3.10.9.final.0-64, exe=/usr/bin/python, platform=linux, version='3.10.9 (main, Dec 7 2022, 13:47:07) [GCC 12.2.0]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:63] py39-high: 432 D discover PATH[3]=/bin [virtualenv/discovery/builtin.py:108] py39-high: 433 D got python info of /bin/python3 from /home/mdk/.local/share/virtualenv/py_info/1/916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1.json [virtualenv/app_data/via_disk_folder.py:129] py39-high: 434 I proposed PathPythonInfo(spec=CPython3.10.9.final.0-64, exe=/bin/python3, platform=linux, version='3.10.9 (main, Dec 7 2022, 13:47:07) [GCC 12.2.0]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:63] py39-high: 435 D got python info of /bin/python from /home/mdk/.local/share/virtualenv/py_info/1/e7370f93d1d0cde622a1f8e1c04877d8463912d04d973331ad4851f04de6915a.json [virtualenv/app_data/via_disk_folder.py:129] py39-high: 435 I proposed PathPythonInfo(spec=CPython3.10.9.final.0-64, exe=/bin/python, platform=linux, version='3.10.9 (main, Dec 7 2022, 13:47:07) [GCC 12.2.0]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:63] py39-high: 436 D discover PATH[4]=/usr/local/games [virtualenv/discovery/builtin.py:108] py39-high: 436 D discover PATH[5]=/usr/games [virtualenv/discovery/builtin.py:108] py39-high: 436 D discover PATH[6]=/home/mdk/.local/bin [virtualenv/discovery/builtin.py:108] py39-high: 437 D got python info of /home/mdk/.local/bin/python3.9 from /home/mdk/.local/share/virtualenv/py_info/1/3fbb51d8e8bf08332504388e0d41d8bccfc797cc26c41c2b225b83734c5481d7.json [virtualenv/app_data/via_disk_folder.py:129] py39-high: 438 I proposed PathPythonInfo(spec=CPython3.9.16.final.0-64, exe=/home/mdk/.local/bin/python3.9, platform=linux, version='3.9.16 (main, Jan 2 2023, 16:12:16) \n[GCC 12.2.0]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:63] py39-high: 438 D accepted PathPythonInfo(spec=CPython3.9.16.final.0-64, exe=/home/mdk/.local/bin/python3.9, platform=linux, version='3.9.16 (main, Jan 2 2023, 16:12:16) \n[GCC 12.2.0]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:65] py39-high: 490 I create virtual environment via CPython3Posix(dest=/home/mdk/clones/mdk/oeis/.tox/py39-high, clear=False, no_vcs_ignore=False, global=False) [virtualenv/run/session.py:48] py39-high: 490 D create folder /home/mdk/clones/mdk/oeis/.tox/py39-high/bin [virtualenv/util/path/_sync.py:9] py39-high: 491 D create folder /home/mdk/clones/mdk/oeis/.tox/py39-high/lib/python3.9/site-packages [virtualenv/util/path/_sync.py:9] py39-high: 491 D write /home/mdk/clones/mdk/oeis/.tox/py39-high/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:30] py39-high: 491 D home = /home/mdk/.local/bin [virtualenv/create/pyenv_cfg.py:34] py39-high: 491 D implementation = CPython [virtualenv/create/pyenv_cfg.py:34] py39-high: 491 D version_info = 3.9.16.final.0 [virtualenv/create/pyenv_cfg.py:34] py39-high: 491 D virtualenv = 20.17.1 [virtualenv/create/pyenv_cfg.py:34] py39-high: 491 D include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:34] py39-high: 491 D base-prefix = /home/mdk/.local [virtualenv/create/pyenv_cfg.py:34] py39-high: 492 D base-exec-prefix = /home/mdk/.local [virtualenv/create/pyenv_cfg.py:34] py39-high: 492 D base-executable = /home/mdk/.local/bin/python3.9 [virtualenv/create/pyenv_cfg.py:34] py39-high: 492 D symlink /home/mdk/.local/bin/python3.9 to /home/mdk/clones/mdk/oeis/.tox/py39-high/bin/python [virtualenv/util/path/_sync.py:28] py39-high: 493 D create virtualenv import hook file /home/mdk/clones/mdk/oeis/.tox/py39-high/lib/python3.9/site-packages/_virtualenv.pth [virtualenv/create/via_global_ref/api.py:89] py39-high: 493 D create /home/mdk/clones/mdk/oeis/.tox/py39-high/lib/python3.9/site-packages/_virtualenv.py [virtualenv/create/via_global_ref/api.py:92] py39-high: 493 D ============================== target debug ============================== [virtualenv/run/session.py:50] py39-high: 494 D debug via /home/mdk/clones/mdk/oeis/.tox/py39-high/bin/python /home/mdk/clones/mdk/oeis/.venv/lib/python3.10/site-packages/virtualenv/create/debug.py [virtualenv/create/creator.py:197] py39-high: 494 D { "sys": { "executable": "/home/mdk/clones/mdk/oeis/.tox/py39-high/bin/python", "_base_executable": "/home/mdk/clones/mdk/oeis/.tox/py39-high/bin/python", "prefix": "/home/mdk/clones/mdk/oeis/.tox/py39-high", "base_prefix": "/home/mdk/.local", "real_prefix": null, "exec_prefix": "/home/mdk/clones/mdk/oeis/.tox/py39-high", "base_exec_prefix": "/home/mdk/.local", "path": [ "/home/mdk/.local/lib/python39.zip", "/home/mdk/.local/lib/python3.9", "/home/mdk/.local/lib/python3.9/lib-dynload", "/home/mdk/clones/mdk/oeis/.tox/py39-high/lib/python3.9/site-packages" ], "meta_path": [ "Minimal example
If possible, provide a minimal reproducer for the issue: