Found Issue Suddenly When Use rasa run command

Hello everyone, I made Rasa project and I dealy it daily, suddenly when I run rasa run give me this error!!!

/home/sallax/anaconda3/envs/rasa_env/lib/python3.7/site-packages/rasa/core/tracker_store.py:875: MovedIn20Warning: The ``declarative_base()`` function is now available as sqlalchemy.orm.declarative_base(). (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
  Base: DeclarativeMeta = declarative_base()
┌────────────────────────────────────────────────────────────────────────────────┐
│ Rasa Open Source reports anonymous usage telemetry to help improve the product │
│ for all its users.                                                             │
│                                                                                │
│ If you'd like to opt-out, you can use `rasa telemetry disable`.                │
│ To learn more, check out https://rasa.com/docs/rasa/telemetry/telemetry.       │
└────────────────────────────────────────────────────────────────────────────────┘
/home/sallax/anaconda3/envs/rasa_env/lib/python3.7/site-packages/sanic_cors/extension.py:39: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  SANIC_VERSION = LooseVersion(sanic_version)
/home/sallax/anaconda3/envs/rasa_env/lib/python3.7/site-packages/past/types/oldstr.py:5: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
  from collections import Iterable
/home/sallax/anaconda3/envs/rasa_env/lib/python3.7/site-packages/past/builtins/misc.py:4: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
  from collections import Mapping
/home/sallax/anaconda3/envs/rasa_env/lib/python3.7/site-packages/sklearn/utils/validation.py:37: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  LARGE_SPARSE_SUPPORTED = LooseVersion(scipy_version) >= '0.14.0'
/home/sallax/anaconda3/envs/rasa_env/lib/python3.7/site-packages/setuptools/_distutils/version.py:346: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  other = LooseVersion(other)
/home/sallax/anaconda3/envs/rasa_env/lib/python3.7/site-packages/matplotlib/__init__.py:182: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  a = distutils.version.LooseVersion(a)
Traceback (most recent call last):
  File "/home/sallax/anaconda3/envs/rasa_env/bin/rasa", line 8, in <module>
    sys.exit(main())
  File "/home/sallax/anaconda3/envs/rasa_env/lib/python3.7/site-packages/rasa/__main__.py", line 127, in main
    cmdline_arguments.func(cmdline_arguments)
  File "/home/sallax/anaconda3/envs/rasa_env/lib/python3.7/site-packages/rasa/cli/run.py", line 93, in run
    rasa.run(**vars(args))
  File "/home/sallax/anaconda3/envs/rasa_env/lib/python3.7/site-packages/rasa/api.py", line 42, in run
    _endpoints = AvailableEndpoints.read_endpoints(endpoints)
  File "/home/sallax/anaconda3/envs/rasa_env/lib/python3.7/site-packages/rasa/core/utils.py", line 175, in read_endpoints
    nlg = read_endpoint_config(endpoint_file, endpoint_type="nlg")
  File "/home/sallax/anaconda3/envs/rasa_env/lib/python3.7/site-packages/rasa/utils/endpoints.py", line 29, in read_endpoint_config
    content = rasa.shared.utils.io.read_config_file(filename)
  File "/home/sallax/anaconda3/envs/rasa_env/lib/python3.7/site-packages/rasa/shared/utils/io.py", line 588, in read_config_file
    return read_validated_yaml(filename, CONFIG_SCHEMA_FILE)
  File "/home/sallax/anaconda3/envs/rasa_env/lib/python3.7/site-packages/rasa/shared/utils/io.py", line 572, in read_validated_yaml
    rasa.shared.utils.validation.validate_yaml_schema(content, schema)
  File "/home/sallax/anaconda3/envs/rasa_env/lib/python3.7/site-packages/rasa/shared/utils/validation.py", line 144, in validate_yaml_schema
    yaml_file_content, reader_type=["safe", "rt"]
  File "/home/sallax/anaconda3/envs/rasa_env/lib/python3.7/site-packages/rasa/shared/utils/io.py", line 355, in read_yaml
    yaml_parser = yaml.YAML(typ=reader_type)
  File "/home/sallax/anaconda3/envs/rasa_env/lib/python3.7/site-packages/ruamel/yaml/main.py", line 138, in __init__
    'typ "{}"not recognised (need to install plug-in?)'.format(self.typ)
NotImplementedError: typ "['safe', 'rt']"not recognised (need to install plug-in?)

Any help?

Hi @Abdo_Kamr, have you checked the mentioned error in main.py file?

Hi @Abdo_Kamr Did any of the library updated in between your daily running of rasa model? If so maybe then there could be some dependency conflict.

I’m hoping you have not changed any part of rasa code. I would suggest you uninstall rasa and the yaml library and install a fresh version again.