Trainer initialization error

Hi,

I’m stuck with this error when try to initialize rasa_nlu trainer with spacy as backend Can anyone help me out

trainer = Trainer(config.load(“config_spacy.yml”)) Traceback (most recent call last): File “”, line 1, in File “/home/preetham/workspace/nlp/.env/lib/python3.5/site-packages/rasa_nlu/config.py”, line 43, in load return RasaNLUModelConfig(file_config) File “/home/preetham/workspace/nlp/.env/lib/python3.5/site-packages/rasa_nlu/config.py”, line 101, in init from rasa_nlu import registry File “/home/preetham/workspace/nlp/.env/lib/python3.5/site-packages/rasa_nlu/registry.py”, line 12, in from rasa_nlu.classifiers.embedding_intent_classifier import
File “/home/preetham/workspace/nlp/.env/lib/python3.5/site-packages/rasa_nlu/classifiers/embedding_intent_classifier.py”, line 28, in class EmbeddingIntentClassifier(Component): File “/home/preetham/workspace/nlp/.env/lib/python3.5/site-packages/rasa_nlu/classifiers/embedding_intent_classifier.py”, line 119, in EmbeddingIntentClassifier intent_embed: Optional[‘tf.Tensor’] = None File “/usr/lib/python3.5/typing.py”, line 649, in getitem return Union[arg, type(None)] File “/usr/lib/python3.5/typing.py”, line 552, in getitem dict(self.dict), parameters, _root=True) File “/usr/lib/python3.5/typing.py”, line 512, in new for t2 in all_params - {t1} if not isinstance(t2, TypeVar)): File “/usr/lib/python3.5/typing.py”, line 512, in for t2 in all_params - {t1} if not isinstance(t2, TypeVar)): File “/usr/lib/python3.5/typing.py”, line 190, in subclasscheck self._eval_type(globalns, localns) File “/usr/lib/python3.5/typing.py”, line 177, in _eval_type eval(self.forward_code, globalns, localns), File “”, line 1, in AttributeError: ‘NoneType’ object has no attribute ‘Session’

Hi @preetham-jayaram. I think you are using an old example of Rasa assistant. To get started I would suggest you following the tutorial on Rasa documentation here: Tutorial: Building Assistants