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

Wit object has no attribute 'message' #129

Closed
jeindustries opened this issue Apr 24, 2019 · 5 comments
Closed

Wit object has no attribute 'message' #129

jeindustries opened this issue Apr 24, 2019 · 5 comments

Comments

@jeindustries
Copy link

We are working on a project using Wit.ai. The following code stopped working suddenly and every time we run it, the message saids theres no attribute called 'message'. How can I fix this?

`from wit import Wit

access_token = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
client = Wit(access_token)
resp = client.message("set an alarm tomorrow at 7am")`

Capture

@jtliao
Copy link
Contributor

jtliao commented Apr 24, 2019

hi @jeindustries, i can't reproduce this, I presume there is an issue importing the project

@jeindustries
Copy link
Author

Is there any way i can fix this? Uninstalling the project maybe?

@jtliao
Copy link
Contributor

jtliao commented Apr 24, 2019

not too sure, but I would give that a shot. i tried reproducing with the exact steps from https://github.com/wit-ai/pywit, (beginning with pip install wit), and it worked without problems

@jtliao jtliao closed this as completed Apr 29, 2019
@KartikChugh
Copy link

Getting this error.

from wit import Wit
client = Wit(<access token>)
client.interactive()

AttributeError: 'Wit' object has no attribute 'interactive'

and the other commands don't work either.

@KartikChugh
Copy link

Tried uninstalling and reinstalling but it didn't fix the issue

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

3 participants