Custom action for custom slot mapping sanic error

Hi, I was testing custom slot mapping via custom action, but it seems it is providing errors as follows.


Code:

class ValidateTeamName(Action):
    def name(self) -> Text:
        return "action_extract_team_name"

    def run(
        self,
        dispatcher: "CollectingDispatcher",
        tracker: Tracker,
        domain: "DomainDict",
    ) -> List[Dict[Text, Any]]:
         return [SlotSet("team_name", "barcelona")]

Domain:

slots:
  event_type_major:
    type: text
    influence_conversation: false
    mappings:
    - type: custom
      action: action_extract_team_name

actions:
- action_extract_team_name

@Horizon733 Is this for Rasa3.0 and please share rasa --version , can you share us what is the sanic version and can you share the requirements.txt file while using pip freeze > requirements.txt

Rasa Version      :         3.0.0
Minimum Compatible Version: 3.0.0
Rasa SDK Version  :         3.0.1
Rasa X Version    :         None
Python Version    :         3.7.5
Operating System  :         Windows-10-10.0.19041-SP0
Python Path       :         d:\hoory\betting-bot\hoory-env\scripts\python.exe

Sanic:

sanic                   21.9.3   
sanic-cors              1.0.1  
sanic-jwt               1.7.0   
sanic-plugin-toolkit    1.2.0
sanic-routing           0.7.2

@Horizon733 can you try this:

sanic==21.6.0
Sanic-Cors==1.0.0
sanic-jwt==1.7.0
sanic-plugin-toolkit==1.2.0
Sanic-Plugins-Framework==0.9.5
sanic-routing==0.7.0

Always mention me as @ and nik202 for fast reply. Keep me update.