Skip to content
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

[Bug] 安装TTS失败 #4018

Open
Alex-DeepL opened this issue Oct 10, 2024 · 12 comments
Open

[Bug] 安装TTS失败 #4018

Alex-DeepL opened this issue Oct 10, 2024 · 12 comments
Labels
bug Something isn't working wontfix This will not be worked on but feel free to help.

Comments

@Alex-DeepL
Copy link

Describe the bug

  Traceback (most recent call last):
    File "/root/miniconda3/envs/xtts_v2/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
    File "/root/miniconda3/envs/xtts_v2/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/root/miniconda3/envs/xtts_v2/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-omv17cfm/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=[])
    File "/tmp/pip-build-env-omv17cfm/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-omv17cfm/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 318, in run_setup
      exec(code, locals())
    File "<string>", line 224, in <module>
    File "<string>", line 211, in setup_package
    File "/tmp/pip-build-env-omv17cfm/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
      cythonize_one(*args)
    File "/tmp/pip-build-env-omv17cfm/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: spacy/kb.pyx
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

To Reproduce

  Traceback (most recent call last):
    File "/root/miniconda3/envs/xtts_v2/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
    File "/root/miniconda3/envs/xtts_v2/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/root/miniconda3/envs/xtts_v2/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-omv17cfm/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=[])
    File "/tmp/pip-build-env-omv17cfm/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-omv17cfm/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 318, in run_setup
      exec(code, locals())
    File "<string>", line 224, in <module>
    File "<string>", line 211, in setup_package
    File "/tmp/pip-build-env-omv17cfm/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
      cythonize_one(*args)
    File "/tmp/pip-build-env-omv17cfm/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: spacy/kb.pyx
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

Expected behavior

No response

Logs

No response

Environment

python3.10 linux

Additional context

No response

@Alex-DeepL Alex-DeepL added the bug Something isn't working label Oct 10, 2024
@NeverBeLazyG
Copy link

I have same problem:

pip install TTS
...
....
...
Compiling spacy/matcher/matcher.pyx because it changed.
Compiling spacy/matcher/phrasematcher.pyx because it changed.
Compiling spacy/matcher/dependencymatcher.pyx because it changed.
Compiling spacy/symbols.pyx because it changed.
Compiling spacy/vectors.pyx because it changed.
[ 1/41] Cythonizing spacy/attrs.pyx
[ 2/41] Cythonizing spacy/kb.pyx
Traceback (most recent call last):
File "C:\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\youba\AppData\Local\Temp\pip-build-env-tlncvz06\overlay\Lib\site-packages\setuptools\build_meta.py", line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "C:\Users\youba\AppData\Local\Temp\pip-build-env-tlncvz06\overlay\Lib\site-packages\setuptools\build_meta.py", line 302, in _get_build_requires
self.run_setup()
File "C:\Users\youba\AppData\Local\Temp\pip-build-env-tlncvz06\overlay\Lib\site-packages\setuptools\build_meta.py", line 318, in run_setup
exec(code, locals())
File "", line 224, in
File "", line 211, in setup_package
File "C:\Users\youba\AppData\Local\Temp\pip-build-env-tlncvz06\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1154, in cythonize
cythonize_one(*args)
File "C:\Users\youba\AppData\Local\Temp\pip-build-env-tlncvz06\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1321, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: spacy/kb.pyx
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
PS D:\python>

@Daewooki
Copy link

i have same issue.

how can i solve it?
Every time I installed it with make install,
it was fine, but suddenly it doesn't work.

Are the cython and spacy versions updated?

@Daewooki
Copy link

I fixed the problem by fixing requirements tensorflow==4.44.2 and spacy[ja]==3.7.6 and running make install.

@NeverBeLazyG
Copy link

I fixed the problem by fixing requirements tensorflow==4.44.2 and spacy[ja]==3.7.6 and running make install.

??? more details please

@Daewooki
Copy link

Modify requirements.txt as below and run pip install.

transformers==4.44.2
spacy[ja]==3.7.6

@NeverBeLazyG
Copy link

Modify requirements.txt as below and run pip install.

transformers==4.44.2 spacy[ja]==3.7.6

thank you it worked

@eginhard
Copy link
Contributor

You can install our fork instead with pip install coqui-tts, which should work fine. This repo is not maintained anymore.

@NeverBeLazyG
Copy link

You can install our fork instead with pip install coqui-tts, which should work fine. This repo is not maintained anymore.

thank you that worked like a charm, what is the differece between coquiTTS and TTS ?

@eginhard
Copy link
Contributor

Mostly a lot of bugs were fixed, you can see a more detailed summary of changes here: https://github.com/idiap/coqui-ai-TTS/releases

@NeverBeLazyG
Copy link

Mostly a lot of bugs were fixed, you can see a more detailed summary of changes here: https://github.com/idiap/coqui-ai-TTS/releases

nice thanks. it woked good

@rose07
Copy link

rose07 commented Oct 15, 2024

Copy link

stale bot commented Dec 8, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You might also look our discussion channels.

@stale stale bot added the wontfix This will not be worked on but feel free to help. label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on but feel free to help.
Projects
None yet
Development

No branches or pull requests

5 participants