Sanic and sanic-plugin-toolkit version incompatibility error: rasa3

I’m trying to upgrade an chatbot project from rasa2 to rasa3, and have sanic 21.12.0 installed, I got the following error:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
sanic-plugin-toolkit 1.2.1 requires sanic<21.12.0,>=21.3.1, but you have sanic 21.12.2 which is incompatible.

It is because the latest sanic plugin toolkit doesnt support sanic beyond 21.12.0 while rasa asks for the newer ones.

sanic-plugin-toolkit 1.2.1(latest) requires sanic<21.12.0,>=21.3.1 rasa 3.1.0 requires sanic<21.13,>=21.12 rasa-sdk 3.1.3 requires sanic<22.0.0,>=21.12.0

In my production container, it also cant find the ctx attribute, although I installed sanic 21.12.0.

Traceback (most recent call last):
  File "/opt/venv/bin/rasa", line 8, in <module>
  File "/opt/venv/lib/python3.8/site-packages/rasa/", line 119, in main
  File "/opt/venv/lib/python3.8/site-packages/rasa/cli/", line 353, in rasa_x
  File "/opt/venv/lib/python3.8/site-packages/rasa/cli/", line 418, in run_in_production
    _rasa_service(args, endpoints, None, credentials_path)
  File "/opt/venv/lib/python3.8/site-packages/rasa/cli/", line 89, in _rasa_service
  File "/opt/venv/lib/python3.8/site-packages/rasa/core/", line 181, in serve_application
    app = configure_app(
  File "/opt/venv/lib/python3.8/site-packages/rasa/core/", line 116, in configure_app, app, route=route)
  File "/opt/venv/lib/python3.8/site-packages/rasa/core/channels/", line 96, in register
    app.blueprint(channel.blueprint(handler), url_prefix=p)
  File "/app/channels/", line 273, in blueprint
    socketio_webhook = SocketBlueprint(
  File "/app/channels/", line 18, in __init__
    self.ctx.sio = sio
AttributeError: ctx

Does anyone else have the same issue. How can I resolve this for rasa3?

Thank you!