I’m facing the error
Exception: To use the facebook input channel, you need to pass a credentials file using ‘–credentials’. The argument should be a file path pointing toa yml file containing the facebook authenticationinformation. Details in the docs: Chat & Voice platforms
But i have the file fb_credentials.yml in the correct location. Not sure why rasa core is not able to fetch this file. Need help
Hi @EPedrotti, Please find the error stack and directory structure below
python3 -m rasa_core.run --enable_api --auth_token thisismysecret -d models/current/dialogue -u models/current/nlu --connector facebook --credentials fb_credentials.yml --endpoints endpoints.yml -o out.log
/usr/local/lib/python3.5/dist-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
:0: UserWarning: You do not have a working installation of the service_identity module: 'cannot import name 'opentype''. Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied. Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification. Many valid certificate/hostname mappings may be rejected.
2019-01-09 02:58:58 INFO root - Rasa process starting
2019-01-09 02:58:59 INFO rasa_nlu.components - Added 'nlp_spacy' to component cache. Key 'nlp_spacy-en'.
2019-01-09 02:58:59 WARNING py.warnings - /usr/local/lib/python3.5/dist-packages/rasa_nlu/extractors/entity_synonyms.py:85: UserWarning: Failed to load synonyms file from 'models/current/nlu/entity_synonyms.json'
"".format(entity_synonyms_file))
2019-01-09 02:58:59 WARNING py.warnings - /usr/local/lib/python3.5/dist-packages/pykwalify/core.py:99: UnsafeLoaderWarning:
The default 'Loader' for 'load(stream)' without further arguments can be unsafe.
Use 'load(stream, Loader=ruamel.yaml.Loader)' explicitly if that is OK.
Alternatively include the following in your code:
import warnings
warnings.simplefilter('ignore', ruamel.yaml.error.UnsafeLoaderWarning)
In most other cases you should consider using 'safe_load(stream)'
data = yaml.load(stream)
2019-01-09 02:59:07.986427: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.5/dist-packages/rasa_core/run.py", line 263, in <module>
cmdline_args.jwt_method)
File "/usr/local/lib/python3.5/dist-packages/rasa_core/run.py", line 196, in serve_application
input_channels = create_http_input_channels(channel, credentials_file)
File "/usr/local/lib/python3.5/dist-packages/rasa_core/run.py", line 113, in create_http_input_channels
return [_create_single_channel(channel, all_credentials.get(channel))]
File "/usr/local/lib/python3.5/dist-packages/rasa_core/run.py", line 121, in _create_single_channel
return BUILTIN_CHANNELS[channel].from_credentials(credentials)
File "/usr/local/lib/python3.5/dist-packages/rasa_core/channels/facebook.py", line 225, in from_credentials
cls.raise_missing_credentials_exception()
File "/usr/local/lib/python3.5/dist-packages/rasa_core/channels/channel.py", line 138, in raise_missing_credentials_exception
DOCS_BASE_URL, cls.name()))
Exception: To use the facebook input channel, you need to pass a credentials file using '--credentials'. The argument should be a file path pointing toa yml file containing the facebook authenticationinformation. Details in the docs: https://rasa.com/docs/core/connectors/#facebook-setup
Makefile:49: recipe for target 'cmdline' failed
make: *** [cmdline] Error 1
Yes, it is quite likely that the docs from Core 0.7.8 aren’t valid anymore (we are now at core 0.14.1) as we have to keep up with the updates on Facebook’s side. Have you tried upgrading to the latest core and using the current docs?