robotframework-crypto
robotframework-crypto copied to clipboard
Crashes with "WinError 995"
(Windows 10, Python 3.8.5, venv with only robotframework-crypto installed)
(crypto) C:\>python -m CryptoLibrary
? What do you want to do? Open config
? What do you want to do? Configure key pair
? What do you want to do? Set key path
? Input path of key store folder: keys
? What do you want to do? Generate key pair
? Do you want to regenerate the key pair? Yes
Unhandled exception in event loop:
File "c:\program files\python38\lib\asyncio\proactor_events.py", line 768, in _loop_self_reading
f.result() # may raise
File "c:\program files\python38\lib\asyncio\windows_events.py", line 808, in _poll
value = callback(transferred, key, ov)
File "c:\program files\python38\lib\asyncio\windows_events.py", line 457, in finish_recv
raise ConnectionResetError(*exc.args)
Exception [WinError 995] Der E/A-Vorgang wurde wegen eines Threadendes oder einer Anwendungsanforderung abgebrochen
Unhandled exception in event loop:
File "c:\program files\python38\lib\asyncio\proactor_events.py", line 768, in _loop_self_reading
f.result() # may raise
File "c:\program files\python38\lib\asyncio\windows_events.py", line 808, in _poll
value = callback(transferred, key, ov)
File "c:\program files\python38\lib\asyncio\windows_events.py", line 457, in finish_recv
raise ConnectionResetError(*exc.args)
Exception [WinError 995] Der E/A-Vorgang wurde wegen eines Threadendes oder einer Anwendungsanforderung abgebrochen
Press ENTER to continue...
I found out that downgrading prompt-toolkit from latest 3.0.18 to version 2 helps:
pip install prompt-toolkit==2.0.10
Thanks. Danke.
i will check that one.
Hi @simonmeggle
I can not reproduce it. neither on Windows nor on Mac.
On Windows i do have Python 3.9.1
Could you try to narrow it a bit down?
It's a problem with asyncio on Windows, seems to be fixed in Python 3.9.1 (my machine has 3.8.5). See https://bugs.python.org/issue39010 If it s not solvable in CryptoLib, please add a comment somewhere in the docs that upgrading Python is a good idea.