iai-group / MovieBot

IAI MovieBot
https://iai-group.github.io/MovieBot/
MIT License
8 stars 10 forks source link

DTS 'str' object has no attribute 'slot' #131

Closed IKostric closed 1 year ago

IKostric commented 1 year ago
Traceback (most recent call last):
  File "src/gevent/greenlet.py", line 908, in gevent._gevent_cgreenlet.Greenlet.run
  File "/opt/homebrew/Caskroom/miniforge/base/envs/moviebot/lib/python3.9/site-packages/socketio/server.py", line 731, in _handle_event_internal
    r = server._trigger_event(data[0], namespace, sid, *data[1:])
  File "/opt/homebrew/Caskroom/miniforge/base/envs/moviebot/lib/python3.9/site-packages/socketio/server.py", line 765, in _trigger_event
    return self.namespace_handlers[namespace].trigger_event(
  File "/opt/homebrew/Caskroom/miniforge/base/envs/moviebot/lib/python3.9/site-packages/flask_socketio/namespace.py", line 25, in trigger_event
    return self.socketio._handle_event(handler, event, self.namespace,
  File "/opt/homebrew/Caskroom/miniforge/base/envs/moviebot/lib/python3.9/site-packages/flask_socketio/__init__.py", line 828, in _handle_event
    ret = handler(*args)
  File "/Users/2920807/Repos/moviebot-fork/moviebot/controller/server.py", line 61, in on_message
    response = action(request.sid, data["message"])
  File "/Users/2920807/Repos/moviebot-fork/moviebot/controller/server.py", line 42, in action
    return controller_flask.send_message(user_id, message)
  File "/Users/2920807/Repos/moviebot-fork/moviebot/controller/controller_flask.py", line 256, in send_message
    self.continue_dialogue(user_id, payload)
  File "/Users/2920807/Repos/moviebot-fork/moviebot/controller/controller_flask.py", line 175, in continue_dialogue
    ) = self.agent[user_id].continue_dialogue(
  File "/Users/2920807/Repos/moviebot-fork/moviebot/agent/agent.py", line 186, in continue_dialogue
    self.dialogue_manager.receive_input(user_dacts)
  File "/Users/2920807/Repos/moviebot-fork/moviebot/dialogue_manager/dialogue_manager.py", line 73, in receive_input
    self.dialogue_state_tracker.update_state_user(user_dacts)
  File "/Users/2920807/Repos/moviebot-fork/moviebot/dialogue_manager/dialogue_state_tracker.py", line 97, in update_state_user
    if param.slot in self.ontology.multiple_values_CIN:
AttributeError: 'str' object has no attribute 'slot'
kbalog commented 1 year ago

This error has not surfaced for a while, we believe it was fixed.