Skip to content

Support for Python 3.14 #482

Description

@amotl

Hi again,

we know the package is currently low on maintenance (GH-476), but might need some action now to make it compatible with Python 3.14. When enabling Python 3.14 on LorryStream's (GH-470) CI per daq-tools/lorrystream#217, the workflow fails:

 self = <streamz.orderedweakset.OrderedSet object at 0x7fcfd0a078c0>

    def __iter__(self):
>       for itemref in self.data.copy():
                       ^^^^^^^^^^^^^^
E       AttributeError: 'OrderedSet' object has no attribute 'copy'

With kind regards,
Andreas.

Activity

  1. amotl commented on Dec 4, 2025

    @amotl
    ContributorAuthor

    A few cycles later, this error comes up.

    AttributeError: module 'asyncio' has no attribute 'SafeChildWatcher'
        def test_func():
            with pristine_loop() as loop:
                cor = gen.coroutine(func)
                try:
    >               loop.run_sync(cor, timeout=timeout)
    
    streamz/utils_test.py:70:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    .venv/lib/python3.14/site-packages/tornado/ioloop.py:547: in run_sync
        return future_cell["future"].result()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    .venv/lib/python3.14/site-packages/tornado/gen.py:239: in wrapper
        yielded = ctx_run(next, result)
                  ^^^^^^^^^^^^^^^^^^^^^
    streamz/tests/test_sources.py:125: in test_process_str
        watcher = asyncio.SafeChildWatcher()
                  ^^^^^^^^^^^^^^^^^^^^^^^^

    References

  2. amotl commented on Dec 4, 2025

    @amotl
    ContributorAuthor

    Hi again. We've submitted a patch to improve the situation.

  3. amotl commented on Dec 23, 2025

    @amotl
    ContributorAuthor

    CI also signals success on a downstream project. Thank you for releasing 0.6.5!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions