prompt-toolkit / python-prompt-toolkit

Library for building powerful interactive command line applications in Python
https://python-prompt-toolkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
9.37k stars 716 forks source link

OSError: [WinError 6] The handle is invalid #1433

Open joaompinto opened 3 years ago

joaompinto commented 3 years ago

Running on Windows 10

$ python -V Python 3.8.4

$ ptpython -V 3.0.17

$ ptpython

print("ok") Cancelling an overlapped future failed future: <_OverlappedFuture pending overlapped=<pending, 0x235e16bedc0> cb=[BaseProactorEventLoop._loop_self_reading()]> Traceback (most recent call last): File "c:\users\lameg\appdata\local\programs\python\python38\lib\asyncio\windows_events.py", line 66, in _cancel_overlapped self._ov.cancel() OSError: [WinError 6] The handle is invalid ok

wedesoft commented 3 years ago

Yes, joaompinto's commit fixes it for me as well.

IlyaOrson commented 3 years ago

Could the fix get merged?

kylepollina commented 3 years ago

The merge request https://github.com/prompt-toolkit/python-prompt-toolkit/pull/1434 still has work to do. The maintainer wants it designed differently