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

Error create_task does not exists on JobContext #1

Open
timcouchoud opened this issue Apr 29, 2024 · 0 comments
Open

Error create_task does not exists on JobContext #1

timcouchoud opened this issue Apr 29, 2024 · 0 comments

Comments

@timcouchoud
Copy link

timcouchoud commented Apr 29, 2024

Hi!

I tried to start your agent "deepgram-transcription-agent" but I get following error.: 'JobContext' object has no attribute 'create_task

Any idea how to solve the issue?

Thx!

{"asctime": "2024-04-29 08:14:20,047", "level": "ERROR", "name": "root", "message": "error running user callback for track_subscribed: room_handle: 3\ntrack_subscribed {\n  participant_sid: \"PA_WijYMZPNRcdC\"\n  track {\n    handle {\n      id: 9\n    }\n    info {\n      sid: \"TR_AMisEzZew8Y9g5\"\n      kind: KIND_AUDIO\n      stream_state: STATE_ACTIVE\n      remote: true\n    }\n  }\n}\n", "exc_info": "Traceback (most recent call last):\n  File \"/home/timothee/LABS/livekit-agents/deepgram-transcription-agent/.venv/lib/python3.10/site-packages/livekit/rtc/room.py\", line 247, in _listen_task\n    self._on_room_event(event.room_event)\n  File \"/home/timothee/LABS/livekit-agents/deepgram-transcription-agent/.venv/lib/python3.10/site-packages/livekit/rtc/room.py\", line 307, in _on_room_event\n    self.emit(\n  File \"/home/timothee/LABS/livekit-agents/deepgram-transcription-agent/.venv/lib/python3.10/site-packages/livekit/rtc/_event_emitter.py\", line 13, in emit\n    callback(*args, **kwargs)\n  File \"/home/timothee/LABS/livekit-agents/deepgram-transcription-agent/agent.py\", line 39, in on_track_subscribed\n    self.ctx.create_task(self.process_track(track, participant))\nAttributeError: 'JobContext' object has no attribute 'create_task'"}
ERROR:livekit.agents:error running user callback for track_subscribed: room_handle: 3
track_subscribed {
  participant_sid: "PA_WijYMZPNRcdC"
  track {
    handle {
      id: 9
    }
    info {
      sid: "TR_AMisEzZew8Y9g5"
      kind: KIND_AUDIO
      stream_state: STATE_ACTIVE
      remote: true
    }
  }
}```
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

1 participant