Rasa X Interactive learning error

Hi All, I have been trying to have chat with the bot using Rasa X but getting below errors everytime I start the server.And when sending s message from the Rasa x UI generates an error “sanic.root - Exception occurred while handling uri: 'http://localhost:5002/api/version” Please help.

(axion) C:\Users\nawarathna\Desktop\axion>rasa x
c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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)])
Starting Rasa X in local mode... 🚀
c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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)])
WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensor2tensor\utils\expert_utils.py:68: The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead.

WARNING:tensorflow:
The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:
  * https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
  * https://github.com/tensorflow/addons
  * https://github.com/tensorflow/io (for I/O related ops)
If you depend on functionality not listed there, please file an issue.


The server is running at http://localhost:5002/login?username=me&password=qtdq4zO5UloR

2019-09-29 13:47:56 WARNING  sanic.root  - Sanic tried to use loop.add_signal_handler but it is not implemented on this platform.
2019-09-29 13:47:56 WARNING  sanic.root  - Sanic tried to use loop.add_signal_handler but it is not implemented on this platform.
WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensor2tensor\utils\adafactor.py:27: The name tf.train.Optimizer is deprecated. Please use tf.compat.v1.train.Optimizer instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensor2tensor\utils\multistep_optimizer.py:32: The name tf.train.AdamOptimizer is deprecated. Please use tf.compat.v1.train.AdamOptimizer instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\mesh_tensorflow\ops.py:4237: The name tf.train.CheckpointSaverListener is deprecated. Please use tf.estimator.CheckpointSaverListener instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\mesh_tensorflow\ops.py:4260: The name tf.train.SessionRunHook is deprecated. Please use tf.estimator.SessionRunHook instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensor2tensor\models\research\neural_stack.py:38: The name tf.nn.rnn_cell.RNNCell is deprecated. Please use tf.compat.v1.nn.rnn_cell.RNNCell instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensor2tensor\rl\gym_utils.py:235: The name tf.logging.info is deprecated. Please use tf.compat.v1.logging.info instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensor2tensor\utils\trainer_lib.py:111: The name tf.OptimizerOptions is deprecated. Please use tf.compat.v1.OptimizerOptions instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensorflow_gan\python\contrib_utils.py:305: The name tf.estimator.tpu.TPUEstimator is deprecated. Please use tf.compat.v1.estimator.tpu.TPUEstimator instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensorflow_gan\python\contrib_utils.py:310: The name tf.estimator.tpu.TPUEstimatorSpec is deprecated. Please use tf.compat.v1.estimator.tpu.TPUEstimatorSpec instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\rasa\utils\train_utils.py:28: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\rasa\core\policies\keras_policy.py:65: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.

c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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\nawarathna\appdata\local\continuum\anaconda3\envs\axion\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)])
WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\rasa\nlu\classifiers\embedding_intent_classifier.py:711: The name tf.train.import_meta_graph is deprecated. Please use tf.compat.v1.train.import_meta_graph instead.

2019-09-29 13:48:00 WARNING  tensorflow  - From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\rasa\nlu\classifiers\embedding_intent_classifier.py:711: The name tf.train.import_meta_graph is deprecated. Please use tf.compat.v1.train.import_meta_graph instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensor2tensor\utils\expert_utils.py:68: The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensorflow\python\training\saver.py:1276: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.
Instructions for updating:
Use standard file APIs to check for files with this prefix.
2019-09-29 13:48:01 WARNING  tensorflow  - From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensorflow\python\training\saver.py:1276: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.
Instructions for updating:
Use standard file APIs to check for files with this prefix.
WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\rasa\utils\train_utils.py:966: The name tf.get_collection is deprecated. Please use tf.compat.v1.get_collection instead.

