Norman Fung added the comment:
I think this will work, i need to test further but it seems to work on
python 3.8.5. I think the prev fix didnt really fix it. And the core of the
problem was " _done_callback" fired before "outer" was defined by "
_GatheringFuture"
Norman Fung added the comment:
I tried hacking tasks.py (After revert back to Python 3.8.5), it
didn't work: Error disappeared, but essentially the program execution
freezed.
def _done_callback(fut):
... more ...
try: outer
except NameError: outer = None
Norman Fung added the comment:
Also, i reverted back to python 3.8.5 and overwrote task.py as recommended.
I think that version we dont already have "GenericAlias".
import asyncio
File "C:\ProgramData\Anaconda3\lib\asyncio\__init__.py", line 8, in
from .base_ev
Norman Fung added the comment:
Thanks Andrew for heads up.
*1. My laptop (Windows 10) *with no changes runs happily with no error from
here.
python 3.8.5
asyncio 3.4.3
2. *My Windows VM (AWS EC2)* is where the whole mess is happening. I *upgraded
*from Python 3.8.5 to 3.9.7. Asynio
Norman Fung added the comment:
Thanks Jelle, let me try upgrade first.
Norman
On Sat, Feb 26, 2022 at 9:27 AM Jelle Zijlstra
wrote:
>
> Jelle Zijlstra added the comment:
>
> 3.8 is only receiving security fixes now. Please upgrade. If you cannot
> upgrade, I suggest manual
New submission from Norman Fung :
In reference to ticket (which was fix for Python 3.9 or above)
https://bugs.python.org/issue46672?@ok_message=msg%20413975%20created%0Aissue%2046672%20nosy_count%2C%20nosy%2C%20messages%2C%20message_count%20edited%20ok&@template=item
I encountered
Norman Fung added the comment:
hi there, on this issue : https://bugs.python.org/issue46672
I encountered this problem on
a) Python 3.8.5
b) asyncio 3.4.3
This fix
https://github.com/python/cpython/commit/f1916cde24053f4c8b6799730666d19474f8dd09
is only available python 3.9 or above