Source: pythonpy
Version: 0.4.11b-3
Severity: serious
Tags: sid bookworm
User: debian...@lists.debian.org
Usertags: needs-update
User: debian-pyt...@lists.debian.org
Usertags: python3.10
Control: affects -1 src:python3-defaults

Dear maintainer(s),

We are in the transition of making python3.10 the default Python versions [0]. With a recent upload of python3-defaults the autopkgtest of pythonpy fails in testing when that autopkgtest is run with the binary packages of python3-defaults from unstable. It passes when run with only packages from testing. In tabular form:

                       pass            fail
python3-defaults       from testing    3.10.4-1
pythonpy               from testing    0.4.11b-3
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of python3-defaults to testing [1]. https://docs.python.org/3/whatsnew/3.10.html lists what's new in Python3.10, it may help to identify what needs to be updated. https://docs.python.org/3.9/library/collections.html says:
"""
Deprecated since version 3.3, will be removed in version 3.10: Moved Collections Abstract Base Classes to the collections.abc module. For backwards compatibility, they continue to be visible in this module through Python 3.9.
"""
Time to move on.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[0] https://bugs.debian.org/1006836
[1] https://qa.debian.org/excuses.php?package=python3-defaults

https://ci.debian.net/data/autopkgtest/testing/amd64/p/pythonpy/20654945/log.gz

test_empty (test.test_pythonpy.TestPythonPy) ... Traceback (most recent call last):
  File "/usr/bin/py", line 16, in <module>
    from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
ERROR
test_ignore_errors (test.test_pythonpy.TestPythonPy) ... Traceback (most recent call last):
  File "/usr/bin/py", line 16, in <module>
    from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
ERROR
test_imports (test.test_pythonpy.TestPythonPy) ... Traceback (most recent call last):
  File "/usr/bin/py", line 16, in <module>
    from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
ERROR
test_numbers (test.test_pythonpy.TestPythonPy) ... Traceback (most recent call last):
  File "/usr/bin/py", line 16, in <module>
    from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
ERROR
test_range (test.test_pythonpy.TestPythonPy) ... Traceback (most recent call last):
  File "/usr/bin/py", line 16, in <module>
    from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
ERROR
test_split_input (test.test_pythonpy.TestPythonPy) ... Traceback (most recent call last):
  File "/usr/bin/py", line 16, in <module>
    from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
ERROR
test_split_output (test.test_pythonpy.TestPythonPy) ... Traceback (most recent call last):
  File "/usr/bin/py", line 16, in <module>
    from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
ERROR
test_statements (test.test_pythonpy.TestPythonPy) ... Traceback (most recent call last):
  File "/usr/bin/py", line 16, in <module>
    from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
ERROR

======================================================================
ERROR: test_empty (test.test_pythonpy.TestPythonPy)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/autopkgtest-lxc.aa19th4n/downtmp/build.pEz/src/test/test_pythonpy.py", line 6, in test_empty
    self.assertEqual(check_output(['py']), b'')
  File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['py']' returned non-zero exit status 1.

======================================================================
ERROR: test_ignore_errors (test.test_pythonpy.TestPythonPy)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/autopkgtest-lxc.aa19th4n/downtmp/build.pEz/src/test/test_pythonpy.py", line 21, in test_ignore_errors self.assertEqual(check_output("""echo a | py -x --i 'None.None'""", shell=True), b'')
  File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'echo a | py -x --i 'None.None'' returned non-zero exit status 1.

======================================================================
ERROR: test_imports (test.test_pythonpy.TestPythonPy)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/autopkgtest-lxc.aa19th4n/downtmp/build.pEz/src/test/test_pythonpy.py", line 47, in test_imports
    check_output("py %r" % command, shell=True)
  File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'py 'math.ceil(2.5)'' returned non-zero exit status 1.

======================================================================
ERROR: test_numbers (test.test_pythonpy.TestPythonPy)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/autopkgtest-lxc.aa19th4n/downtmp/build.pEz/src/test/test_pythonpy.py", line 9, in test_numbers
    self.assertEqual(check_output(['py', '3 * 4.5']), b'13.5\n')
  File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['py', '3 * 4.5']' returned non-zero exit status 1.

======================================================================
ERROR: test_range (test.test_pythonpy.TestPythonPy)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/autopkgtest-lxc.aa19th4n/downtmp/build.pEz/src/test/test_pythonpy.py", line 12, in test_range
    self.assertEqual(check_output(['py', 'range(3)']), b'0\n1\n2\n')
  File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['py', 'range(3)']' returned non-zero exit status 1.

======================================================================
ERROR: test_split_input (test.test_pythonpy.TestPythonPy)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/autopkgtest-lxc.aa19th4n/downtmp/build.pEz/src/test/test_pythonpy.py", line 15, in test_split_input self.assertEqual(check_output(["""echo a,b | py -x 'x[1]' --si ,"""], shell=True), b'b\n')
  File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '["echo a,b | py -x 'x[1]' --si ,"]' returned non-zero exit status 1.

======================================================================
ERROR: test_split_output (test.test_pythonpy.TestPythonPy)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/autopkgtest-lxc.aa19th4n/downtmp/build.pEz/src/test/test_pythonpy.py", line 18, in test_split_output self.assertEqual(check_output(["""echo abc | py -x x --si '' --so ','"""], shell=True), b'a,b,c\n')
  File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '["echo abc | py -x x --si '' --so ','"]' returned non-zero exit status 1.

======================================================================
ERROR: test_statements (test.test_pythonpy.TestPythonPy)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/autopkgtest-lxc.aa19th4n/downtmp/build.pEz/src/test/test_pythonpy.py", line 25, in test_statements self.assertEqual(check_output("""py -c 'a=5' -C 'print(a)'""", shell=True), b'5\n')
  File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'py -c 'a=5' -C 'print(a)'' returned non-zero exit status 1.

----------------------------------------------------------------------
Ran 8 tests in 0.267s

FAILED (errors=8)
autopkgtest [14:09:53]: test command1

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to