IBM / watson-voice-bot

Create a Watson Assistant chatbot that uses voice over a web browser.

Home Page:https://developer.ibm.com/patterns/create-a-web-based-voice-chatbot/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ValueError: authenticator must be provided

sarathchandra24 opened this issue · comments

(mytestenv) C:\Users\Sarat\ana\watson-voice-bot>python app.py
INFO:engineio.server:Server initialized for threading.
Traceback (most recent call last):
File "app.py", line 128, in
assistant = AssistantV1(version="2019-11-06", authenticator=authenticator)
File "C:\Users\Sarat\ana\watson-voice-bot\mytestenv\lib\site-packages\ibm_watson\assistant_v1.py", line 81, in init
disable_ssl_verification=disable_ssl_verification)
File "C:\Users\Sarat\ana\watson-voice-bot\mytestenv\lib\site-packages\ibm_cloud_sdk_core\base_service.py", line 63, in init
raise ValueError('authenticator must be provided')
ValueError: authenticator must be provided

authenticator is set from the environment right before that call L126.
So if it is not set, that probably means you did not set your .env file to have
ASSISTANT_APIKEY=your key
ASSISTANT_URL=your url