IBM / watson-voice-bot

Create a Watson Assistant chatbot that uses voice over a web browser.
https://developer.ibm.com/patterns/create-a-web-based-voice-chatbot/
Apache License 2.0
119 stars 157 forks source link

ValueError: authenticator must be provided #51

Closed sarathchandra24 closed 4 years ago

sarathchandra24 commented 5 years ago

(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

markstur commented 5 years ago

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