#5054 (pyvideotrans-4.01) C:\Users\Administrator\Downloads\pyvideotrans-4.01>uv sync --all-extrasResolved 371 packages in 7

240e:3b5* Posted at: 18 hours ago

(pyvideotrans-4.01) C:\Users\Administrator\Downloads\pyvideotrans-4.01>uv sync --all-extras
Resolved 371 packages in 791ms
x Failed to build pynini==2.1.6
|-> The build backend returned an error
-> Call to setuptools.build_meta:__legacy__.build_wheel` failed (exit code: 1)

  [stdout]
  running bdist_wheel
  running build
  running build_py
  copying pynini\__init__.py -> build\lib.win-amd64-cpython-310\pynini
  copying pywrapfst\__init__.py -> build\lib.win-amd64-cpython-310\pywrapfst
  copying pynini\examples\case.py -> build\lib.win-amd64-cpython-310\pynini\examples
  copying pynini\examples\chatspeak.py -> build\lib.win-amd64-cpython-310\pynini\examples
  copying pynini\examples\chatspeak_model.py -> build\lib.win-amd64-cpython-310\pynini\examples
  copying pynini\examples\dates.py -> build\lib.win-amd64-cpython-310\pynini\examples
  copying pynini\examples\g2p.py -> build\lib.win-amd64-cpython-310\pynini\example

......
_64-none\include

  -IC:\Users\Administrator\AppData\Roaming\uv\python\cpython-3.10.19-windows-x86_64-none\Include "-IC:\Program
  Files (x86)\Microsoft Visual Studio\18\BuildTools\VC\Tools\MSVC\14.51.36231\include" "-IC:\Program Files
  (x86)\Microsoft Visual Studio\18\BuildTools\VC\Tools\MSVC\14.51.36231\ATLMFC\include" "-IC:\Program Files
  (x86)\Microsoft Visual Studio\18\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows
  Kits\10\include\10.0.28000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.28000.0\\um"
  "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.28000.0\\shared" "-IC:\Program Files (x86)\Windows
  Kits\10\\include\10.0.28000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.28000.0\\cppwinrt"
  "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpextensions/_pywrapfst.cpp
  /Fobuild\temp.win-amd64-cpython-310\Release\extensions\_pywrapfst.obj -std=c++17 -Wno-register
  -Wno-deprecated-declarations -Wno-unused-function -Wno-unused-local-typedefs -funsigned-char

  [stderr]
  C:\Users\Administrator\AppData\Local\uv\cache\builds-v0\.tmp0aNgOE\lib\site-packages\setuptools\config\_apply_pyprojecttoml.py:82:
  SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
  !!

          ********************************************************************************
          Please use a simple string containing a SPDX expression for `project.license`. You can also use
  `project.license-files`. (Both options available on setuptools>=77.0.0).

          By 2027-Feb-18, you need to update your project and remove deprecated calls
          or your builds will no longer be supported.

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************

  !!
    corresp(dist, value, root_dir)
  C:\Users\Administrator\AppData\Local\uv\cache\builds-v0\.tmp0aNgOE\lib\site-packages\setuptools\config\_apply_pyprojecttoml.py:61:
  SetuptoolsDeprecationWarning: License classifiers are deprecated.
  !!

          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:

          License :: OSI Approved :: Apache Software License

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************

  !!
    dist._finalize_license_expression()
  C:\Users\Administrator\AppData\Local\uv\cache\builds-v0\.tmp0aNgOE\lib\site-packages\setuptools\dist.py:765:
  SetuptoolsDeprecationWarning: License classifiers are deprecated.
  !!

          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:

          License :: OSI Approved :: Apache Software License

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************

  !!
    self._finalize_license_expression()
  cl: ������ error D8021 :��Ч����ֵ������/Wno-register��
  error: command 'C:\\Program Files (x86)\\Microsoft Visual
  Studio\\18\\BuildTools\\VC\\Tools\\MSVC\\14.51.36231\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2

hint: pynini (v2.1.6) was included because pyvideotrans[mosstts] (v4.0) depends on pynini
hint: Build failures usually indicate a problem with the package or the build environment
什么原因

1 Replies

pynini 编译失败是因为其构建脚本包含了 MSVC 不兼容的 GCC 编译标志 /Wno-register。该依赖仅用于 mosstts 可选渠道。

解决方案:如果你不需要使用 MOSS-TTS 配音渠道,改用以下命令安装,跳过该可选依赖:

uv sync

若仍需 MOSS-TTS,请改用预编译的 Windows wheel 包,或手动下载 pynini 的二进制版本。

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update. Dondate: ko-fi.com/jianchang512

Related resource