[index-tts]runtime.js:516 Uncaught (in promise) Error: [svelte-i18n] Cannot format a message without first setting the initial locale.

2025-10-28 753 views
1

打开页面的时候报以下信息,我是在局域网访问,不是直接使用的127.0.0.1:7860访问的。 runtime.js:516 Uncaught (in promise) Error: [svelte-i18n] Cannot format a message without first setting the initial locale. at zt (Index.svelte:140:21) at no (svelte.js:1:24277) at new Zt (Index.svelte:500:70) at HTMLElement.connectedCallback (main.ts:109:15) zt @ Index.svelte:140 no @ svelte.js:1 Zt @ Index.svelte:500 connectedCallback @ main.ts:109 await in connectedCallback
ea @ main.ts:207 (anonymous) @ main.ts:210 报错后的具体现象是页面白屏,控制台打印上述信息。

目前是在master分支,使用这个指令:python webui.py --model_dir models/IndexTTS-1.5 --host 0.0.0.0
uname -a Linux localhost.localdomain 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-9/root/usr --mandir=/opt/rh/devtoolset-9/root/usr/share/man --infodir=/opt/rh/devtoolset-9/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --with-default-libstdcxx-abi=gcc4-compatible --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-9.3.1-20200408/obj-x86_64-redhat-linux/isl-install --disable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux Thread model: posix gcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC)

nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2024 NVIDIA Corporation Built on Thu_Mar_28_02:18:24_PDT_2024 Cuda compilation tools, release 12.4, V12.4.131 Build cuda_12.4.r12.4/compiler.34097967_0

期望,是不是我本地环境编译导致的问题?还是其它的情况,看看有没有遇到的朋友帮忙解决一下。

回答

8

问题已经到找了,目前问题已经解决。是因为gradio的原因,gradio-5.38.1升级到gradio-5.38.2后解决问题。