This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vishalpandeyvip
Recipients asvetlov, gvanrossum, iritkatriel, vishalpandeyvip, yselivanov
Date 2021-12-01.20:04:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638389043.85.0.0411374282621.issue45924@roundup.psfhosted.org>
In-reply-to
Content
hey Irit, Is this issue platform-dependent? I am on ubuntu 20.04, and running python 3.10. I am not getting the same error that you have mentioned below.
This is what I am getting.
###################################

hello ...
Traceback (most recent call last):
  File "error.py", line 17, in main
    print(await fut)
TypeError: 42

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "error.py", line 21, in <module>
    asyncio.run(main())
  File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "error.py", line 19, in main
    traceback.print_exception(e)
TypeError: print_exception() missing 2 required positional arguments: 'value' and 'tb'

###########################################################
and if I replace traceback.print_exception method with the print method, It runs perfectly fine, printing

hello ...
42
42
42

Can you please help me with this issue?
History
Date User Action Args
2021-12-01 20:04:04vishalpandeyvipsetrecipients: + vishalpandeyvip, gvanrossum, asvetlov, yselivanov, iritkatriel
2021-12-01 20:04:03vishalpandeyvipsetmessageid: <1638389043.85.0.0411374282621.issue45924@roundup.psfhosted.org>
2021-12-01 20:04:03vishalpandeyviplinkissue45924 messages
2021-12-01 20:04:03vishalpandeyvipcreate