Skip to content

Proactor event loop warning opt-out message is, weird? #1830

Open
@davetapley

Description

@davetapley

this is more suited to 'Discussion', but they're not enabled on this repo 🤔

I got this message:

pyzmq/zmq/asyncio.py

Lines 52 to 55 in 206411c

"Proactor event loop does not implement add_reader family of methods required for zmq."
" zmq will work with proactor if tornado >= 6.1 can be found."
" Use `asyncio.set_event_loop_policy(WindowsSelectorEventLoopPolicy())`"
" or install 'tornado>=6.1' to avoid this error."

And dutifully installed tornado, but then I'm told:

pyzmq/zmq/asyncio.py

Lines 59 to 62 in 206411c

"Proactor event loop does not implement add_reader family of methods required for zmq."
" Registering an additional selector thread for add_reader support via tornado."
" Use `asyncio.set_event_loop_policy(WindowsSelectorEventLoopPolicy())`"
" to avoid this warning.",

I understand, but if I set WindowsSelectorEventLoopPolicy() to avoid the warning,
then doesn't that defeat the purpose of installing tornado?

... and it also causes this issue:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions