Skip to content
New issue

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

got an unexpected keyword argument 'access_token' #82

Closed
diegodeodati opened this issue Feb 2, 2017 · 4 comments
Closed

got an unexpected keyword argument 'access_token' #82

diegodeodati opened this issue Feb 2, 2017 · 4 comments

Comments

@diegodeodati
Copy link

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))

@avbanks
Copy link

avbanks commented Feb 5, 2017

That should be your wit.ai token. It's found in your wit.ai settings.

@diegodeodati
Copy link
Author

Yes i know but even if i set the token... Dont work

@patrickpxp
Copy link

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'

@patrickpxp
Copy link

Solved on MacOS. you need to use Python3.
sudo pip3 install wit
python3 examples/quickstart.py XXXXTOKENXXXXX

@jtliao jtliao closed this as completed May 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants