mcatanzaro opened a new issue, #2053:
URL: https://github.com/apache/buildstream/issues/2053

   Looks like bst 2.5.0 is unfortunately incompatible with Python 3.14.0rc2. 
Here's an example of me trying to run `bst build components/openssl.bst` in the 
freedesktop-sdk project using Fedora 43's buildstream package:
   
   ```
   BUG     module 'asyncio' has no attribute 'set_child_watcher'
   
       Traceback (most recent call last):
         File "/usr/bin/bst", line 8, in <module>
           sys.exit(cli())
                    ~~~^^
         File "/usr/lib/python3.14/site-packages/click/core.py", line 1442, in 
__call__
           return self.main(*args, **kwargs)
                  ~~~~~~~~~^^^^^^^^^^^^^^^^^
         File "/usr/lib/python3.14/site-packages/click/core.py", line 1363, in 
main
           rv = self.invoke(ctx)
         File "/usr/lib/python3.14/site-packages/click/core.py", line 1830, in 
invoke
           return _process_result(sub_ctx.command.invoke(sub_ctx))
                                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
         File "/usr/lib/python3.14/site-packages/click/core.py", line 1226, in 
invoke
           return ctx.invoke(self.callback, **ctx.params)
                  ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         File "/usr/lib/python3.14/site-packages/click/core.py", line 794, in 
invoke
           return callback(*args, **kwargs)
         File "/usr/lib/python3.14/site-packages/click/decorators.py", line 46, 
in new_func
           return f(get_current_context().obj, *args, **kwargs)
         File 
"/usr/lib64/python3.14/site-packages/buildstream/_frontend/cli.py", line 522, 
in build
           app.stream.build(
           ~~~~~~~~~~~~~~~~^
               elements,
               ^^^^^^^^^
           ...<6 lines>...
               retry_failed=retry_failed,
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
           )
           ^
         File "/usr/lib64/python3.14/site-packages/buildstream/_stream.py", 
line 442, in build
           self._run(announce_session=True)
           ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
         File "/usr/lib64/python3.14/site-packages/buildstream/_stream.py", 
line 1811, in _run
           status = self._scheduler.run(self.queues, 
self._context.get_cascache().get_casd())
         File 
"/usr/lib64/python3.14/site-packages/buildstream/_scheduler/scheduler.py", line 
53, in wrapper
           return func(*args, **kwargs)
         File 
"/usr/lib64/python3.14/site-packages/buildstream/_scheduler/scheduler.py", line 
145, in run
           asyncio.set_child_watcher(asyncio.SafeChildWatcher())  # pylint: 
disable=deprecated-class
           ^^^^^^^^^^^^^^^^^^^^^^^^^
         File "/usr/lib64/python3.14/asyncio/__init__.py", line 74, in 
__getattr__
           raise AttributeError(f"module {__name__!r} has no attribute 
{name!r}")
       AttributeError: module 'asyncio' has no attribute 'set_child_watcher'
   
   Error in sys.excepthook:
   Traceback (most recent call last):
     File "/usr/lib64/python3.14/site-packages/buildstream/_frontend/app.py", 
line 538, in _global_exception_handler
       self.stream.terminate()
       ~~~~~~~~~~~~~~~~~~~~~^^
     File "/usr/lib64/python3.14/site-packages/buildstream/_stream.py", line 
1276, in terminate
       self._scheduler.terminate()
       ~~~~~~~~~~~~~~~~~~~~~~~~~^^
     File 
"/usr/lib64/python3.14/site-packages/buildstream/_scheduler/scheduler.py", line 
242, in terminate
       self.loop.call_soon(self._terminate_jobs_real)
       ^^^^^^^^^^^^^^^^^^^
   AttributeError: 'NoneType' object has no attribute 'call_soon'
   
   Original exception was:
   Traceback (most recent call last):
     File "/usr/bin/bst", line 8, in <module>
       sys.exit(cli())
                ~~~^^
     File "/usr/lib/python3.14/site-packages/click/core.py", line 1442, in 
__call__
       return self.main(*args, **kwargs)
              ~~~~~~~~~^^^^^^^^^^^^^^^^^
     File "/usr/lib/python3.14/site-packages/click/core.py", line 1363, in main
       rv = self.invoke(ctx)
     File "/usr/lib/python3.14/site-packages/click/core.py", line 1830, in 
invoke
       return _process_result(sub_ctx.command.invoke(sub_ctx))
                              ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
     File "/usr/lib/python3.14/site-packages/click/core.py", line 1226, in 
invoke
       return ctx.invoke(self.callback, **ctx.params)
              ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/lib/python3.14/site-packages/click/core.py", line 794, in invoke
       return callback(*args, **kwargs)
     File "/usr/lib/python3.14/site-packages/click/decorators.py", line 46, in 
new_func
       return f(get_current_context().obj, *args, **kwargs)
     File "/usr/lib64/python3.14/site-packages/buildstream/_frontend/cli.py", 
line 522, in build
       app.stream.build(
       ~~~~~~~~~~~~~~~~^
           elements,
           ^^^^^^^^^
       ...<6 lines>...
           retry_failed=retry_failed,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
       )
       ^
     File "/usr/lib64/python3.14/site-packages/buildstream/_stream.py", line 
442, in build
       self._run(announce_session=True)
       ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/lib64/python3.14/site-packages/buildstream/_stream.py", line 
1811, in _run
       status = self._scheduler.run(self.queues, 
self._context.get_cascache().get_casd())
     File 
"/usr/lib64/python3.14/site-packages/buildstream/_scheduler/scheduler.py", line 
53, in wrapper
       return func(*args, **kwargs)
     File 
"/usr/lib64/python3.14/site-packages/buildstream/_scheduler/scheduler.py", line 
145, in run
       asyncio.set_child_watcher(asyncio.SafeChildWatcher())  # pylint: 
disable=deprecated-class
       ^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/lib64/python3.14/asyncio/__init__.py", line 74, in __getattr__
       raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
   AttributeError: module 'asyncio' has no attribute 'set_child_watcher'
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to