I am facing this issue in rasa-demo

Dear Rasa Experts,

I am just getting started with Rasa and building this demo bot. I hope someone kind enough will help me out.

I was facing issues in python -m spacy download so I passed the --direct option python -m spacy download --direct en_core_web_md-2.2.5

I was able to build the repo

But when I ran the rasa train, I am facing the below error, I already tried several times.

(aks-rasa-bot) aks@DESKTOP-P8POPMP:~/spirinova-rasa-demo$ rasa train 2023-11-22 23:06:14 ERROR rasa.model - Failed to get the fingerprint. Error: No NLU or Core data for unpacked model at: ‘/tmp/tmp40r6wqhe’… Proceeding with running default retrain… Training NLU model… Traceback (most recent call last): File “/home/aks/aks-rasa-bot/bin/rasa”, line 8, in sys.exit(main()) File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/rasa/main.py”, line 118, in main cmdline_arguments.func(cmdline_arguments) File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/rasa/cli/train.py”, line 59, in train_parser.set_defaults(func=lambda args: run_training(args, can_exit=True)) File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/rasa/cli/train.py”, line 103, in run_training finetuning_epoch_fraction=args.epoch_fraction, File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/rasa/api.py”, line 124, in train loop, File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/rasa/utils/common.py”, line 296, in run_in_loop result = loop.run_until_complete(f) File “uvloop/loop.pyx”, line 1517, in uvloop.loop.Loop.run_until_complete File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/rasa/model_training.py”, line 119, in train_async finetuning_epoch_fraction=finetuning_epoch_fraction, File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/rasa/model_training.py”, line 299, in _train_async_internal finetuning_epoch_fraction=finetuning_epoch_fraction, File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/rasa/model_training.py”, line 342, in _do_training finetuning_epoch_fraction=finetuning_epoch_fraction, File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/rasa/model_training.py”, line 765, in _train_nlu_with_validated_data **additional_arguments, File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/rasa/nlu/train.py”, line 97, in train nlu_config, component_builder, model_to_finetune=model_to_finetune File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/rasa/nlu/model.py”, line 164, in init components.validate_requirements(cfg.component_names) File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/rasa/nlu/components.py”, line 58, in validate_requirements from rasa.nlu import registry File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/rasa/nlu/registry.py”, line 12, in from rasa.nlu.classifiers.diet_classifier import DIETClassifier File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/rasa/nlu/classifiers/diet_classifier.py”, line 23, in from rasa.utils.tensorflow import rasa_layers File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/rasa/utils/tensorflow/rasa_layers.py”, line 28, in from rasa.utils.tensorflow import layers File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/rasa/utils/tensorflow/layers.py”, line 4, in import tensorflow_addons as tfa File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/tensorflow_addons/init.py”, line 22, in from tensorflow_addons import callbacks File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/tensorflow_addons/callbacks/init.py”, line 17, in from tensorflow_addons.callbacks.average_model_checkpoint import AverageModelCheckpoint File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/tensorflow_addons/callbacks/average_model_checkpoint.py”, line 17, in from typeguard import typechecked File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/typeguard/init.py”, line 4, in from ._checkers import TypeCheckerCallable as TypeCheckerCallable File “/home/aks/aks-rasa-bot/lib/python3.7/site-packages/typeguard/_checkers.py”, line 58, in from typing_extensions import ( ImportError: cannot import name ‘is_typeddict’ from ‘typing_extensions’ (/home/aks/aks-rasa-bot/lib/python3.7/site-packages/typing_extensions.py)

I am on Ubuntu 20.04 (WSL), I also tried it on a intel mac

This is my pip list Package Version Location


absl-py 0.13.0 aio-pika 6.8.2 aiofiles 23.2.1 aiohttp 3.7.4 aiormq 3.3.1 algoliasearch 2.6.3 APScheduler 3.7.0 astunparse 1.6.3 async-generator 1.10 async-timeout 3.0.1 attrs 21.2.0 beautifulsoup4 4.6.3 bidict 0.22.1 blis 0.4.1 boto3 1.29.5 botocore 1.32.5 CacheControl 0.12.14 cached-property 1.5.2 cachetools 4.2.4 catalogue 1.0.2 certifi 2023.11.17 cffi 1.15.1 chardet 3.0.4 clang 5.0 cloudpickle 1.6.0 colorclass 2.2.2 coloredlogs 15.0.1 colorhash 1.0.4 cryptography 41.0.5 cycler 0.11.0 cymem 2.0.8 DataProperty 1.0.1 decorator 4.4.2 dm-tree 0.1.8 dnspython 1.16.0 docopt 0.6.2 en-core-web-md 2.2.5 fbmessenger 6.0.0 flatbuffers 1.12 future 0.18.3 gast 0.4.0 geographiclib 1.52 geopy 1.18.1 google-auth 1.35.0 google-auth-oauthlib 0.4.6 google-pasta 0.2.0 greenlet 3.0.1 grpcio 1.59.3 gspread 3.0.1 h11 0.9.0 h5py 3.1.0 httpcore 0.11.1 httplib2 0.22.0 httptools 0.6.0 httpx 0.15.4 humanfriendly 10.0 idna 2.10 importlib-metadata 6.7.0 jmespath 1.0.1 joblib 1.0.1 jsonpickle 2.0.0 jsonschema 3.2.0 kafka-python 2.0.2 keras 2.6.0 Keras-Preprocessing 1.1.2 kiwisolver 1.4.5 mailchimp3 3.0.21 Markdown 3.4.4 MarkupSafe 2.1.3 matplotlib 3.3.4 mattermostwrapper 2.2 mbstrdecoder 1.1.3 msgpack 1.0.5 multidict 5.0.0 murmurhash 1.0.10 networkx 2.5.1 numpy 1.19.5 oauth2client 4.1.3 oauthlib 3.2.2 opt-einsum 3.3.0 packaging 20.9 pamqp 2.3.0 pandas 1.3.5 pathvalidate 3.2.0 Pillow 9.5.0 pip 19.3.1 plac 1.1.3 preshed 3.0.9 prompt-toolkit 2.0.10 protobuf 3.19.6 psycopg2-binary 2.9.9 pyasn1 0.5.1 pyasn1-modules 0.3.0 pycparser 2.21 pydot 1.4.2 PyJWT 2.8.0 pykwalify 1.8.0 pymongo 3.10.1 pyparsing 3.1.1 pyrsistent 0.19.3 pytablewriter 1.2.0 pyTelegramBotAPI 3.8.3 python-crfsuite 0.9.9 python-dateutil 2.8.2 python-dotenv 0.15.0 python-engineio 4.8.0 python-socketio 5.10.0 pytz 2021.3 questionary 1.9.0 rasa 2.8.21 rasa-demo 2.0 /home/aks/spirinova-rasa-demo rasa-sdk 2.8.11 redis 3.5.3 regex 2021.7.6 requests 2.24.0 requests-oauthlib 1.3.1 requests-toolbelt 1.0.0 rfc3986 1.5.0 rocketchat-API 1.16.0 rsa 4.9 ruamel.yaml 0.16.13 ruamel.yaml.clib 0.2.8 s3transfer 0.7.0 sanic 20.9.1 Sanic-Cors 0.10.0.post3 sanic-jwt 1.6.0 Sanic-Plugins-Framework 0.9.5 scikit-learn 0.24.2 scipy 1.7.3 sentry-sdk 1.2.0 setuptools 68.0.0 simple-websocket 1.0.0 six 1.16.0 sklearn-crfsuite 0.3.6 slackclient 2.9.4 sniffio 1.3.0 spacy 2.2.4 SQLAlchemy 1.4.50 srsly 1.0.7 tabledata 1.3.3 tabulate 0.9.0 tarsafe 0.0.3 tcolorpy 0.1.4 tensorboard 2.6.0 tensorboard-data-server 0.6.1 tensorboard-plugin-wit 1.8.1 tensorflow 2.6.5 tensorflow-addons 0.14.0 tensorflow-estimator 2.6.0 tensorflow-hub 0.12.0 tensorflow-probability 0.13.0 tensorflow-text 2.6.0 termcolor 1.1.0 terminaltables 3.1.10 thinc 7.4.0 threadpoolctl 3.1.0 tqdm 4.66.1 twilio 6.50.1 typeguard 4.1.2 typepy 1.3.2 typing-extensions 3.10.0.2 tzlocal 2.1 ujson 4.3.0 urllib3 1.25.11 uvloop 0.18.0 wasabi 0.10.1 wcwidth 0.2.12 webexteamssdk 1.6.1 websockets 8.1 Werkzeug 2.2.3 wheel 0.41.3 wrapt 1.12.1 wsproto 1.2.0 yarl 1.9.3 zipp 3.15.0

Regards, Amit

Also passed the data path, but same result.

rasa train --data ./data/nlu/nlu.yml ./data/stories/ stories.yml