Deprecation warnings are coming even after new environment setup and latest rasa version installation

Base: DeclarativeMeta = declarative_base() D:\production_test\prodtestenv\lib\site-packages\rasa\shared\utils\validation.py:134: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 69.1.0.post20240212 documentation import pkg_resources D:\production_test\prodtestenv\lib\site-packages\pkg_resources_init_.py:2868: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('mpl_toolkits'). Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See Keywords - setuptools 69.1.0.post20240212 documentation declare_namespace(pkg) D:\production_test\prodtestenv\lib\site-packages\pkg_resources_init_.py:2868: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('ruamel'). Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See Keywords - setuptools 69.1.0.post20240212 documentation declare_namespace(pkg) D:\production_test\prodtestenv\lib\site-packages\sanic_cors\extension.py:39: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. SANIC_VERSION = LooseVersion(sanic_version) 2024-02-12 12:10:50 INFO root - Starting Rasa server on http://0.0.0.0:5005 2024-02-12 12:10:51 INFO rasa.core.processor - Loading model models\20240212-114745-icy-nest.tar.gz… 2024-02-12 12:11:16 WARNING rasa.shared.utils.common - The UnexpecTED Intent Policy is currently experimental and might change or be removed in the future � Please share your feedback on it in the forum (https://forum.rasa.com) to help us make this feature ready for production. 2024-02-12 12:11:27 INFO root - Rasa server is up and running. D:\production_test\prodtestenv\lib\site-packages\rasa\core\channels\socketio.py:236: RuntimeWarning: coroutine ‘AsyncServer.enter_room’ was never awaited sio.enter_room(sid, data[“session_id”]) RuntimeWarning: Enable tracemalloc to get the object allocation traceback D:\production_test\prodtestenv\lib\site-packages\sanic\server\websockets\impl.py:521: DeprecationWarning: The explicit passing of coroutine objects to asyncio.wait() is deprecated since Python 3.8, and scheduled for removal in Python 3.11. done, pending = await asyncio.wait(

how to handle this deprecations, as may be it could be the reason for incapable working of rasa webchat and socket.io. Previously socket.io was working fine, but when I tried to shift to new server will all new environment setup it is working fine in rasa shell but not responding in rasa webchat interface, something i suspect is wrong with socket.io which is why bot is not responding at all through webchat and working in rasa shell. Also i tried in local by creating new setup that is also not working in webchat ineterface.

Also after stopping the commands it through errors and warnings what are the reason behind all this and how to make a clean code:-

D:\production_test\prodtestenv\lib\site-packages\sanic\server\websockets\impl.py:521: DeprecationWarning: The explicit passing of coroutine objects to asyncio.wait() is deprecated since Python 3.8, and scheduled for removal in Python 3.11. done, pending = await asyncio.wait( Exception ignored in atexit callback: <function load_source.. at 0x000002EE94CDD630> Traceback (most recent call last): File “D:\production_test\prodtestenv\lib\site-packages\tensorflow\python\autograph\pyct\loader.py”, line 57, in
atexit.register(lambda: _remove_file(file_name)) File “D:\production_test\prodtestenv\lib\site-packages\tensorflow\python\autograph\pyct\loader.py”, line 34, in _remove_file os.remove(file_name) File “D:\production_test\prodtestenv\lib\site-packages\sanic\compat.py”, line 86, in ctrlc_handler raise KeyboardInterrupt(“Non-graceful Ctrl+C”) KeyboardInterrupt: Non-graceful Ctrl+C 2024-02-12 13:04:49 ERROR asyncio - Task was destroyed but it is pending! task: <Task pending name=‘Task-1664’ coro=<AsyncSocket._send_ping() done, defined at D:\production_test\prodtestenv\lib\site-packages\engineio\async_socket.py:127> wait_for=> 2024-02-12 13:04:49 ERROR asyncio - Task was destroyed but it is pending! task: <Task pending name=‘Task-1669’ coro=<AsyncSocket._send_ping() done, defined at D:\production_test\prodtestenv\lib\site-packages\engineio\async_socket.py:127> wait_for=>

credentials.yml:- rest:

socketio: user_message_evt: user_uttered bot_message_evt: bot_uttered session_persistence: true

rasa: url: “http://localhost:5002/api

Version:- Rasa Version : 3.6.16 Minimum Compatible Version: 3.5.0 Rasa SDK Version : 3.6.2 Python Version : 3.10.10 Operating System : Windows-10-10.0.19045-SP0

how to rectify all this please tell with accurate solution asap…will be very helpful