wit-ai / pywit

Python library for Wit.ai
Other
1.45k stars 359 forks source link

Wit object has no attribute 'message' #129

Closed jeindustries closed 5 years ago

jeindustries commented 5 years ago

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 commented 5 years ago

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

jeindustries commented 5 years ago

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

jtliao commented 5 years ago

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

KartikChugh commented 4 years ago

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 commented 4 years ago

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