After upgrading rasa I am gettting an error : ImportError: cannot import name 'NoReturn'

after upgrading rasa to newer version I am getting an error when I perform any rasa related command. eg. rasa --version, rasa init etc.

I am using python 3.6.0 and pip version is 20.0.2

Error :

   Traceback (most recent call last):
  File "/data/bot_python36_env/env/bin/rasa", line 5, in <module>
    from rasa.__main__ import main
  File "/data/bot_python36_env/env/lib/python3.6/site-packages/rasa/", line 8, in <module>
    from import run
  File "/data/bot_python36_env/env/lib/python3.6/site-packages/rasa/", line 5, in <module>
    from rasa.cli.utils import print_warning
  File "/data/bot_python36_env/env/lib/python3.6/site-packages/rasa/cli/", line 11, in <module>
    from typing import NoReturn
ImportError: cannot import name 'NoReturn'

@jiteshgaikwad can you have any idea about this error?

hey @sagarvanave, can you tell me the version of the packages related to tensorflow from pip list command?

tensorboard 2.1.1 tensorflow 2.1.0 tensorflow-addons 0.8.3 tensorflow-cpu 1.15.0 tensorflow-datasets 2.1.0 tensorflow-estimator 2.1.0 tensorflow-gan 2.0.0 tensorflow-hub 0.7.0 tensorflow-metadata 0.21.1

hey @sagarvanave, can you upgrade your python version to Python 3.6.9 and check since I am using Python 3.6.9 and Rasa 1.8.0 on Ubuntu 18.0.4.

Let me know if this helps :slight_smile: