Skip to content

这个报错是怎么回事 #155

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

Closed
iscc-top opened this issue May 31, 2024 · 4 comments · Fixed by #420
Closed

这个报错是怎么回事 #155

iscc-top opened this issue May 31, 2024 · 4 comments · Fixed by #420
Labels
bug Something isn't working

Comments

@iscc-top
Copy link

To create a public link, set share=True in launch().
INFO:ChatTTS.core:All initialized.
WARNING:ChatTTS.core:Package WeTextProcessing not found! Run: conda install -c conda-forge pynini=2.1.5 && pip install WeTextProcessing
Traceback (most recent call last):
File "C:\Users\20514\AppData\Local\Programs\Python\Python311\Lib\site-packages\gradio\queueing.py", line 521, in process_events
response = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\20514\AppData\Local\Programs\Python\Python311\Lib\site-packages\gradio\route_utils.py", line 276, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\20514\AppData\Local\Programs\Python\Python311\Lib\site-packages\gradio\blocks.py", line 1945, in process_api
result = await self.call_function(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\20514\AppData\Local\Programs\Python\Python311\Lib\site-packages\gradio\blocks.py", line 1513, in call_function
prediction = await anyio.to_thread.run_sync(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\20514\AppData\Local\Programs\Python\Python311\Lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\20514\AppData\Local\Programs\Python\Python311\Lib\site-packages\anyio_backends_asyncio.py", line 2144, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "C:\Users\20514\AppData\Local\Programs\Python\Python311\Lib\site-packages\anyio_backends_asyncio.py", line 851, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\20514\AppData\Local\Programs\Python\Python311\Lib\site-packages\gradio\utils.py", line 831, in wrapper
response = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "d:\桌面\ChatTTS-main\webui.py", line 35, in generate_audio
text = chat.infer(text,
^^^^^^^^^^^^^^^^^
File "d:\桌面\ChatTTS-main\ChatTTS\core.py", line 146, in infer
self.init_normalizer(_lang)
File "d:\桌面\ChatTTS-main\ChatTTS\core.py", line 192, in init_normalizer
self.normalizer[lang] = Normalizer().normalize
^^^^^^^^^^
UnboundLocalError: cannot access local variable 'Normalizer' where it is not associated with a value

@randy-tsukemen
Copy link

conda install -c conda-forge pynini=2.1.5 && pip install WeTextProcessing

@Oliver-Lief
Copy link

我也是,按提示执行安装那两个包不成功

@roywei
Copy link

roywei commented Jun 1, 2024

pip install nemo_text_processing

@zhengpenghu
Copy link

conda install -c conda-forge pynini=2.1.5 && pip install WeTextProcessing

This solved the bug on my M1 pro macbook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants