Error and warnings while running rasa shell

I am getting warnings and error when i run rasa shell

Can some one help me how to resolve these errrors:

(rasa) PS C:> cd C:\Users\siddharth.chauhan\Desktop\demographics_chatbot (rasa) PS C:\Users\siddharth.chauhan\Desktop\demographics_chatbot> rasa shell 2020-03-17 11:12:06.752274: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library ‘cudart64_101.dll’; dlerror: cudart64_101.dll not found 2020-03-17 11:12:06.752515: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. 2020-03-17 11:12:17 INFO root - Starting Rasa server on http://localhost:5005 2020-03-17 11:12:21.708254: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library ‘nvcuda.dll’; dlerror: nvcuda.dll not found 2020-03-17 11:12:21.708510: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303) 2020-03-17 11:12:21.712714: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: DA-2-maxisit 2020-03-17 11:12:21.712976: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: DA-2-maxisit 2020-03-17 11:12:23.754627: W tensorflow/core/kernels/data/generator_dataset_op.cc:103] Error occurred when finalizing GeneratorDataset iterator: Cancelled: Operation was cancelled 2020-03-17 11:12:33.383058: W tensorflow/core/kernels/data/generator_dataset_op.cc:103] Error occurred when finalizing GeneratorDataset iterator: Cancelled: Operation was cancelled 2020-03-17 11:12:34 INFO rasa.core.policies.ensemble - MappingPolicy not included in policy ensemble. Default intents 'restart and back will not trigger actions ‘action_restart’ and ‘action_back’. 2020-03-17 11:12:34 WARNING rasa.core.domain - You are using an experiential feature: Action ‘action_query_knowledge_base’! Bot loaded. Type a message and press enter (use ‘/stop’ to exit): Your input -> hi 2020-03-17 11:12:45.954934: W tensorflow/core/kernels/data/generator_dataset_op.cc:103] Error occurred when finalizing GeneratorDataset iterator: Cancelled: Operation was cancelled 2020-03-17 11:12:46.478778: W tensorflow/core/kernels/data/generator_dataset_op.cc:103] Error occurred when finalizing GeneratorDataset iterator: Cancelled: Operation was cancelled 2020-03-17 11:12:46.512129: W tensorflow/core/kernels/data/generator_dataset_op.cc:103] Error occurred when finalizing GeneratorDataset iterator: Cancelled: Operation was cancelled

Could you ensure that the error logs are in markdown format?

logs are easier to read this way

Also, that version or Rasa are you using? What version of python? What operating system?

 Rasa version : 1.8.1
 Python: 3.7.6
 OS: Win 10


(rasa) PS C:> cd C:\Users\siddharth.chauhan\Desktop\demographics_chatbot (rasa) PS 
C:\Users\siddharth.chauhan\Desktop\demographics_chatbot> rasa shell 
2020-03-17 11:12:06.752274: W 
tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic 
library ‘cudart64_101.dll’; dlerror: cudart64_101.dll not found 
2020-03-17 11:12:06.752515: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore 
above cudart dlerror if you do not have a GPU set up on your machine. 
2020-03-17 11:12:17 INFO root - Starting Rasa server on http://localhost:5005 
2020-03-17 11:12:21.708254: W 
tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic 
library ‘nvcuda.dll’; dlerror: nvcuda.dll not found 
2020-03-17 11:12:21.708510: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] 
failed call to cuInit: UNKNOWN ERROR (303) 
2020-03-17 11:12:21.712714: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] 
retrieving CUDA diagnostic information for host: DA-2-maxisit 
2020-03-17 11:12:21.712976: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] 
hostname: DA-2-maxisit 
2020-03-17 11:12:23.754627: W 
tensorflow/core/kernels/data/generator_dataset_op.cc:103] Error occurred when finalizing 
GeneratorDataset iterator: Cancelled: Operation was cancelled 
2020-03-17 11:12:33.383058: W 
tensorflow/core/kernels/data/generator_dataset_op.cc:103] Error occurred when finalizing 
GeneratorDataset iterator: Cancelled: Operation was cancelled 
2020-03-17 11:12:34 INFO rasa.core.policies.ensemble - MappingPolicy not included in 
policy ensemble. Default intents 'restart and back will not trigger actions ‘action_restart’ 
and ‘action_back’. 
2020-03-17 11:12:34 WARNING rasa.core.domain - You are using an experiential feature: 
Action ‘action_query_knowledge_base’! Bot loaded. Type a message and press enter (use 
‘/stop’ to exit): Your input -> hi 
2020-03-17 11:12:45.954934: W 
tensorflow/core/kernels/data/generator_dataset_op.cc:103] Error occurred when finalizing 
GeneratorDataset iterator: Cancelled: Operation was cancelled 
2020-03-17 11:12:46.478778: W 
tensorflow/core/kernels/data/generator_dataset_op.cc:103] Error occurred when finalizing 
GeneratorDataset iterator: Cancelled: Operation was cancelled 
2020-03-17 11:12:46.512129: W 
tensorflow/core/kernels/data/generator_dataset_op.cc:103] Error occurred when finalizing 
GeneratorDataset iterator: Cancelled: Operation was cancelled

So I put this in google and it suggested this stackoverflow article; tensorflow2.0 - Error occurred when finalizing GeneratorDataset iterator: Cancelled: Operation was cancelled - Stack Overflow.

There the solution seems to arise when tweaking the batch size. This is something that you have manual control over by changing the config.yml pipe and adding this setting to the algorithm that you’re using. Which algorithm are you using?

If you’re using 1.8.1 the odds are that you’re using the Diet classifier. I’ve made a video that explains some of the settings (including the batch_size one) here: https://youtu.be/oj5oPGDlep4?t=631

Yes, I am using Diet classifier.

I’m having the same issue on rasa 1.8.2 with python 3.7, MacOS Mojave. When I try to load the Agent with a trained model it throws the error.

Error occurred when finalizing GeneratorDataset iterator: Cancelled: Operation was cancelled

1 Like

here is how you can reproduce the error

from rasa.core.agent import Agent
from rasa.core.interpreter import RasaNLUInterpreter
from rasa.utils.endpoints import EndpointConfig

action_endpoint = EndpointConfig(url="http://localhost:5055/webhook")    
agent = Agent.load("models/20200324-192130.tar.gz", action_endpoint=action_endpoint)

In order to reproduce that I would need to have access to your model, which I don’t.

Could you share your config.yml file instead?