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
PS C:\git\pyverify> tox -e check -r
←[1m←[35mROOT:←[0m←[36m will run in automatically provisioned tox, host c:\python39\python.exe is missing [requires (has)]: tox-current-env←[0m
Traceback (most recent call last):
File "c:\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Python39\Scripts\tox.exe\__main__.py", line 7, in <module>
File "c:\python39\lib\site-packages\tox\run.py", line 18, in run
result = main(sys.argv[1:] if args is None else args)
File "c:\python39\lib\site-packages\tox\run.py", line 40, in main
result = provision(state)
File "c:\python39\lib\site-packages\tox\provision.py", line 124, in provision
return run_provision(provision_tox_env, state)
File "c:\python39\lib\site-packages\tox\provision.py", line 143, in run_provision
env_python = tox_env.env_python()
File "c:\python39\lib\site-packages\tox\tox_env\python\virtual_env\api.py", line 156, in env_python
return cast(Path, self.creator.exe)
File "c:\python39\lib\site-packages\tox\tox_env\python\virtual_env\api.py", line 127, in creator
return self.session.creator
File "c:\python39\lib\site-packages\tox\tox_env\python\virtual_env\api.py", line 107, in session
env = self.virtualenv_env_vars()
File "c:\python39\lib\site-packages\tox\tox_env\python\virtual_env\api.py", line 112, in virtualenv_env_vars
env = self.environment_variables.copy()
File "c:\python39\lib\site-packages\tox\tox_env\python\virtual_env\api.py", line 167, in environment_variables
environment_variables = super().environment_variables
File "c:\python39\lib\site-packages\tox\tox_env\runner.py", line 196, in environment_variables
environment_variables = super().environment_variables
File "c:\python39\lib\site-packages\tox\tox_env\api.py", line 310, in environment_variables
for key in set_env:
File "c:\python39\lib\site-packages\tox\config\set_env.py", line 91, in __iter__
sub_raw = dict(self._extract_key_value(sub_line) for sub_line in expanded_line.splitlines() if sub_line)
File "c:\python39\lib\site-packages\tox\config\set_env.py", line 91, in <genexpr>
sub_raw = dict(self._extract_key_value(sub_line) for sub_line in expanded_line.splitlines() if sub_line)
File "c:\python39\lib\site-packages\tox\config\set_env.py", line 67, in _extract_key_value
raise ValueError(f"invalid line {line!r} in set_env")
ValueError: invalid line 'file|ci/tox_setenv.txt' in set_env
The text was updated successfully, but these errors were encountered:
I cannot reproduce your problem on Linux at least, as here it works.
When I have a look at your traceback, I wonder what content is in your env file.
File "c:\python39\lib\site-packages\tox\config\set_env.py", line 67, in _extract_key_value
raise ValueError(f"invalid line {line!r} in set_env")
ValueError: invalid line 'file|ci/tox_setenv.txt' in set_env
Line 67 is already checking the contents of the env file, not the tox.ini file / configuration setting.
Also see
for env_line in env_file.read_text().splitlines():
env_line = env_line.strip()
if not env_line or env_line.startswith("#"):
continue
key, value = self._extract_key_value(env_line)
self._raw[key] = value
This is working as expected in tox 3.25, but failing with 4.0.0b4.
Error message
The text was updated successfully, but these errors were encountered: