Fedora Account System
Red Hat Associate
Red Hat Customer
pylint fails to build with Python 3.15.0a6. ____________ TestImportsChecker.test_relative_beyond_top_level_two _____________ [gw0] linux -- Python 3.15.0 /usr/bin/python3 self = NamespacePath(['/builddir/build/BUILD/pylint-4.0.4-build/pylint-4.0.4/tests/regrtest_data/beyond_top_two/namespace_package/lower_level']) > ??? E KeyError: 'namespace_package' <frozen importlib._bootstrap_external>:1094: KeyError The above exception was the direct cause of the following exception: capsys = <_pytest.capture.CaptureFixture object at 0x7f53e559f380> @staticmethod def test_relative_beyond_top_level_two(capsys: CaptureFixture[str]) -> None: > Run( [ f"{os.path.join(REGR_DATA, 'beyond_top_two')}", "-d all", "-e relative-beyond-top-level", ], exit=False, ) tests/checkers/unittest_imports.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/testutils/_run.py:41: in __init__ super().__init__(args, reporter, exit) ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/run.py:239: in __init__ linter.check(args) ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/pylinter.py:722: in check ast_per_fileitem = self._get_asts(fileitems, data, progress_reporter) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/pylinter.py:740: in _get_asts for fileitem in fileitems: ^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/pylinter.py:908: in _iterate_file_descrs for descr in self._expand_files(files_or_modules).values(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/pylinter.py:919: in _expand_files result, errors = expand_modules( ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/expand_modules.py:171: in expand_modules modpath = _modpath_from_file( ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/expand_modules.py:22: in _modpath_from_file return modutils.modpath_from_file_with_callback( # type: ignore[no-any-return] /usr/lib/python3.15/site-packages/astroid/modutils.py:294: in modpath_from_file_with_callback if is_package_cb(pathname, modpath[:-1]): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/expand_modules.py:20: in _is_package_cb return modutils.check_modpath_has_init(inner_path, parts) or is_namespace ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.15/site-packages/astroid/modutils.py:229: in check_modpath_has_init old_namespace = util.is_namespace(".".join(modpath)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.15/site-packages/astroid/interpreter/_import/util.py:47: in is_namespace found_spec = _find_spec_from_path( <frozen importlib.util>:54: in _find_spec_from_path ??? <frozen importlib._bootstrap>:1164: in _find_spec ??? <frozen importlib._bootstrap_external>:1279: in find_spec ??? <frozen importlib._bootstrap_external>:1077: in __init__ ??? _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = NamespacePath(['/builddir/build/BUILD/pylint-4.0.4-build/pylint-4.0.4/tests/regrtest_data/beyond_top_two/namespace_package/lower_level']) > ??? E ModuleNotFoundError: 'namespace_package' must be imported before finding 'namespace_package.lower_level'. <frozen importlib._bootstrap_external>:1096: ModuleNotFoundError _________________________ test_class_diagrams[pep420] __________________________ [gw1] linux -- Python 3.15.0 /usr/bin/python3 testfile = FunctionalPyreverseTestfile(source=PosixPath('/builddir/build/BUILD/pylint-4.0.4-build/pylint-4.0.4/tests/pyreverse/fu...20/pep420.py'), options={'source_roots': ['../..'], 'output_formats': ['mmd', 'dot', 'puml'], 'command_line_args': []}) tmp_path = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/popen-gw1/test_class_diagrams_pep420_0') @pytest.mark.parametrize( "testfile", CLASS_DIAGRAM_TESTS, ids=CLASS_DIAGRAM_TEST_IDS, ) def test_class_diagrams(testfile: FunctionalPyreverseTestfile, tmp_path: Path) -> None: input_file = testfile.source input_path = os.path.dirname(input_file) if testfile.options["source_roots"]: source_roots = ",".join( [ os.path.realpath( os.path.expanduser(os.path.join(input_path, source_root)) ) for source_root in testfile.options["source_roots"] ] ) else: source_roots = "" for output_format in testfile.options["output_formats"]: args = ["-o", f"{output_format}", "-d", str(tmp_path)] if source_roots: args += ["--source-roots", source_roots] args.extend(testfile.options["command_line_args"]) args += [str(input_file)] exit_code = Run(args).run() assert exit_code == 0 > assert testfile.source.with_suffix(f".{output_format}").read_text( encoding="utf8" ) == (tmp_path / f"classes.{output_format}").read_text(encoding="utf8") E assert 'digraph "cla...solid"];\n}\n' == 'digraph "cla...solid"];\n}\n' E E digraph "classes" { E rankdir=BT E charset="utf-8" E - "/builddir/build/BUILD/pylint-4.0.4-build/pylint-4.0.4/tests/pyreverse/functional/class_diagrams/namespaces/pep420/pep420.py.PEP420" [color="black", fontcolor="black", label=<{PEP420|<br ALIGN="LEFT"/>|}>, shape="record", style="solid"]; E + "namespaces.pep420.pep420.PEP420" [color="black", fontcolor="black", label=<{PEP420|<br ALIGN="LEFT"/>|}>, shape="record", style="solid"]; E } tests/pyreverse/test_pyreverse_functional.py:48: AssertionError __________________ test_recursive_implicit_namespace_wrapper ___________________ [gw2] linux -- Python 3.15.0 /usr/bin/python3 self = NamespacePath(['/builddir/build/BUILD/pylint-4.0.4-build/pylint-4.0.4/tests/regrtest_data/pep420/wrapper/project/namespace/package']) > ??? E KeyError: 'namespace' <frozen importlib._bootstrap_external>:1094: KeyError The above exception was the direct cause of the following exception: def test_recursive_implicit_namespace_wrapper() -> None: > run = Run( [ "--recursive", "y", "--source-roots", join(REGRTEST_DATA_DIR, "pep420", "wrapper", "project"), join(REGRTEST_DATA_DIR, "pep420", "wrapper"), ], exit=False, ) tests/lint/unittest_lint.py:1169: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/testutils/_run.py:41: in __init__ super().__init__(args, reporter, exit) ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/run.py:239: in __init__ linter.check(args) ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/pylinter.py:722: in check ast_per_fileitem = self._get_asts(fileitems, data, progress_reporter) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/pylinter.py:740: in _get_asts for fileitem in fileitems: ^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/pylinter.py:908: in _iterate_file_descrs for descr in self._expand_files(files_or_modules).values(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/pylinter.py:919: in _expand_files result, errors = expand_modules( ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/expand_modules.py:171: in expand_modules modpath = _modpath_from_file( ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/expand_modules.py:22: in _modpath_from_file return modutils.modpath_from_file_with_callback( # type: ignore[no-any-return] /usr/lib/python3.15/site-packages/astroid/modutils.py:294: in modpath_from_file_with_callback if is_package_cb(pathname, modpath[:-1]): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/expand_modules.py:20: in _is_package_cb return modutils.check_modpath_has_init(inner_path, parts) or is_namespace ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.15/site-packages/astroid/modutils.py:229: in check_modpath_has_init old_namespace = util.is_namespace(".".join(modpath)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.15/site-packages/astroid/interpreter/_import/util.py:47: in is_namespace found_spec = _find_spec_from_path( <frozen importlib.util>:54: in _find_spec_from_path ??? <frozen importlib._bootstrap>:1164: in _find_spec ??? <frozen importlib._bootstrap_external>:1279: in find_spec ??? <frozen importlib._bootstrap_external>:1077: in __init__ ??? _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = NamespacePath(['/builddir/build/BUILD/pylint-4.0.4-build/pylint-4.0.4/tests/regrtest_data/pep420/wrapper/project/namespace/package']) > ??? E ModuleNotFoundError: 'namespace' must be imported before finding 'namespace.package'. <frozen importlib._bootstrap_external>:1096: ModuleNotFoundError ___________________ test_functional[deprecated_methods_py36] ___________________ [gw3] linux -- Python 3.15.0 /usr/bin/python3 self = <pylint.testutils.lint_module_test.LintModuleTest object at 0x7f0a30890f50> def runTest(self) -> None: > self._runTest() E AssertionError: Wrong message(s) raised for "deprecated_methods_py36.py": E E Expected in testdata: E 6: deprecated-method (times 1) E 7: deprecated-method (times 1) E E Unexpected in testdata: E 6: no-member (times 1) E 7: no-member (times 1) E E Actual pylint output for this file: E OutputLine(symbol='no-member', lineno=6, column=0, end_lineno=6, end_column=59, object='', msg="Instance of 'SourceFileLoader' has no 'load_module' member", confidence='INFERENCE') E OutputLine(symbol='no-member', lineno=7, column=0, end_lineno=7, end_column=63, object='', msg="Instance of 'SourcelessFileLoader' has no 'load_module' member", confidence='INFERENCE') ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/testutils/lint_module_test.py:145: AssertionError ______________________ test_functional[no_name_in_module] ______________________ [gw0] linux -- Python 3.15.0 /usr/bin/python3 self = <pylint.testutils.lint_module_test.LintModuleTest object at 0x7f53dca997f0> def runTest(self) -> None: > self._runTest() E AssertionError: Wrong message(s) raised for "no_name_in_module.py": E E Expected in testdata: E 10: no-member (times 1) E 11: no-member (times 1) E E Actual pylint output for this file: E OutputLine(symbol='no-name-in-module', lineno=5, column=0, end_lineno=5, end_column=23, object='', msg="No name 'tutu' in module 'collections'", confidence='UNDEFINED') E OutputLine(symbol='no-name-in-module', lineno=6, column=0, end_lineno=6, end_column=28, object='', msg="No name 'toto' in module 'collections'", confidence='UNDEFINED') E OutputLine(symbol='no-member', lineno=16, column=6, end_lineno=16, end_column=17, object='', msg="Module 'sys' has no 'stdoout' member; maybe 'stdout'?", confidence='INFERENCE') E OutputLine(symbol='no-name-in-module', lineno=23, column=0, end_lineno=23, end_column=34, object='', msg="No name 'compiile' in module 're'", confidence='UNDEFINED') E OutputLine(symbol='no-name-in-module', lineno=23, column=0, end_lineno=23, end_column=34, object='', msg="No name 'findiiter' in module 're'", confidence='UNDEFINED') E OutputLine(symbol='pointless-statement', lineno=26, column=0, end_lineno=26, end_column=23, object='', msg='Statement seems to have no effect', confidence='UNDEFINED') E OutputLine(symbol='no-name-in-module', lineno=34, column=4, end_lineno=34, end_column=36, object='', msg="No name 'anything' in module 'collections'", confidence='UNDEFINED') E OutputLine(symbol='no-name-in-module', lineno=49, column=4, end_lineno=49, end_column=37, object='', msg="No name 'indeed_missing' in module 'collections'", confidence='UNDEFINED') E OutputLine(symbol='no-name-in-module', lineno=54, column=4, end_lineno=54, end_column=27, object='', msg="No name 'emit' in module 'collections'", confidence='UNDEFINED') E OutputLine(symbol='no-name-in-module', lineno=71, column=8, end_lineno=71, end_column=32, object='', msg="No name 'emit2' in module 'collections'", confidence='UNDEFINED') E OutputLine(symbol='no-name-in-module', lineno=76, column=0, end_lineno=76, end_column=34, object='', msg="No name 'lala' in module 'functional.n.no.no_self_argument'", confidence='UNDEFINED') E OutputLine(symbol='no-name-in-module', lineno=77, column=0, end_lineno=77, end_column=39, object='', msg="No name 'bla' in module 'functional.n.no.no_self_argument'", confidence='UNDEFINED') ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/testutils/lint_module_test.py:145: AssertionError =========================== short test summary info ============================ FAILED tests/checkers/unittest_imports.py::TestImportsChecker::test_relative_beyond_top_level_two FAILED tests/pyreverse/test_pyreverse_functional.py::test_class_diagrams[pep420] FAILED tests/lint/unittest_lint.py::test_recursive_implicit_namespace_wrapper FAILED tests/test_functional.py::test_functional[deprecated_methods_py36] - A... FAILED tests/test_functional.py::test_functional[no_name_in_module] - Asserti... https://docs.python.org/3.15/whatsnew/3.15.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/10144443-pylint/ For all our attempts to build pylint with Python 3.15, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/pylint/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.15: https://copr.fedorainfracloud.org/coprs/g/python/python3.15/ Let us know here if you have any questions. Python 3.15 is planned to be included in Fedora 45. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
Hi people, is there any estimation, when this bug will be fixed for Fedora 45 (current rawhide) ? It is currently breaking our CI and keeps us blind for the rawhide testing.
How is a failure to build with Python 3.15 breaking your CI? Is it not broken by https://bugzilla.redhat.com/show_bug.cgi?id=2444361 instead?
(In reply to Miro Hrončok from comment #2) > How is a failure to build with Python 3.15 breaking your CI? Is it not > broken by https://bugzilla.redhat.com/show_bug.cgi?id=2444361 instead? Yes, you are right. Thanks for correcting me.