user [email protected]
usertags 1131691 python3.15
thanks
Hi!
While rebuilding the python related packages against the Python 3.15rc2
version we ran into this FTBFS:
https://debusine.debian.net/debian/r-python-python3.15/artifact/4858104/
The error is very similar, but now it's related to Python 3.14 (and also
3.15 in a different part of the log):
______________ test_print_extras[--print-extras-to-file=--py311]
_______________
[gw2] linux -- Python 3.14.7 /usr/bin/python3.14
toxenv = 'py311', print_extras_stdout_arg = '--print-extras-to-file=-'
@pytest.mark.parametrize("toxenv", envs_from_tox_ini())
def test_print_extras(toxenv, print_extras_stdout_arg):
result = tox("-e", toxenv, print_extras_stdout_arg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/build/reproducible-path/tox-current-env-0.0.16/tests/test_integration_tox4.py:128:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
/build/reproducible-path/tox-current-env-0.0.16/tests/utils.py:45: in
tox
cp = subprocess.run((sys.executable, "-m", "tox") + q + args,
**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (('/usr/bin/python3.14', '-m', 'tox', '-q', '-e', 'py311',
...),)
kwargs = {'encoding': 'utf-8', 'stdout': -1, 'stderr': -1, 'cwd':
'/tmp/pytest-of-sbuild/pytest-1/popen-gw2/test_print_extras___print_extr0/projdir',
...}
def run(*popenargs,
input=None, capture_output=False, timeout=None, check=False,
**kwargs):
"""Run command with arguments and return a CompletedProcess
instance.
The returned instance will have attributes args, returncode,
stdout and
stderr. By default, stdout and stderr are not captured, and
those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to
capture them,
or pass capture_output=True to capture both.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the
return code
in the returncode attribute, and output & stderr attributes if
those streams
were captured.
If timeout (seconds) is given and the process takes too long,
a TimeoutExpired exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use
this argument
you may not also use the Popen constructor's "stdin" argument,
as
it will be used internally.
By default, all communication is in bytes, and therefore any
"input" should
be bytes, and the stdout and stderr will be bytes. If in text
mode, any
"input" should be a string, and stdout and stderr will be
strings decoded
according to locale encoding, or by "encoding" if set. Text mode
is
triggered by setting any of text, encoding, errors or
universal_newlines.
The other arguments are the same as for the Popen constructor.
"""
if input is not None:
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both
be used.')
kwargs['stdin'] = PIPE
if capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr')
is not None:
raise ValueError('stdout and stderr arguments may not be
used '
'with capture_output.')
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input,
timeout=timeout)
except TimeoutExpired as exc:
process.kill()
if _mswindows:
# Windows accumulates the output in a single
blocking
# read() call run on child threads, with the timeout
# being done in a join() on those threads.
communicate()
# _after_ kill() is required to collect that and add
it
# to the exception.
exc.stdout, exc.stderr = process.communicate()
else:
# POSIX _communicate already populated the output so
# far into the TimeoutExpired exception.
process.wait()
raise
except: # Including KeyboardInterrupt, communicate handled
that.
process.kill()
# We don't call process.wait() as .__exit__ does that
for us.
raise
retcode = process.poll()
if check and retcode:
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command
'('/usr/bin/python3.14', '-m', 'tox', '-q', '-e', 'py311',
'--print-extras-to-file=-')' returned non-zero exit status 1.
/usr/lib/python3.14/subprocess.py:578: CalledProcessError
----------------------------- Captured stdout call
-----------------------------
current
/tmp/pytest-of-sbuild/pytest-1/popen-gw2/test_print_extras___print_extr0/projdir
running in
/tmp/pytest-of-sbuild/pytest-1/popen-gw2/test_print_extras___print_extr0/projdir
----------------------------- Captured stderr call
-----------------------------
Traceback (most recent call last):
File "<frozen runpy>", line 203, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/lib/python3/dist-packages/tox/__main__.py", line 6, in
<module>
run()
~~~^^
File "/usr/lib/python3/dist-packages/tox/run.py", line 23, in run
result = main(sys.argv[1:] if args is None else args)
File "/usr/lib/python3/dist-packages/tox/run.py", line 49, in main
return handler(state)
File "/usr/lib/python3/dist-packages/tox/session/cmd/legacy.py", line
117, in legacy
return run_sequential(state)
File
"/usr/lib/python3/dist-packages/tox/session/cmd/run/sequential.py", line
25, in run_sequential
return execute(state, max_workers=1, has_spinner=False, live=True)
File "/usr/lib/python3/dist-packages/tox/session/cmd/run/common.py",
line 217, in execute
state.envs.ensure_only_run_env_is_active()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3/dist-packages/tox/session/env_select.py", line
610, in ensure_only_run_env_is_active
envs, active = self._defined_envs, self._env_name_to_active()
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/tox/session/env_select.py", line
384, in _defined_envs
run_env = self._build_run_env(name)
File "/usr/lib/python3/dist-packages/tox/session/env_select.py", line
474, in _build_run_env
run_env.register_config()
~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3/dist-packages/tox/tox_env/python/runner.py",
line 57, in register_config
self.conf.add_config(
~~~~~~~~~~~~~~~~~~~~^
keys=["extras"],
^^^^^^^^^^^^^^^^
...<3 lines>...
post_process=_normalize_extras,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/lib/python3/dist-packages/tox/config/sets.py", line 101, in
add_config
result = self._add_conf(keys_, definition)
File "/usr/lib/python3/dist-packages/tox/config/sets.py", line 129, in
_add_conf
self._on_duplicate_conf(key, definition)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/tox/config/sets.py", line 140, in
_on_duplicate_conf
raise ValueError(msg)
ValueError: duplicate configuration definition for py311:
has: ConfigDynamicDefinition(keys=['extras'], desc=extras to install of
the target package, of_type=typing.Set[str], default=set())
new: ConfigDynamicDefinition(keys=['extras'], desc=extras to install of
the target package, of_type=set[str], default=set())
_
test_print_extras_with_commands_pre_post[--print-extras-to-file=--post-py39]
_
[gw0] linux -- Python 3.14.7 /usr/bin/python3.14
projdir =
PosixPath('/tmp/pytest-of-sbuild/pytest-1/popen-gw0/test_print_extras_with_command0/projdir')
toxenv = 'py39', pre_post = 'post'
print_extras_stdout_arg = '--print-extras-to-file=-'
@pytest.mark.parametrize("toxenv", envs_from_tox_ini())
@pytest.mark.parametrize("pre_post", ["pre", "post", "both"])
def test_print_extras_with_commands_pre_post(projdir, toxenv,
pre_post, print_extras_stdout_arg):
with modify_config(projdir / 'tox.ini') as config:
if pre_post == "both":
config["testenv"]["commands_pre"] = "echo unexpected"
config["testenv"]["commands_post"] = "echo unexpected"
else:
config["testenv"][f"commands_{pre_post}"] = "echo
unexpected"
result = tox("-e", toxenv, print_extras_stdout_arg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/build/reproducible-path/tox-current-env-0.0.16/tests/test_integration_tox4.py:174:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
/build/reproducible-path/tox-current-env-0.0.16/tests/utils.py:45: in
tox
cp = subprocess.run((sys.executable, "-m", "tox") + q + args,
**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
Please consider investigating the root cause to get this package back in
a healthy state.
--
Regards,
Marga