2019-09-29 13:48:01 WARNING  tensorflow  - From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\rasa\utils\train_utils.py:966: The name tf.get_collection is deprecated. Please use tf.compat.v1.get_collection instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensorflow\python\ops\init_ops.py:97: calling GlorotUniform.__init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
2019-09-29 13:48:01 WARNING  tensorflow  - From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensorflow\python\ops\init_ops.py:97: calling GlorotUniform.__init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensorflow\python\ops\init_ops.py:1251: calling VarianceScaling.__init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
2019-09-29 13:48:01 WARNING  tensorflow  - From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensorflow\python\ops\init_ops.py:1251: calling VarianceScaling.__init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensorflow\python\ops\init_ops.py:97: calling Orthogonal.__init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
2019-09-29 13:48:01 WARNING  tensorflow  - From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensorflow\python\ops\init_ops.py:97: calling Orthogonal.__init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensorflow\python\ops\init_ops.py:97: calling Zeros.__init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
2019-09-29 13:48:01 WARNING  tensorflow  - From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensorflow\python\ops\init_ops.py:97: calling Zeros.__init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensorflow\python\keras\backend.py:3794: add_dispatch_support.<locals>.wrapper (from tensorflow.python.ops.array_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.where in 2.0, which has the same broadcast rule as np.where
2019-09-29 13:48:01 WARNING  tensorflow  - From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensorflow\python\keras\backend.py:3794: add_dispatch_support.<locals>.wrapper (from tensorflow.python.ops.array_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.where in 2.0, which has the same broadcast rule as np.where
WARNING:tensorflow:
The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:
  * https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
  * https://github.com/tensorflow/addons
  * https://github.com/tensorflow/io (for I/O related ops)
If you depend on functionality not listed there, please file an issue.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensor2tensor\utils\adafactor.py:27: The name tf.train.Optimizer is deprecated. Please use tf.compat.v1.train.Optimizer instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensor2tensor\utils\multistep_optimizer.py:32: The name tf.train.AdamOptimizer is deprecated. Please use tf.compat.v1.train.AdamOptimizer instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\mesh_tensorflow\ops.py:4237: The name tf.train.CheckpointSaverListener is deprecated. Please use tf.estimator.CheckpointSaverListener instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\mesh_tensorflow\ops.py:4260: The name tf.train.SessionRunHook is deprecated. Please use tf.estimator.SessionRunHook instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensor2tensor\models\research\neural_stack.py:38: The name tf.nn.rnn_cell.RNNCell is deprecated. Please use tf.compat.v1.nn.rnn_cell.RNNCell instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensor2tensor\rl\gym_utils.py:235: The name tf.logging.info is deprecated. Please use tf.compat.v1.logging.info instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensor2tensor\utils\trainer_lib.py:111: The name tf.OptimizerOptions is deprecated. Please use tf.compat.v1.OptimizerOptions instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensorflow_gan\python\contrib_utils.py:305: The name tf.estimator.tpu.TPUEstimator is deprecated. Please use tf.compat.v1.estimator.tpu.TPUEstimator instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\tensorflow_gan\python\contrib_utils.py:310: The name tf.estimator.tpu.TPUEstimatorSpec is deprecated. Please use tf.compat.v1.estimator.tpu.TPUEstimatorSpec instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\rasa\utils\train_utils.py:28: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.

WARNING:tensorflow:From c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\rasa\core\policies\keras_policy.py:65: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.

2019-09-29 13:48:52 ERROR    sanic.root  - Exception occurred while handling uri: 'http://localhost:5002/api/version'
Traceback (most recent call last):
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\sanic\app.py", line 917, in handle_request
    response = await response
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\rasax\community\api\blueprints\project.py", line 94, in version
    return response.json(result)
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\sanic\response.py", line 220, in json
    dumps(body, **kwargs),
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\json\__init__.py", line 238, in dumps
    **kw).encode(obj)
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\json\encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\json\encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\json\encoder.py", line 180, in default
    o.__class__.__name__)
TypeError: Object of type 'bytes' is not JSON serializable
2019-09-29 13:48:52 ERROR    rasa.core.channels.rasa_chat  - Failed to fetch JWT public key from URL 'http://localhost:5002/api/version' with status code 500:
    <h1>Internal Server Error</h1>
    <p>
        The server encountered an internal error and cannot complete
        your request.
    </p>

2019-09-29 13:48:52 ERROR    rasa.core.channels.rasa_chat  - Failed to decode bearer token.
Traceback (most recent call last):
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\rasa\core\channels\rasa_chat.py", line 86, in _decode_bearer_token
    return self._decode_jwt(bearer_token)
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\rasa\core\channels\rasa_chat.py", line 77, in _decode_jwt
    authorization_header_value, self.jwt_key, algorithms=self.jwt_algorithm
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\jwt\api_jwt.py", line 92, in decode
    jwt, key=key, algorithms=algorithms, options=options, **kwargs
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\jwt\api_jws.py", line 156, in decode
    key, algorithms)
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\jwt\api_jws.py", line 220, in _verify_signature
    key = alg_obj.prepare_key(key)
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\jwt\algorithms.py", line 209, in prepare_key
    raise TypeError('Expecting a PEM-formatted key.')
TypeError: Expecting a PEM-formatted key.
2019-09-29 13:48:54 ERROR    sanic.root  - Exception occurred while handling uri: 'http://localhost:5002/api/version'
Traceback (most recent call last):
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\sanic\app.py", line 917, in handle_request
    response = await response
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\rasax\community\api\blueprints\project.py", line 94, in version
    return response.json(result)
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\sanic\response.py", line 220, in json
    dumps(body, **kwargs),
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\json\__init__.py", line 238, in dumps
    **kw).encode(obj)
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\json\encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\json\encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\json\encoder.py", line 180, in default
    o.__class__.__name__)
