Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tornado for python 2.7 requires asyncio which is python 3+ only

I started using gremlinclient which needs to be Tornado for websockets. However Tornado uses asyncio module which requires Python 3+. Considering Tornado is Python 2.7 compatible I'm not sure how I'm supposed to get asyncio working with it.

What am I missing? How can I resolve this?

like image 397
AtharvaI Avatar asked Dec 12 '25 14:12

AtharvaI


1 Answers

Tornado can run on asyncio's IOLoop, but it is not required to. It is not in requirements of Tornado (even 4.3), you should install it with no problems. Even though asyncio has been ported to python 2.7 - trollius.

Btw I am using Tornado on 2.7 without asyncio/trollius.

like image 168
kwarunek Avatar answered Dec 15 '25 06:12

kwarunek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!