wit-ai / pywit

Python library for Wit.ai
Other
1.46k stars 361 forks source link

unexpected keyword argument 'handle_message'" #107

Closed nickthejagger closed 6 years ago

nickthejagger commented 6 years ago

hey, i run joke.py and i got this error how to fix it? "TypeError: interactive() got an unexpected keyword argument 'handle_message'"

aforaleka commented 6 years ago

Hi @nickthejagger! Are you running joke.py with the latest changes to wit.py? There have been some recent updates to the interactive function in wit.py

nickthejagger commented 6 years ago

yeah, of course i do.it's the only reason why i check the update because they update so i can use 'understanding' mode in wit i use visual studio code and they give me this error

E1123:Unexpected keyword argument 'handle_message' in method call' the error occurred in line 66. i'm new in python (and the chatbot it self) so i don't quite understand where is the error

aforaleka commented 6 years ago

The error is most likely happening because the definition of the interactive function is outdated and cannot take the handle_message parameter. Can you try running pip install wit --upgrade to get the latest version for the wit package v5.0.0?

aforaleka commented 6 years ago

Feel free to reopen the issue if you're still encountering this problem