TypeError: Object of type 'bytes' is not JSON serializable
2019-09-29 13:48:54 ERROR    rasa.core.channels.rasa_chat  - Failed to fetch JWT public key from URL 'http://localhost:5002/api/version' with status code 500:
    <h1>Internal Server Error</h1>
    <p>
        The server encountered an internal error and cannot complete
        your request.
    </p>

2019-09-29 13:48:54 ERROR    rasa.core.channels.rasa_chat  - Failed to decode bearer token.
Traceback (most recent call last):
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\rasa\core\channels\rasa_chat.py", line 86, in _decode_bearer_token
    return self._decode_jwt(bearer_token)
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\rasa\core\channels\rasa_chat.py", line 73, in _decode_jwt
    authorization_header_value = bearer_token.replace(
AttributeError: 'NoneType' object has no attribute 'replace'
[2019-09-29 13:48:54 +0530] [10288] [ERROR] Exception occurred while handling uri: 'http://localhost:5005/webhooks/rasa/webhook'
Traceback (most recent call last):
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\sanic\app.py", line 917, in handle_request
    response = await response
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\rasa\core\channels\channel.py", line 439, in receive
    sender_id = await self._extract_sender(request)
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\rasa\core\channels\rasa_chat.py", line 105, in _extract_sender
    abort(401)
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\envs\axion\lib\site-packages\sanic\exceptions.py", line 298, in abort
    raise sanic_exception(message=message, status_code=status_code)
sanic.exceptions.Unauthorized: Unauthorized
2019-09-29 13:48:54 ERROR    rasax.community.api.blueprints.stack  - Failed to send message to Rasa Chat webhook. Error: 401, Unauthorized, body='b'Error: Unauthorized''
3 Likes

Is this connected to this error ?

Same problem here. It happens even with the default chatbot created through “rasa init”.

Edit: This error when sending a message through the regular conversation mode of the rasa x UI only appears for version v0.21.0 onwards, with v0.20.3 downwards no errors are thrown.

I’m having the same problem, but I can’t change the version. If anyone knows a command that can help thanks. my version of rasa is 1.3.7

1 Like

I think it was for example: pip install rasa-x==0.20.3 --extra-index-url https://pypi.rasa.com/simple

Hey guys! The issue with the JWT keys was fixed in 0.21.3. Can you please update and tell me whether it’s working now?

Regarding the issue with rasa shell, rasa interactive: I’m fixing that here Cors interactive fix by wochinge · Pull Request #4572 · RasaHQ/rasa · GitHub and will hopefully release a fixed version asap.

1 Like

@Tobias_Wochinger I get same warnings on rasa 1.3.9 and rasa x 0.21.4

Good Afternoon,

This is what I tried and was able to roll back my Rasa-X to a working version.

  1. pip list

  2. pip uninstall rasa-x select “y” to continue uninstall

  3. save link from this address to your downloads: https://pypi.rasa.com/api/package/rasa-x/rasa-x-0.20.3.tar.gz

  4. NOTE this is whatever your path is to the downloaded file in step 3.

    pip install “c:\Downloads\rasa-x-0.20.3.tar.gz” (this will take care of the dependencies and reinstall rasa-x)

I am sure there is an easier way, but this was the only way I could get it to work.

Good Luck. Richard

@mmm3bbb You are talking about the tensorflow warnings or about the rasa.core.channels.rasa_chat error? I’ve also seen that the TensorFlow warnings came back but didn’t have time to tackle them :angry:

@Tobias_Wochinger Yeah, those. I also see a bunch of these with Rasa X:

2019-10-16 18:21:25 WARNING  tensorflow  - From /Users/michael/env/lib/python3.6/site-packages/tensorflow/python/ops/init_ops.py:97: calling GlorotUniform.__init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
2019-10-16 18:21:25 WARNING  tensorflow  - From /Users/michaeel/env/lib/python3.6/site-packages/tensorflow/python/ops/init_ops.py:1251: calling VarianceScaling.__init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
2019-10-16 18:21:25 WARNING  tensorflow  - From /Users/michael/env/lib/python3.6/site-packages/tensorflow/python/ops/init_ops.py:97: calling Orthogonal.__init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
2019-10-16 18:21:25 WARNING  tensorflow  - From /Users/michael/env/lib/python3.6/site-packages/tensorflow/python/ops/init_ops.py:97: calling Zeros.__init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
2019-10-16 18:21:25 WARNING  tensorflow  - From /Users/michael/env/lib/python3.6/site-packages/tensorflow/python/keras/backend.py:3794: add_dispatch_support.<locals>.wrapper (from tensorflow.python.ops.array_ops) is deprecated and will be removed in a future version.

I know they’re just warning messages, but they obfuscate more important messages. Given how much time we relative Rasa novices try to track down weird behavior, if you get a chance to silence them, that’d be awesome. Thx.

Yeah that’d also be fantastic

Yeah, we already got an issue for that (tensorflow warnings · Issue #4639 · RasaHQ/rasa · GitHub). I’ll try to tackle it today / tomorrow