Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2641

asyncio.AbstractChildWatcher missing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • None
    • 6.6.2
    • QtAsyncio
    • None
    • Python 3.12.1
      PySide6 6.6.2
    • Windows

    Description

      When I use QtAsyncio, I got this problem

      Traceback (most recent call last):
        File "E:\Player\main.py", line 4, in <module>
          from PySide6 import QtAsyncio
        File "C:\Users\Alex\AppData\Local\pypoetry\Cache\virtualenvs\player-ZT0FA7Qo-py3.12\Lib\site-packages\PySide6\QtAsyncio\__init__.py", line 4, in <module>
          from .events import (
        File "C:\Users\Alex\AppData\Local\pypoetry\Cache\virtualenvs\player-ZT0FA7Qo-py3.12\Lib\site-packages\PySide6\QtAsyncio\events.py", line 59, in <module>
          class QAsyncioEventLoopPolicy(asyncio.AbstractEventLoopPolicy):
        File "C:\Users\Alex\AppData\Local\pypoetry\Cache\virtualenvs\player-ZT0FA7Qo-py3.12\Lib\site-packages\PySide6\QtAsyncio\events.py", line 86, in QAsyncioEventLoopPolicy
          def get_child_watcher(self) -> asyncio.AbstractChildWatcher:
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'asyncio' has no attribute 'AbstractChildWatcher'
      

      It seems that AbstractChildWatcher deprecated since version 3.12.
      asyncio.AbstractChildWatcher

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            adherrma Adrian Herrmann (Inactive)
            alexzh alex alex
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes