pipecat icon indicating copy to clipboard operation
pipecat copied to clipboard

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

Open sadimoodi opened this issue 1 year ago • 4 comments

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'

sadimoodi avatar Aug 26 '24 07:08 sadimoodi

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

aconchillo avatar Aug 26 '24 15:08 aconchillo

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?

wjiuzh avatar Aug 27 '24 08:08 wjiuzh

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

sadimoodi avatar Aug 28 '24 06:08 sadimoodi

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

qtangs avatar Oct 05 '24 09:10 qtangs

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

aconchillo avatar Nov 04 '24 21:11 aconchillo