Failed to run rasa init --no-prompt on Ubuntu Server 18.04

Hi all, anyone can help about the following issue?

I am a beginner for RASA.

System Information: OS: Ubuntu 18.04 Tensorflow version: 2.1 RASA version: 1.9.4

(nlu-venv) alim@server1:~$ rasa init --no-prompt Welcome to Rasa! :robot:

To get started quickly, an initial project will be created. If you need some help, check out the documentation at Introduction to Rasa Open Source.

Created project directory at β€˜/home/alim’. Finished creating project structure. Training an initial model… Training Core model… Processed Story Blocks: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 5626.92it/s, # trackers=1] Processed Story Blocks: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 2464.05it/s, # trackers=5] Processed Story Blocks: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 579.32it/s, # trackers=20] Processed Story Blocks: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 384.70it/s, # trackers=24] Processed trackers: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 6200.92it/s, # actions=16] Processed actions: 16it [00:00, 18006.13it/s, # examples=16] Processed trackers: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 231/231 [00:03<00:00, 72.69it/s, # actions=126] Traceback (most recent call last): File β€œ/home/alim/nlu-venv/bin/rasa”, line 11, in load_entry_point(β€˜rasa’, β€˜console_scripts’, β€˜rasa’)() File β€œ/home/alim/nlu-exp/rasa/rasa/main.py”, line 91, in main cmdline_arguments.func(cmdline_arguments) File β€œ/home/alim/nlu-exp/rasa/rasa/cli/scaffold.py”, line 209, in run init_project(args, path) File β€œ/home/alim/nlu-exp/rasa/rasa/cli/scaffold.py”, line 121, in init_project print_train_or_instructions(args, path) File β€œ/home/alim/nlu-exp/rasa/rasa/cli/scaffold.py”, line 58, in print_train_or_instructions args.model = rasa.train(domain, config, training_files, output) File β€œ/home/alim/nlu-exp/rasa/rasa/train.py”, line 50, in train additional_arguments=additional_arguments, File β€œuvloop/loop.pyx”, line 1456, in uvloop.loop.Loop.run_until_complete File β€œ/home/alim/nlu-exp/rasa/rasa/train.py”, line 101, in train_async additional_arguments, File β€œ/home/alim/nlu-exp/rasa/rasa/train.py”, line 188, in _train_async_internal additional_arguments=additional_arguments, File β€œ/home/alim/nlu-exp/rasa/rasa/train.py”, line 223, in _do_training additional_arguments=additional_arguments, File β€œ/home/alim/nlu-exp/rasa/rasa/train.py”, line 361, in _train_core_with_validated_data additional_arguments=additional_arguments, File β€œ/home/alim/nlu-exp/rasa/rasa/core/train.py”, line 66, in train agent.train(training_data, **additional_arguments) File β€œ/home/alim/nlu-exp/rasa/rasa/core/agent.py”, line 707, in train self.policy_ensemble.train(training_trackers, self.domain, **kwargs) File β€œ/home/alim/nlu-exp/rasa/rasa/core/policies/ensemble.py”, line 124, in train policy.train(training_trackers, domain, **kwargs) File β€œ/home/alim/nlu-exp/rasa/rasa/core/policies/ted_policy.py”, line 316, in train self._label_data, File β€œ/home/alim/nlu-exp/rasa/rasa/core/policies/ted_policy.py”, line 463, in init tensorboard_log_level=config[TENSORBOARD_LOG_LEVEL], File β€œ/home/alim/nlu-exp/rasa/rasa/utils/tensorflow/models.py”, line 42, in init self.total_loss = tf.keras.metrics.Mean(name=β€œt_loss”) File β€œ/home/alim/nlu-venv/lib/python3.6/site-packages/tensorflow_core/python/keras/metrics.py”, line 460, in init reduction=metrics_utils.Reduction.WEIGHTED_MEAN, name=name, dtype=dtype) File β€œ/home/alim/nlu-venv/lib/python3.6/site-packages/tensorflow_core/python/keras/metrics.py”, line 296, in init β€˜total’, initializer=init_ops.zeros_initializer) File β€œ/home/alim/nlu-venv/lib/python3.6/site-packages/tensorflow_core/python/keras/metrics.py”, line 276, in add_weight aggregation=aggregation) File β€œ/home/alim/nlu-venv/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/base_layer.py”, line 446, in add_weight caching_device=caching_device) File β€œ/home/alim/nlu-venv/lib/python3.6/site-packages/tensorflow_core/python/training/tracking/base.py”, line 744, in _add_variable_with_custom_getter **kwargs_for_getter) File β€œ/home/alim/nlu-venv/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/base_layer_utils.py”, line 142, in make_variable shape=variable_shape if variable_shape else None) File β€œ/home/alim/nlu-venv/lib/python3.6/site-packages/tensorflow_core/python/ops/variables.py”, line 258, in call return cls._variable_v1_call(*args, **kwargs) File β€œ/home/alim/nlu-venv/lib/python3.6/site-packages/tensorflow_core/python/ops/variables.py”, line 219, in _variable_v1_call shape=shape) File β€œ/home/alim/nlu-venv/lib/python3.6/site-packages/tensorflow_core/python/ops/variables.py”, line 197, in previous_getter = lambda **kwargs: default_variable_creator(None, **kwargs) File β€œ/home/alim/nlu-venv/lib/python3.6/site-packages/tensorflow_core/python/ops/variable_scope.py”, line 2596, in default_variable_creator shape=shape) File β€œ/home/alim/nlu-venv/lib/python3.6/site-packages/tensorflow_core/python/ops/variables.py”, line 262, in call return super(VariableMetaclass, cls).call(*args, **kwargs) File β€œ/home/alim/nlu-venv/lib/python3.6/site-packages/tensorflow_core/python/ops/resource_variable_ops.py”, line 1411, in init distribute_strategy=distribute_strategy) File β€œ/home/alim/nlu-venv/lib/python3.6/site-packages/tensorflow_core/python/ops/resource_variable_ops.py”, line 1557, in _init_from_args graph_mode=self._in_graph_mode) File β€œ/home/alim/nlu-venv/lib/python3.6/site-packages/tensorflow_core/python/ops/resource_variable_ops.py”, line 232, in eager_safe_variable_handle shape, dtype, shared_name, name, graph_mode, initial_value) File β€œ/home/alim/nlu-venv/lib/python3.6/site-packages/tensorflow_core/python/ops/resource_variable_ops.py”, line 164, in _variable_handle_from_shape_and_dtype math_ops.logical_not(exists), [exists], name=β€œEagerVariableNameReuse”) File β€œ/home/alim/nlu-venv/lib/python3.6/site-packages/tensorflow_core/python/ops/gen_logging_ops.py”, line 55, in _assert _ops.raise_from_not_ok_status(e, name) File β€œ/home/alim/nlu-venv/lib/python3.6/site-packages/tensorflow_core/python/framework/ops.py”, line 6606, in raise_from_not_ok_status six.raise_from(core._status_to_exception(e.code, message), None) File β€œβ€, line 3, in raise_from tensorflow.python.framework.errors_impl.InvalidArgumentError: assertion failed: [0] [Op:Assert] name: EagerVariableNameReuse

Thanks a lot for help.

Best, Alim

Hey Alim, welcome to the forum! I’ve been unable to replicate this error but it looks like it might be due to Tensorboard. If you downgrade Rasa to 1.8 do you still get the error? (We added Tensorboard support & 1.9 and I want to know if that’s what’s causing errors here.)

Hi,

Thanks a lot for your response.

Yes, I can run RASA now after I downgrade the version to be 1.8.0. However, I also can use version 1.9.0 now.

One question: Can I use rasa to generate suggested answer/message like smart reply?

For example: If the system has question: what do you want to eat?

The system also give some suggestions that we can use to reply.

Thanks