pipecat-ai / pipecat

Open Source framework for voice and multimodal conversational AI
BSD 2-Clause "Simplified" License
3.32k stars 314 forks source link

TypeError: RTVIProcessor.__init__() got an unexpected keyword argument 'transport' #420

Closed sadimoodi closed 21 hours ago

sadimoodi commented 2 months ago

I am getting this error below when running .py files that contain the following code:

from pipecat.processors.frameworks.rtvi import (
    RTVIConfig,
    RTVIProcessor,
    RTVIServiceConfig,
    RTVIServiceOptionConfig)

rtai = RTVIProcessor(transport=transport)

, it seems like the RTVI.py file contains a class (RTVIProcessor) which does not accept "transport" as a parameter in the constructor, how to fix this?

Error: rtai = RTVIProcessor(transport=transport) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: RTVIProcessor.init() got an unexpected keyword argument 'transport'

aconchillo commented 2 months ago

Hi @sadimoodi . Sorry you ran into this. The latest version of RTVIPRocessor doesn't require a transport argument.

wjiuzh commented 2 months ago

Hi @sadimoodi . Sorry you ran into this. The latest version of RTVIPRocessor doesn't require a transport argument.

Hi, Any examples of using the latest version of RTVIProcessor?

sadimoodi commented 2 months ago

Hi @sadimoodi . Sorry you ran into this. The latest version of RTVIPRocessor doesn't require a transport argument.

can u pls refer me to any example that uses RTVI using the latest version of pipecat = 0.0.41? i cant find any

qtangs commented 1 month ago

can u pls refer me to any example that uses RTVI using the latest version of pipecat = 0.0.41? i cant find any

In case you haven't seen it, it's here: https://github.com/kwindla/ai-tinkerers-demo-2024-08/blob/9fe7de780a3fe02e715751af312d8506afe080fb/bot/pipeline.py#L85

aconchillo commented 21 hours ago

Thanks! I think this can be closed now since newer version have been released with this issue already fixed.