We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Guys, can anyone can help me?
This is my code that generate "got an unexpected keyword argument 'access_token'"
from wit import Wit
access_token = 'TOKEN'
def send(request, response): print request['text'] print('Sending to user...', response['text'])
actions = { 'send': send }
client = Wit(access_token=access_token, actions=actions)
resp = client.message('what is the stock price of xyz') print('Result: ' + str(resp))
The text was updated successfully, but these errors were encountered:
That should be your wit.ai token. It's found in your wit.ai settings.
Sorry, something went wrong.
Yes i know but even if i set the token... Dont work
Tue Mar 28-12:48:43-pywit$ python examples/quickstart.py XXXXTOKENXXXXX Traceback (most recent call last): File "examples/quickstart.py", line 44, in client = Wit(access_token=access_token, actions=actions) TypeError: init() got an unexpected keyword argument 'access_token'
Solved on MacOS. you need to use Python3. sudo pip3 install wit python3 examples/quickstart.py XXXXTOKENXXXXX
sudo pip3 install wit
python3 examples/quickstart.py XXXXTOKENXXXXX
No branches or pull requests
Hi Guys,
can anyone can help me?
This is my code that generate "got an unexpected keyword argument 'access_token'"
from wit import Wit
access_token = 'TOKEN'
def send(request, response):
print request['text']
print('Sending to user...', response['text'])
actions = {
'send': send
}
client = Wit(access_token=access_token, actions=actions)
resp = client.message('what is the stock price of xyz')
print('Result: ' + str(resp))
The text was updated successfully, but these errors were encountered: