Source: python-stone Version: 3.3.1-1 Severity: serious Tags: sid bookworm User: debian...@lists.debian.org Usertags: needs-update User: debian-pyt...@lists.debian.org Usertags: python3.11 Control: affects -1 src:python3-defaults
Dear maintainer(s),We are in the transition of adding python3.11 as a supported Python version [0]. With a recent upload of python3-defaults the autopkgtest of python-stone 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.6-3 python-stone from testing 3.3.1-1 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.11.html lists what's new in Python3.11, it may help to identify what needs to be updated.
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/1021984 [1] https://qa.debian.org/excuses.php?package=python3-defaults https://ci.debian.net/data/autopkgtest/testing/amd64/p/python-stone/28750732/log.gz=================================== FAILURES =================================== __________________ TestGeneratedPython.test_alias_validators ___________________
self = <test.test_python_gen.TestGeneratedPython testMethod=test_alias_validators>
def setUp(self):# Sanity check: stone must be importable for the compiler to work
importlib.import_module('stone') # Compile spec by calling out to stone p = subprocess.Popen( [sys.executable, '-m', 'stone.cli', 'python_types', 'output', '-', '--', '--package', 'output'], stdin=subprocess.PIPE, stderr=subprocess.PIPE) _, stderr = p.communicate( input=(test_spec + test_ns2_spec).encode('utf-8')) if p.wait() != 0:
raise AssertionError('Could not execute stone tool: %s' %
stderr.decode('utf-8'))E AssertionError: Could not execute stone tool: /usr/lib/python3/dist-packages/stone/cli.py:8: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
E import imp # pylint: disable=deprecated-module E Traceback (most recent call last): E File "<frozen runpy>", line 198, in _run_module_as_main E File "<frozen runpy>", line 88, in _run_codeE File "/usr/lib/python3/dist-packages/stone/cli.py", line 380, in <module>
E api = main() E ^^^^^^E File "/usr/lib/python3/dist-packages/stone/cli.py", line 250, in main
E api = specs_to_ir(specs, debug=debug, E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/frontend.py", line 55, in specs_to_ir
E route_whitelist_filter=route_whitelist_filter).generate_IR() E ^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 297, in generate_IR
E self._populate_type_attributes()E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 694, in _populate_type_attributes E data_type = self._resolve_type(env, alias._ast_node.type_ref) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 1159, in _resolve_type
E data_type = self._instantiate_data_type( E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 1077, in _instantiate_data_type E argspec = inspect.getargspec(data_type_class.__init__) # noqa: E501 # pylint: disable=deprecated-method,useless-suppression
E ^^^^^^^^^^^^^^^^^^E AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
test/test_python_gen.py:838: AssertionError_______________________ TestGeneratedPython.test_aliases _______________________
self = <test.test_python_gen.TestGeneratedPython testMethod=test_aliases> def setUp(self):# Sanity check: stone must be importable for the compiler to work
importlib.import_module('stone') # Compile spec by calling out to stone p = subprocess.Popen( [sys.executable, '-m', 'stone.cli', 'python_types', 'output', '-', '--', '--package', 'output'], stdin=subprocess.PIPE, stderr=subprocess.PIPE) _, stderr = p.communicate( input=(test_spec + test_ns2_spec).encode('utf-8')) if p.wait() != 0:
raise AssertionError('Could not execute stone tool: %s' %
stderr.decode('utf-8'))E AssertionError: Could not execute stone tool: /usr/lib/python3/dist-packages/stone/cli.py:8: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
E import imp # pylint: disable=deprecated-module E Traceback (most recent call last): E File "<frozen runpy>", line 198, in _run_module_as_main E File "<frozen runpy>", line 88, in _run_codeE File "/usr/lib/python3/dist-packages/stone/cli.py", line 380, in <module>
E api = main() E ^^^^^^E File "/usr/lib/python3/dist-packages/stone/cli.py", line 250, in main
E api = specs_to_ir(specs, debug=debug, E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/frontend.py", line 55, in specs_to_ir
E route_whitelist_filter=route_whitelist_filter).generate_IR() E ^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 297, in generate_IR
E self._populate_type_attributes()E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 694, in _populate_type_attributes E data_type = self._resolve_type(env, alias._ast_node.type_ref) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 1159, in _resolve_type
E data_type = self._instantiate_data_type( E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 1077, in _instantiate_data_type E argspec = inspect.getargspec(data_type_class.__init__) # noqa: E501 # pylint: disable=deprecated-method,useless-suppression
E ^^^^^^^^^^^^^^^^^^E AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
test/test_python_gen.py:838: AssertionError______________________ TestGeneratedPython.test_defaults _______________________
self = <test.test_python_gen.TestGeneratedPython testMethod=test_defaults> def setUp(self):# Sanity check: stone must be importable for the compiler to work
importlib.import_module('stone') # Compile spec by calling out to stone p = subprocess.Popen( [sys.executable, '-m', 'stone.cli', 'python_types', 'output', '-', '--', '--package', 'output'], stdin=subprocess.PIPE, stderr=subprocess.PIPE) _, stderr = p.communicate( input=(test_spec + test_ns2_spec).encode('utf-8')) if p.wait() != 0:
raise AssertionError('Could not execute stone tool: %s' %
stderr.decode('utf-8'))E AssertionError: Could not execute stone tool: /usr/lib/python3/dist-packages/stone/cli.py:8: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
E import imp # pylint: disable=deprecated-module E Traceback (most recent call last): E File "<frozen runpy>", line 198, in _run_module_as_main E File "<frozen runpy>", line 88, in _run_codeE File "/usr/lib/python3/dist-packages/stone/cli.py", line 380, in <module>
E api = main() E ^^^^^^E File "/usr/lib/python3/dist-packages/stone/cli.py", line 250, in main
E api = specs_to_ir(specs, debug=debug, E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/frontend.py", line 55, in specs_to_ir
E route_whitelist_filter=route_whitelist_filter).generate_IR() E ^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 297, in generate_IR
E self._populate_type_attributes()E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 694, in _populate_type_attributes E data_type = self._resolve_type(env, alias._ast_node.type_ref) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 1159, in _resolve_type
E data_type = self._instantiate_data_type( E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 1077, in _instantiate_data_type E argspec = inspect.getargspec(data_type_class.__init__) # noqa: E501 # pylint: disable=deprecated-method,useless-suppression
E ^^^^^^^^^^^^^^^^^^E AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
test/test_python_gen.py:838: AssertionError______________________ TestGeneratedPython.test_docstring ______________________
self = <test.test_python_gen.TestGeneratedPython testMethod=test_docstring> def setUp(self):# Sanity check: stone must be importable for the compiler to work
importlib.import_module('stone') # Compile spec by calling out to stone p = subprocess.Popen( [sys.executable, '-m', 'stone.cli', 'python_types', 'output', '-', '--', '--package', 'output'], stdin=subprocess.PIPE, stderr=subprocess.PIPE) _, stderr = p.communicate( input=(test_spec + test_ns2_spec).encode('utf-8')) if p.wait() != 0:
raise AssertionError('Could not execute stone tool: %s' %
stderr.decode('utf-8'))E AssertionError: Could not execute stone tool: /usr/lib/python3/dist-packages/stone/cli.py:8: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
E import imp # pylint: disable=deprecated-module E Traceback (most recent call last): E File "<frozen runpy>", line 198, in _run_module_as_main E File "<frozen runpy>", line 88, in _run_codeE File "/usr/lib/python3/dist-packages/stone/cli.py", line 380, in <module>
E api = main() E ^^^^^^E File "/usr/lib/python3/dist-packages/stone/cli.py", line 250, in main
E api = specs_to_ir(specs, debug=debug, E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/frontend.py", line 55, in specs_to_ir
E route_whitelist_filter=route_whitelist_filter).generate_IR() E ^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 297, in generate_IR
E self._populate_type_attributes()E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 694, in _populate_type_attributes E data_type = self._resolve_type(env, alias._ast_node.type_ref) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 1159, in _resolve_type
E data_type = self._instantiate_data_type( E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 1077, in _instantiate_data_type E argspec = inspect.getargspec(data_type_class.__init__) # noqa: E501 # pylint: disable=deprecated-method,useless-suppression
E ^^^^^^^^^^^^^^^^^^E AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
test/test_python_gen.py:838: AssertionError______________ TestGeneratedPython.test_extended_struct_equality _______________
self = <test.test_python_gen.TestGeneratedPython testMethod=test_extended_struct_equality>
def setUp(self):# Sanity check: stone must be importable for the compiler to work
importlib.import_module('stone') # Compile spec by calling out to stone p = subprocess.Popen( [sys.executable, '-m', 'stone.cli', 'python_types', 'output', '-', '--', '--package', 'output'], stdin=subprocess.PIPE, stderr=subprocess.PIPE) _, stderr = p.communicate( input=(test_spec + test_ns2_spec).encode('utf-8')) if p.wait() != 0:
raise AssertionError('Could not execute stone tool: %s' %
stderr.decode('utf-8'))E AssertionError: Could not execute stone tool: /usr/lib/python3/dist-packages/stone/cli.py:8: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
E import imp # pylint: disable=deprecated-module E Traceback (most recent call last): E File "<frozen runpy>", line 198, in _run_module_as_main E File "<frozen runpy>", line 88, in _run_codeE File "/usr/lib/python3/dist-packages/stone/cli.py", line 380, in <module>
E api = main() E ^^^^^^E File "/usr/lib/python3/dist-packages/stone/cli.py", line 250, in main
E api = specs_to_ir(specs, debug=debug, E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/frontend.py", line 55, in specs_to_ir
E route_whitelist_filter=route_whitelist_filter).generate_IR() E ^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 297, in generate_IR
E self._populate_type_attributes()E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 694, in _populate_type_attributes E data_type = self._resolve_type(env, alias._ast_node.type_ref) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 1159, in _resolve_type
E data_type = self._instantiate_data_type( E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 1077, in _instantiate_data_type E argspec = inspect.getargspec(data_type_class.__init__) # noqa: E501 # pylint: disable=deprecated-method,useless-suppression
E ^^^^^^^^^^^^^^^^^^E AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
test/test_python_gen.py:838: AssertionError_______________ TestGeneratedPython.test_extended_union_equality _______________
self = <test.test_python_gen.TestGeneratedPython testMethod=test_extended_union_equality>
def setUp(self):# Sanity check: stone must be importable for the compiler to work
importlib.import_module('stone') # Compile spec by calling out to stone p = subprocess.Popen( [sys.executable, '-m', 'stone.cli', 'python_types', 'output', '-', '--', '--package', 'output'], stdin=subprocess.PIPE, stderr=subprocess.PIPE) _, stderr = p.communicate( input=(test_spec + test_ns2_spec).encode('utf-8')) if p.wait() != 0:
raise AssertionError('Could not execute stone tool: %s' %
stderr.decode('utf-8'))E AssertionError: Could not execute stone tool: /usr/lib/python3/dist-packages/stone/cli.py:8: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
E import imp # pylint: disable=deprecated-module E Traceback (most recent call last): E File "<frozen runpy>", line 198, in _run_module_as_main E File "<frozen runpy>", line 88, in _run_codeE File "/usr/lib/python3/dist-packages/stone/cli.py", line 380, in <module>
E api = main() E ^^^^^^E File "/usr/lib/python3/dist-packages/stone/cli.py", line 250, in main
E api = specs_to_ir(specs, debug=debug, E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/frontend.py", line 55, in specs_to_ir
E route_whitelist_filter=route_whitelist_filter).generate_IR() E ^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 297, in generate_IR
E self._populate_type_attributes()E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 694, in _populate_type_attributes E data_type = self._resolve_type(env, alias._ast_node.type_ref) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 1159, in _resolve_type
E data_type = self._instantiate_data_type( E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 1077, in _instantiate_data_type E argspec = inspect.getargspec(data_type_class.__init__) # noqa: E501 # pylint: disable=deprecated-method,useless-suppression
E ^^^^^^^^^^^^^^^^^^E AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
test/test_python_gen.py:838: AssertionError_____________________ TestGeneratedPython.test_list_coding _____________________
self = <test.test_python_gen.TestGeneratedPython testMethod=test_list_coding>
def setUp(self):# Sanity check: stone must be importable for the compiler to work
importlib.import_module('stone') # Compile spec by calling out to stone p = subprocess.Popen( [sys.executable, '-m', 'stone.cli', 'python_types', 'output', '-', '--', '--package', 'output'], stdin=subprocess.PIPE, stderr=subprocess.PIPE) _, stderr = p.communicate( input=(test_spec + test_ns2_spec).encode('utf-8')) if p.wait() != 0:
raise AssertionError('Could not execute stone tool: %s' %
stderr.decode('utf-8'))E AssertionError: Could not execute stone tool: /usr/lib/python3/dist-packages/stone/cli.py:8: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
E import imp # pylint: disable=deprecated-module E Traceback (most recent call last): E File "<frozen runpy>", line 198, in _run_module_as_main E File "<frozen runpy>", line 88, in _run_codeE File "/usr/lib/python3/dist-packages/stone/cli.py", line 380, in <module>
E api = main() E ^^^^^^E File "/usr/lib/python3/dist-packages/stone/cli.py", line 250, in main
E api = specs_to_ir(specs, debug=debug, E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/frontend.py", line 55, in specs_to_ir
E route_whitelist_filter=route_whitelist_filter).generate_IR() E ^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 297, in generate_IR
E self._populate_type_attributes()E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 694, in _populate_type_attributes E data_type = self._resolve_type(env, alias._ast_node.type_ref) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 1159, in _resolve_type
E data_type = self._instantiate_data_type( E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^E File "/usr/lib/python3/dist-packages/stone/frontend/ir_generator.py", line 1077, in _instantiate_data_type E argspec = inspect.getargspec(data_type_class.__init__) # noqa: E501 # pylint: disable=deprecated-method,useless-suppression
E ^^^^^^^^^^^^^^^^^^E AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
test/test_python_gen.py:838: AssertionError
OpenPGP_signature
Description: OpenPGP digital signature