UserWarning: Loading domain from 'domain' failed. Using empty domain. Error: 'Failed to load domain specification from 'E:\RASA\Rasa_demo\domain'. File not found!'

(rasa) E:\RASA\Rasa_demo>rasa --version
Rasa Version      :         3.1.0
Minimum Compatible Version: 3.0.0
Rasa SDK Version  :         3.1.1
Rasa X Version    :         None
Python Version    :         3.8.13
Operating System  :         Windows-10-10.0.19044-SP

when i validate the domain.yaml it shows as following, i checked several times, do’t find some errors and validate the file on http://www.yamllint.com/, showed valid, i am a beinger, can anyone help fix this error, many thanks.

(rasa) E:\RASA\Rasa_demo>rasa data validate -d domain
D:\Anaconda\envs\rasa\lib\site-packages\flatbuffers\compat.py:19: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's
 documentation for alternative uses
  import imp
D:\Anaconda\envs\rasa\lib\site-packages\sklearn\utils\multiclass.py:14: DeprecationWarning: Please use `spmatrix` from the `scipy.sparse` namespace, the `s
cipy.sparse.base` namespace is deprecated.
  from scipy.sparse.base import spmatrix
D:\Anaconda\envs\rasa\lib\site-packages\rasa\shared\utils\io.py:99: UserWarning: Loading domain from 'domain' failed. Using empty domain. Error: 'Failed to
 load domain specification from 'E:\RASA\Rasa_demo\domain'. File not found!'
D:\Anaconda\envs\rasa\lib\site-packages\rasa\shared\utils\io.py:99: UserWarning: Issue found in 'data\stories.yml':
Found intent 'greet' in stories which is not part of the domain.
  More info at https://rasa.com/docs/rasa/stories
D:\Anaconda\envs\rasa\lib\site-packages\rasa\shared\utils\io.py:99: UserWarning: Issue found in 'data\stories.yml':
Found intent 'affirm' in stories which is not part of the domain.
  More info at https://rasa.com/docs/rasa/stories
D:\Anaconda\envs\rasa\lib\site-packages\rasa\shared\utils\io.py:99: UserWarning: Issue found in 'data\stories.yml':
Found intent 'deny' in stories which is not part of the domain.
  More info at https://rasa.com/docs/rasa/stories
D:\Anaconda\envs\rasa\lib\site-packages\rasa\shared\utils\io.py:99: UserWarning: Issue found in 'data\stories.yml':
Found intent 'request_weather' in stories which is not part of the domain.
  More info at https://rasa.com/docs/rasa/stories
D:\Anaconda\envs\rasa\lib\site-packages\rasa\shared\utils\io.py:99: UserWarning: Issue found in 'data\stories.yml':
Found intent 'thanks' in stories which is not part of the domain.
  More info at https://rasa.com/docs/rasa/stories
D:\Anaconda\envs\rasa\lib\site-packages\rasa\shared\utils\io.py:99: UserWarning: Issue found in 'data\stories.yml':
Found intent 'stop' in stories which is not part of the domain.
  More info at https://rasa.com/docs/rasa/stories
Project validation completed with errors.

domain.yml (2.5 KB)

This should be -d domain.yml

thanks Chris.

1 Like