I’m getting an exception like this whenever I run ‘rasa shell’ on my windows system
Exception occurred in one of response middleware handlers
(env) C:\Users\Vedant\Desktop\horo>rasa shell c:\users\vedant\desktop\horo\env\lib\site-packages\tensorflow\python\framework\dtypes.py:516: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_qint8 = np.dtype([(“qint8”, np.int8, 1)]) c:\users\vedant\desktop\horo\env\lib\site-packages\tensorflow\python\framework\dtypes.py:517: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_quint8 = np.dtype([(“quint8”, np.uint8, 1)]) c:\users\vedant\desktop\horo\env\lib\site-packages\tensorflow\python\framework\dtypes.py:518: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_qint16 = np.dtype([(“qint16”, np.int16, 1)]) c:\users\vedant\desktop\horo\env\lib\site-packages\tensorflow\python\framework\dtypes.py:519: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_quint16 = np.dtype([(“quint16”, np.uint16, 1)]) c:\users\vedant\desktop\horo\env\lib\site-packages\tensorflow\python\framework\dtypes.py:520: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_qint32 = np.dtype([(“qint32”, np.int32, 1)]) c:\users\vedant\desktop\horo\env\lib\site-packages\tensorflow\python\framework\dtypes.py:525: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. np_resource = np.dtype([(“resource”, np.ubyte, 1)]) c:\users\vedant\desktop\horo\env\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:541: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_qint8 = np.dtype([(“qint8”, np.int8, 1)]) c:\users\vedant\desktop\horo\env\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:542: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_quint8 = np.dtype([(“quint8”, np.uint8, 1)]) c:\users\vedant\desktop\horo\env\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:543: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_qint16 = np.dtype([(“qint16”, np.int16, 1)]) c:\users\vedant\desktop\horo\env\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:544: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_quint16 = np.dtype([(“quint16”, np.uint16, 1)]) c:\users\vedant\desktop\horo\env\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:545: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_qint32 = np.dtype([(“qint32”, np.int32, 1)]) c:\users\vedant\desktop\horo\env\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:550: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. np_resource = np.dtype([(“resource”, np.ubyte, 1)]) 2019-10-02 19:04:17 INFO root - Connecting to channel ‘cmdline’ which was specified by the ‘–connector’ argument. Any other channels will be ignored. To connect to all given channels, omit the ‘–connector’ argument. 2019-10-02 19:04:17 INFO root - Starting Rasa server on http://localhost:5005 Bot loaded. Type a message and press enter (use ‘/stop’ to exit): Your input -> hi Exception occurred in one of response middleware handlers Traceback (most recent call last): File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic\app.py”, line 958, in handle_request request, response File “c:\users\vedant\desktop\horo\env\lib\site-packages\spf\framework.py”, line 579, in _run_response_middleware _response = await _response File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\extension.py”, line 267, in unapplied_cors_response_middleware set_cors_headers(req, resp, context, res_options) File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\core.py”, line 254, in set_cors_headers headers_to_set = get_cors_headers(options, req.headers, req.method) File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\core.py”, line 174, in get_cors_headers origins_to_set = get_cors_origins(options, request_headers.get(‘Origin’)) File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\core.py”, line 149, in get_cors_origins return sorted([o for o in origins if not probably_regex(o)]) File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\core.py”, line 149, in return sorted([o for o in origins if not probably_regex(o)]) File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\core.py”, line 273, in probably_regex return any((c in maybe_regex for c in common_regex_chars)) File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\core.py”, line 273, in return any((c in maybe_regex for c in common_regex_chars)) TypeError: argument of type ‘NoneType’ is not iterable Hey! How are you? Your input -> sad Exception occurred in one of response middleware handlers Traceback (most recent call last): File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic\app.py”, line 958, in handle_request request, response File “c:\users\vedant\desktop\horo\env\lib\site-packages\spf\framework.py”, line 579, in _run_response_middleware _response = await _response File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\extension.py”, line 267, in unapplied_cors_response_middleware set_cors_headers(req, resp, context, res_options) File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\core.py”, line 254, in set_cors_headers headers_to_set = get_cors_headers(options, req.headers, req.method) File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\core.py”, line 174, in get_cors_headers origins_to_set = get_cors_origins(options, request_headers.get(‘Origin’)) File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\core.py”, line 149, in get_cors_origins return sorted([o for o in origins if not probably_regex(o)]) File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\core.py”, line 149, in return sorted([o for o in origins if not probably_regex(o)]) File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\core.py”, line 273, in probably_regex return any((c in maybe_regex for c in common_regex_chars)) File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\core.py”, line 273, in return any((c in maybe_regex for c in common_regex_chars)) TypeError: argument of type ‘NoneType’ is not iterable Here is something to cheer you up: Image: https://i.imgur.com/nGF1K8f.jpg Did that help you? Your input -> yes Exception occurred in one of response middleware handlers Traceback (most recent call last): File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic\app.py”, line 958, in handle_request request, response File “c:\users\vedant\desktop\horo\env\lib\site-packages\spf\framework.py”, line 579, in _run_response_middleware _response = await _response File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\extension.py”, line 267, in unapplied_cors_response_middleware set_cors_headers(req, resp, context, res_options) File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\core.py”, line 254, in set_cors_headers headers_to_set = get_cors_headers(options, req.headers, req.method) File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\core.py”, line 174, in get_cors_headers origins_to_set = get_cors_origins(options, request_headers.get(‘Origin’)) File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\core.py”, line 149, in get_cors_origins return sorted([o for o in origins if not probably_regex(o)]) File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\core.py”, line 149, in return sorted([o for o in origins if not probably_regex(o)]) File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\core.py”, line 273, in probably_regex return any((c in maybe_regex for c in common_regex_chars)) File “c:\users\vedant\desktop\horo\env\lib\site-packages\sanic_cors\core.py”, line 273, in return any((c in maybe_regex for c in common_regex_chars)) TypeError: argument of type ‘NoneType’ is not iterable
please help me with this? Thanks in advance