Skip to content

docker compose up failed #52

@lym5460

Description

@lym5460

root@rtcs:~/RealtimeVoiceChat# docker logs -f 47f0
Entrypoint: Ensuring cache directory ownership for user appuser (1001)...
Entrypoint: Switching to user appuser (1001) and executing command: python -m uvicorn server:app --host 0.0.0.0 --port 8000
11:16.85 root INFO Initializing NLTK Tokenizer
11:21.55 speech_pip INFO 🗣️📄 System prompt loaded from file.
INFO: Started server process [1]
INFO: Waiting for application startup.
11:21.55 server INFO 🖥️▶️ Server starting up
👄⏬ Downloading config.json to models/Lasinya
👄⏬ Downloading vocab.json to models/Lasinya
👄⏬ Downloading speakers_xtts.pth to models/Lasinya
👄⏬ Downloading model.pth to models/Lasinya
13:32.02 root INFO Local XTTS Model: "Lasinya" specified
13:32.02 root INFO Local models path: "./models/Lasinya"
13:32.02 root INFO config.json exists in ./models/Lasinya/config.json (no download).
13:32.02 root INFO model.pth exists in ./models/Lasinya/model.pth (no download).
13:32.02 root INFO vocab.json exists in ./models/Lasinya/vocab.json (no download).
13:32.02 root INFO speakers_xtts.pth exists in ./models/Lasinya/speakers_xtts.pth (no download).
Start method has already been set. Details: context has already been set
ERROR: Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 694, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "/usr/lib/python3.10/contextlib.py", line 199, in aenter
return await anext(self.gen)
File "/app/code/server.py", line 119, in lifespan
app.state.SpeechPipelineManager = SpeechPipelineManager(
File "/app/code/speech_pipeline_manager.py", line 155, in init
self.audio = AudioProcessor(
File "/app/code/audio_module.py", line 107, in init
self.engine = CoquiEngine(
File "/usr/local/lib/python3.10/dist-packages/RealtimeTTS/engines/base_engine.py", line 36, in call
instance.post_init()
File "/usr/local/lib/python3.10/dist-packages/RealtimeTTS/engines/coqui_engine.py", line 215, in post_init
self.create_worker_process()
File "/usr/local/lib/python3.10/dist-packages/RealtimeTTS/engines/coqui_engine.py", line 243, in create_worker_process
self.retrieve_coqui_voices()
File "/usr/local/lib/python3.10/dist-packages/RealtimeTTS/engines/coqui_engine.py", line 1146, in retrieve_coqui_voices
from TTS.tts.layers.xtts.xtts_manager import SpeakerManager
File "/usr/local/lib/python3.10/dist-packages/TTS/init.py", line 25, in
from TTS.tts.configs.xtts_config import XttsConfig
File "/usr/local/lib/python3.10/dist-packages/TTS/tts/configs/xtts_config.py", line 4, in
from TTS.tts.models.xtts import XttsArgs, XttsAudioConfig
File "/usr/local/lib/python3.10/dist-packages/TTS/tts/models/xtts.py", line 13, in
from TTS.tts.layers.xtts.gpt import GPT
File "/usr/local/lib/python3.10/dist-packages/TTS/tts/layers/xtts/gpt.py", line 16, in
from TTS.tts.layers.xtts.gpt_inference import GPT2InferenceModel
File "/usr/local/lib/python3.10/dist-packages/TTS/tts/layers/xtts/gpt_inference.py", line 6, in
from TTS.tts.layers.xtts.stream_generator import StreamGenerationConfig
File "/usr/local/lib/python3.10/dist-packages/TTS/tts/layers/xtts/stream_generator.py", line 13, in
from transformers import (
ImportError: cannot import name 'BeamSearchScorer' from 'transformers' (/usr/local/lib/python3.10/dist-packages/transformers/init.py)

ERROR: Application startup failed. Exiting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions