I am facing an issue regarding import from rasa.cli.run ,

i am making a web application using rasa , html css,js as my frontend and flask as my backend for my final year project. but I am facing an issue in my app.py file it shows the following import exception: (myenv) C:\Users\win 10\Desktop\project\Menti_Flask>python app.py Traceback (most recent call last): File “C:\Users\win 10\Desktop\project\Menti_Flask\app.py”, line 4, in from rasa.cli.run import load_agent ImportError: cannot import name ‘load_agent’ from ‘rasa.cli.run’ (C:\Users\win 10\Desktop\project\myenv\lib\site-packages\rasa\cli\run.py)

myenv is the name of my virtual env. and my list of packages are: Package Version


absl-py 1.4.0 aio-pika 8.2.3 aiofiles 23.2.1 aiogram 2.15 aiohttp 3.9.3 aiohttp-retry 2.8.3 aiormq 6.4.2 aiosignal 1.3.1 APScheduler 3.9.1.post1 astunparse 1.6.3 async-timeout 4.0.3 attrs 22.1.0 Babel 2.14.0 bidict 0.23.1 blinker 1.7.0 blis 0.7.11 boto3 1.34.71 botocore 1.34.71 CacheControl 0.12.14 cachetools 5.3.3 catalogue 2.0.10 certifi 2024.2.2 cffi 1.16.0 charset-normalizer 3.3.2 click 8.1.7 cloudpathlib 0.16.0 cloudpickle 2.2.1 clyent 1.2.1 colorama 0.4.6 colorclass 2.2.2 coloredlogs 15.0.1 colorhash 1.2.1 confection 0.1.4 confluent-kafka 2.3.0 cryptography 42.0.5 cycler 0.12.1 cymem 2.0.8 dask 2022.10.2 dnspython 2.3.0 docopt 0.6.2 en-core-web-md 3.7.1 fbmessenger 6.0.0 fire 0.6.0 Flask 3.0.3 Flask-Mail 0.9.1 Flask-SQLAlchemy 3.0.5 flatbuffers 24.3.25 fonttools 4.50.0 frozenlist 1.4.1 fsspec 2024.3.1 future 1.0.0 gast 0.4.0 google-auth 2.29.0 google-auth-oauthlib 1.0.0 google-pasta 0.2.0 greenlet 3.0.3 grpcio 1.62.1 h11 0.14.0 h5py 3.10.0 httptools 0.6.1 humanfriendly 10.0 idna 3.6 itsdangerous 2.1.2 jax 0.4.25 Jinja2 3.1.3 jmespath 1.0.1 joblib 1.2.0 jsonpickle 3.0.3 jsonschema 4.17.3 keras 2.12.0 kiwisolver 1.4.5 langcodes 3.3.0 libclang 18.1.1 locket 1.0.0 Markdown 3.6 MarkupSafe 2.1.5 matplotlib 3.5.3 mattermostwrapper 2.2 ml-dtypes 0.3.2 msgpack 1.0.8 multidict 5.2.0 murmurhash 1.0.10 networkx 2.6.3 nltk 3.8.1 NRCLex 3.0.0 numpy 1.23.5 oauthlib 3.2.2 opt-einsum 3.3.0 packaging 20.9 pamqp 3.2.1 pandas 2.2.1 partd 1.4.1 pillow 10.2.0 pip 24.0 pluggy 1.4.0 portalocker 2.8.2 preshed 3.0.9 prompt-toolkit 3.0.28 protobuf 4.23.3 psycopg2-binary 2.9.9 pyasn1 0.6.0 pyasn1_modules 0.4.0 pycodestyle 2.11.1 pycparser 2.21 pydantic 1.10.9 pydot 1.4.2 PyJWT 2.8.0 pykwalify 1.8.0 pymongo 4.3.3 pyparsing 3.1.2 pyreadline3 3.4.1 pyrsistent 0.20.0 python-crfsuite 0.9.10 python-dateutil 2.8.2 python-engineio 4.9.0 python-socketio 5.11.2 pytz 2022.7.1 pywin32 306 PyYAML 6.0.1 questionary 1.10.0 randomname 0.1.5 rasa 3.6.19 rasa-sdk 3.6.2 redis 4.6.0 regex 2022.10.31 requests 2.31.0 requests-oauthlib 2.0.0 requests-toolbelt 1.0.0 rocketchat-API 1.30.0 rsa 4.9 ruamel.yaml 0.17.21 ruamel.yaml.clib 0.2.8 s3transfer 0.10.1 sanic 21.12.2 Sanic-Cors 2.0.1 sanic-jwt 1.8.0 sanic-routing 0.7.2 scikit-learn 1.1.3 scipy 1.12.0 sentry-sdk 1.14.0 setuptools 69.2.0 simple-websocket 1.0.0 six 1.16.0 sklearn-crfsuite 0.3.6 slack_sdk 3.27.1 smart-open 6.4.0 spacy 3.7.4 spacy-legacy 3.0.12 spacy-loggers 1.0.5 SQLAlchemy 1.4.52 srsly 2.4.8 structlog 23.3.0 structlog-sentry 2.1.0 tabulate 0.9.0 tarsafe 0.0.4 tensorboard 2.12.3 tensorboard-data-server 0.7.2 tensorflow 2.12.0 tensorflow-estimator 2.12.0 tensorflow-hub 0.13.0 tensorflow-intel 2.12.0 tensorflow-io-gcs-filesystem 0.31.0 termcolor 2.4.0 terminaltables 3.1.10 textblob 0.18.0.post0 thinc 8.2.3 threadpoolctl 3.4.0 tomli 2.0.1 toolz 0.12.1 tqdm 4.66.2 twilio 8.2.2 typer 0.9.4 typing_extensions 4.10.0 typing-utils 0.1.0 tzdata 2024.1 tzlocal 5.2 ujson 5.9.0 urllib3 2.2.1 wasabi 1.1.2 wcwidth 0.2.13 weasel 0.3.4 webexteamssdk 1.6.1 websockets 10.4 Werkzeug 3.0.1 wheel 0.43.0 wrapt 1.14.1 wsproto 1.2.0 yarl 1.9.4
please help me with this and any suggestions are always welcomed I am very new to this. thanks a lot!