Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes with "WinError 995" #13

Open
simonmeggle opened this issue Jun 4, 2021 · 3 comments
Open

Crashes with "WinError 995" #13

simonmeggle opened this issue Jun 4, 2021 · 3 comments

Comments

@simonmeggle
Copy link

(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
@Snooz82
Copy link
Owner

Snooz82 commented Jun 4, 2021

Thanks. Danke.

i will check that one.

@Snooz82
Copy link
Owner

Snooz82 commented Jun 4, 2021

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?

@simonmeggle
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants