robotframework-crypto icon indicating copy to clipboard operation
robotframework-crypto copied to clipboard

Crashes with "WinError 995"

Open simonmeggle opened this issue 4 years ago • 3 comments

(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

simonmeggle avatar Jun 04 '21 05:06 simonmeggle

Thanks. Danke.

i will check that one.

Snooz82 avatar Jun 04 '21 07:06 Snooz82

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?

Snooz82 avatar Jun 04 '21 08:06 Snooz82

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.

simonmeggle avatar Jun 04 '21 08:06 simonmeggle