Bug 2368744 - python-colcon-meson fails to build with Python 3.14: test_capital_case: TypeError: InterpreterBase.__init__() missing 2 required positional arguments: 'subproject_dir' and 'env'
Summary: python-colcon-meson fails to build with Python 3.14: test_capital_case: TypeE...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-colcon-meson
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Scott K Logan
QA Contact:
URL:
Whiteboard:
: 2371836 (view as bug list)
Depends On:
Blocks: PYTHON3.14 F43FTBFS, RAWHIDEFTBFS F43FailsToInstall, RAWHIDEFailsToInstall
TreeView+ depends on / blocked
 
Reported: 2025-05-27 12:55 UTC by Miro Hrončok
Modified: 2025-06-11 16:08 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2025-05-27 12:55:34 UTC
python-colcon-meson fails to build with Python 3.14.0b2.

+ /usr/bin/pytest -k 'not linter' test
============================= test session starts ==============================
platform linux -- Python 3.14.0b2, pytest-8.3.5, pluggy-1.5.0
rootdir: /builddir/build/BUILD/python-colcon-meson-0.4.5-build/colcon-meson-0.4.5
configfile: setup.cfg
plugins: colcon-core-0.19.0
collected 6 items / 5 deselected / 1 selected

test/test_identification.py F                                            [100%]

=================================== FAILURES ===================================
______________________________ test_capital_case _______________________________

    def test_capital_case():
        mpi = MesonPackageIdentification()
        desc = PackageDescriptor(test_project_path)
>       mpi.identify(desc)

test/test_identification.py:19: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../BUILDROOT/usr/lib/python3.14/site-packages/colcon_meson/identification.py:122: in identify
    parser = CustomInterpreter(desc.path, "", "")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <colcon_meson.identification.CustomInterpreter object at 0x7f7622e682f0>
source_root = PosixPath('/builddir/build/BUILD/python-colcon-meson-0.4.5-build/colcon-meson-0.4.5/test/meson_test_project')
subdir = '', subproject = ''

    def __init__(self, source_root: str, subdir: str, subproject: str):
        """Initialise the interpreter and a data structure for metadata."""
>       super().__init__(source_root, subdir, subproject)
E       TypeError: InterpreterBase.__init__() missing 2 required positional arguments: 'subproject_dir' and 'env'

../BUILDROOT/usr/lib/python3.14/site-packages/colcon_meson/identification.py:26: TypeError
=========================== short test summary info ============================
FAILED test/test_identification.py::test_capital_case - TypeError: Interprete...
======================= 1 failed, 5 deselected in 0.14s ========================
error: Bad exit status from /var/tmp/rpm-tmp.8fd5DP (%check)

https://docs.python.org/3.14/whatsnew/3.14.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/09092267-python-colcon-meson/

For all our attempts to build python-colcon-meson with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-colcon-meson/

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.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
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.

Comment 1 Karolina Surma 2025-06-11 15:57:35 UTC
*** Bug 2371836 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.