JustinaPetr / Weatherbot_Tutorial

275 stars 448 forks source link

TypeError: __init__() takes from 2 to 4 positional arguments but 5 were given #72

Open MaulishShah opened 5 years ago

MaulishShah commented 5 years ago

I try to run run_app.py with my OAuth Access Token and bot access token but it give error :TypeError: init() takes from 2 to 4 positional arguments but 5 were given

Code:


from rasa_core.channels.slack import SlackInput
from rasa_core.agent import Agent
from rasa_core.interpreter import RasaNLUInterpreter
import yaml
from rasa_core.utils import EndpointConfig

nlu_interpreter = RasaNLUInterpreter('./models/nlu/default/weathernlu')
action_endpoint = EndpointConfig(url="http://localhost:5055/webhook")
agent = Agent.load('./models/dialogue', interpreter = nlu_interpreter, action_endpoint = action_endpoint)

input_channel = SlackInput('xoxp-xxxxxx','xoxb-xxxxxxx','xxxxxx',True)

agent.handle_channels([input_channel], 5004, serve_forever=True)```
suryavamsi1563 commented 5 years ago

Iam facing the same error.Did you come up with a workaround??

MaulishShah commented 5 years ago

I am facing the same error. Did you come up with a workaround??

No!! No one gives solution about this