Importing rasa on Google Colab

I am trying to import rasa on Google Colab but there is an error popping up AttributeError: module ‘rasa’ has no attribute 'version’ Can anyone help me solve this?

Complete Error

AttributeError Traceback (most recent call last) in () ----> 1 import rasa 2 model_path = rasa.train(domain, config, [training_files], output)

/usr/local/lib/python3.6/dist-packages/rasa/init.py in () 4 5 # define the version before the other imports since these need it ----> 6 version = rasa.version.version 7 8 from rasa.run import run

AttributeError: module ‘rasa’ has no attribute ‘version’

hey @avnish_002 checkout this thread RASA on Google Colab - #2 by JiteshGaikwad

I have cloned the formbot on RASA’s github. Why is it not working with that? My concern is if I use the method suggested by you, how will I get to edit the files created by RASA on Google Colab. Please suggest.

hey @avnish_002 since we don’t have editor on Google colab, you can use the jupyter commands to edit the files, you can follow the steps to edit file mentioned here:

Thank you sir!

After using the method suggested by you, I am getting the following error:

TypeError Traceback (most recent call last) in () ----> 1 import rasa 2 3 model_path = rasa.train(domain, config, [training_files], output)

5 frames /usr/local/lib/python3.6/dist-packages/rasa/init.py in () 6 version = rasa.version.version 7 ----> 8 from rasa.run import run 9 from rasa.train import train 10 from rasa.test import test

/usr/local/lib/python3.6/dist-packages/rasa/run.py in () 6 7 from rasa.constants import DOCS_BASE_URL ----> 8 from rasa.cli.utils import minimal_kwargs, print_warning, print_error 9 from rasa.model import get_model 10

/usr/local/lib/python3.6/dist-packages/rasa/cli/utils.py in () 3 from typing import Any, Callable, Dict, Optional, Text, List 4 import logging ----> 5 from questionary import Question 6 7 from rasa.constants import DEFAULT_MODELS_PATH

/usr/local/lib/python3.6/dist-packages/questionary/init.py in () 3 4 import questionary.version ----> 5 from questionary.form import Form 6 from questionary.form import form 7 from questionary.prompt import prompt

/usr/local/lib/python3.6/dist-packages/questionary/form.py in () 1 from collections import namedtuple 2 ----> 3 from questionary.constants import DEFAULT_KBI_MESSAGE 4 from questionary.question import Question 5

/usr/local/lib/python3.6/dist-packages/questionary/constants.py in () 38 (‘selected’, ‘’), # style for a selected item of a checkbox 39 (‘separator’, ‘’), # separator in lists —> 40 (‘instruction’, ‘’) # user instructions for select, rawselect, checkbox 41 ])

TypeError: object() takes no parameters

Please help me out.

Hey @avnish_002 did you resolve this problem. I’m also facing the same problem.