Bug 2367253

Summary: python-exdir fails to build with Python 3.14: TypeError: 'module' object is not iterable | TypeError: 'Plugin' object is not iterable
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-exdirAssignee: Sandro <gui1ty>
Status: CLOSED WORKSFORME QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fti-bugs, gui1ty, ksurma, mhroncok, neuro-sig, sanjay.ankur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-06-19 19:53:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2322407, 2339432, 2339435    

Description Karolina Surma 2025-05-19 13:14:53 UTC
python-exdir fails to build with Python 3.14.0b1.

_________________ ERROR at setup of test_quantities_attributes _________________

tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_quantities_attributes0')

    @pytest.fixture
    def quantities_tmpfile(tmpdir):
        testpath = pathlib.Path(tmpdir.strpath) / "test.exdir"
>       f = exdir.File(testpath, mode="w", plugins=exdir.plugins.quantities)

tests/conftest.py:79: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../BUILDROOT/usr/lib/python3.14/site-packages/exdir/core/exdir_file.py:85: in __init__
    self.plugin_manager = exdir.plugin_interface.plugin_interface.Manager(plugins)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <exdir.plugin_interface.plugin_interface.Manager object at 0x7f5ad849dcd0>
plugins = <module 'exdir.plugins.quantities' from '/builddir/build/BUILD/python-exdir-0.5.0.1-build/BUILDROOT/usr/lib/python3.14/site-packages/exdir/plugins/quantities.py'>

    def __init__(self, plugins):
    
        file_plugins = []
        group_plugins = []
        dataset_plugins = []
        attribute_plugins = []
        raw_plugins = []
    
        if plugins is None:
            plugins = []
    
        # make iterable if not already so
        try:
            _ = (e for e in plugins)
        except TypeError:
            plugins = [plugins]
    
        self.plugins = []
>       for plugin in plugins:
E       TypeError: 'module' object is not iterable

../BUILDROOT/usr/lib/python3.14/site-packages/exdir/plugin_interface/plugin_interface.py:289: TypeError

__________________________________ test_noop ___________________________________

setup_teardown_folder = (PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_noop0'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_noop0/test.exdir'), PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_noop0/exdir_dir'))

    def test_noop(setup_teardown_folder):
        class DatasetPlugin(exdir.plugin_interface.Dataset):
            def prepare_read(self, dataset_data):
                return dataset_data
    
            def prepare_write(self, dataset_data):
                return dataset_data
    
        noop = exdir.plugin_interface.Plugin(
            "noop",
            dataset_plugins=[DatasetPlugin()]
        )
    
>       f = exdir.File(setup_teardown_folder[1], 'w', plugins=noop)

tests/test_plugins.py:92: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../BUILDROOT/usr/lib/python3.14/site-packages/exdir/core/exdir_file.py:85: in __init__
    self.plugin_manager = exdir.plugin_interface.plugin_interface.Manager(plugins)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <exdir.plugin_interface.plugin_interface.Manager object at 0x7f5ad8865650>
plugins = <exdir.plugin_interface.plugin_interface.Plugin object at 0x7f5ad864a7b0>

    def __init__(self, plugins):
    
        file_plugins = []
        group_plugins = []
        dataset_plugins = []
        attribute_plugins = []
        raw_plugins = []
    
        if plugins is None:
            plugins = []
    
        # make iterable if not already so
        try:
            _ = (e for e in plugins)
        except TypeError:
            plugins = [plugins]
    
        self.plugins = []
>       for plugin in plugins:
E       TypeError: 'Plugin' object is not iterable

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-b1/fedora-rawhide-x86_64/09062447-python-exdir/

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

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-b1/

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 Sandro 2025-05-25 12:16:23 UTC
Patch sent upstream and applied downstream:

https://src.fedoraproject.org/rpms/python-exdir/pull-request/5

Comment 2 Karolina Surma 2025-06-11 15:58:55 UTC
*** Bug 2371894 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Fails To Install 2025-06-19 19:53:35 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

All subpackages of a package against which this bug was filled are now installable or removed from Fedora 43.

Thanks for taking care of it!