AttributeError

I’ve just trained and tested a new rasa project, but when I try to run rasa x I get this error:

Traceback (most recent call last):
  File "/Users/matthewspeck/anaconda3/bin/rasa", line 11, in <module>
    sys.exit(main())
    │        └ <function main at 0x110796ae8>
    └ <module 'sys' (built-in)>
  File "/Users/matthewspeck/anaconda3/lib/python3.6/site-packages/rasa/__main__.py", line 70, in main
    cmdline_arguments.func(cmdline_arguments)
    │                      └ Namespace(auth_token=None, connector=None, cors='*', credentials=None, data='data', enable_api=True, endpoints=<rasa.core.utils....
    └ Namespace(auth_token=None, connector=None, cors='*', credentials=None, data='data', enable_api=True, endpoints=<rasa.core.utils....
  File "/Users/matthewspeck/anaconda3/lib/python3.6/site-packages/rasa/cli/x.py", line 243, in rasa_x
    local.main(args, project_path, args.data, token=rasa_x_token)
    │          │     │             │                └ 'b6dc987ad3182bc196e40783fc7587f8'
    │          │     │             └ Namespace(auth_token=None, connector=None, cors='*', credentials=None, data='data', enable_api=True, endpoints=<rasa.core.utils....
    │          │     └ '.'
    │          └ Namespace(auth_token=None, connector=None, cors='*', credentials=None, data='data', enable_api=True, endpoints=<rasa.core.utils....
    └ <module 'rasax.community.local' from '/Users/matthewspeck/anaconda3/lib/python3.6/site-packages/rasax/community/local.py'>
  File "/Users/matthewspeck/anaconda3/lib/python3.6/site-packages/rasax/community/local.py", line 194, in main
    session)
  File "/Users/matthewspeck/anaconda3/lib/python3.6/site-packages/rasax/community/local.py", line 144, in _initialize_with_local_data
    LOCAL_PROJECT_NAME,
    └ 'default'
  File "/Users/matthewspeck/anaconda3/lib/python3.6/site-packages/rasax/community/api/initialise.py", line 170, in inject_domain
    username=username)
  File "/Users/matthewspeck/anaconda3/lib/python3.6/site-packages/rasax/community/services/projects_service.py", line 48, in store_domain
    templates = _templates(domain, username, project_id)
    │           │          │       │         └ 'default'
    │           │          │       └ 'me'
    │           │          └ {'entities': ['crowdfunding_platform'], 'intents': ['affirm_intent', 'deny_intent', 'goodbye_intent', 'greet_intent', 'menu_opti...
    │           └ <function _templates at 0x147182730>
    └ []
  File "/Users/matthewspeck/anaconda3/lib/python3.6/site-packages/rasax/community/services/projects_service.py", line 259, in _templates
    for template, responses in templates.items() for response in responses
  File "/Users/matthewspeck/anaconda3/lib/python3.6/site-packages/rasax/community/services/projects_service.py", line 259, in <listcomp>
    for template, responses in templates.items() for response in responses
AttributeError: 'str' object has no attribute 'get'

Any idea why this would happen? Again, training and testing worked fine.

Hi Matt, we’re aware of this bug – check out this github issue for the fix.