Open shibisuriya opened 2 years ago
Working fine on Python 3.8.10.
RuntimeError: To use txaio, you must first select a framework with .use_twisted() or .use_asyncio()
Something to do with txaio, you have added at your end?
You would need to set txaio.use_asyncio()
Hi Rakesh, Thank you for replying, can please add the requirements.txt, so that I can install appropriate version of the required python modules (dependencies) so that this error goes away?
The script doesn't work out of the box on python3, Stack trace...
shibisuriya@Shibis-MacBook-Air Kite-Connect-API % python3 asyncio_ticker.py Traceback (most recent call last): File "asyncio_ticker.py", line 6, in
from autobahn.asyncio.websocket import WebSocketClientProtocol, WebSocketClientFactory
File "/Users/shibisuriya/Library/Python/3.8/lib/python/site-packages/autobahn/asyncio/init.py", line 32, in
from autobahn.asyncio.websocket import \
File "/Users/shibisuriya/Library/Python/3.8/lib/python/site-packages/autobahn/asyncio/websocket.py", line 36, in
from autobahn.wamp import websocket
File "/Users/shibisuriya/Library/Python/3.8/lib/python/site-packages/autobahn/wamp/websocket.py", line 32, in
from autobahn.websocket import protocol
File "/Users/shibisuriya/Library/Python/3.8/lib/python/site-packages/autobahn/websocket/protocol.py", line 2533, in
class WebSocketServerProtocol(WebSocketProtocol):
File "/Users/shibisuriya/Library/Python/3.8/lib/python/site-packages/autobahn/websocket/protocol.py", line 2538, in WebSocketServerProtocol
log = txaio.make_logger()
File "/Users/shibisuriya/Library/Python/3.8/lib/python/site-packages/txaio/_unframework.py", line 41, in _throw_usage_error
raise RuntimeError(
RuntimeError: To use txaio, you must first select a framework with .use_twisted() or .use_asyncio()