You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by "mcatanzaro (via GitHub)" <gi...@apache.org> on 2025/09/04 20:06:14 UTC

[I] AttributeError: module 'asyncio' has no attribute 'set_child_watcher' [buildstream]

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: commits-unsubscribe@buildstream.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] AttributeError: module 'asyncio' has no attribute 'set_child_watcher' [buildstream]

Posted by "nanonyme (via GitHub)" <gi...@apache.org>.
nanonyme commented on issue #2053:
URL: https://github.com/apache/buildstream/issues/2053#issuecomment-3255840411

   I would say duplicate. This was known removal, no one just fixed it in time 


-- 
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: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] AttributeError: module 'asyncio' has no attribute 'set_child_watcher' [buildstream]

Posted by "juergbi (via GitHub)" <gi...@apache.org>.
juergbi commented on issue #2053:
URL: https://github.com/apache/buildstream/issues/2053#issuecomment-3264735047

   Yes, let's close this as a duplicate and try to fix #1990 as soon as possible.


-- 
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: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] AttributeError: module 'asyncio' has no attribute 'set_child_watcher' [buildstream]

Posted by "juergbi (via GitHub)" <gi...@apache.org>.
juergbi closed issue #2053: AttributeError: module 'asyncio' has no attribute 'set_child_watcher'
URL: https://github.com/apache/buildstream/issues/2053


-- 
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: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] AttributeError: module 'asyncio' has no attribute 'set_child_watcher' [buildstream]

Posted by "mcatanzaro (via GitHub)" <gi...@apache.org>.
mcatanzaro commented on issue #2053:
URL: https://github.com/apache/buildstream/issues/2053#issuecomment-3255566543

   Looks like this is a sequel to #1990 


-- 
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: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org