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

AttributeError: 'QAsyncioTask' object has no attribute '_source_traceback'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.8.0.2
    • QtAsyncio
    • None
    • windows + cpython 3.9
    • Windows

    Description

      When I run the example code given here (minimal_asyncio.py): Async "Minimal" Example - Qt for Python

      I get the following error:

      Traceback (most recent call last):
        File "C:\Users\sme\AppData\Roaming\JetBrains\PyCharm2024.3\scratches\scratch_14.py", line 28, in <lambda>
          async_trigger.clicked.connect(lambda: asyncio.ensure_future(self.set_text()))
        File "C:\Users\sme\AppData\Local\miniforge3\envs\dev39\lib\asyncio\tasks.py", line 666, in ensure_future
          if task._source_traceback:
      AttributeError: 'QAsyncioTask' object has no attribute '_source_traceback'
      

      I have also tried with PySide6 6.7.0 and get the same error. So seems like not a new thing.

      I'm trying to find a neat solution to use asyncio together with qt through PySide6 without using a third-party library, which is why I followed the example from abovementioned page. I look forward to some assistance in this regard.

      Thanks in advance,

      Best regards,

      Masih

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            masih Sayed Masih Emami
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes