#6782 × Failed to build pynini==2.1.6 ├─▶ The build backend returned an error ╰─▶ Call to setuptools.build_meta:__legacy__.b

174.136.**9 Posted at: 1 hour ago

× Failed to build pynini==2.1.6
├─▶ The build backend returned an error
╰─▶ Call to setuptools.build_meta:__legacy__.build_wheel failed (exit

  status: 1)

  [stdout]
  running bdist_wheel
  running build
  running build_py
  running egg_info
  writing pynini.egg-info/PKG-INFO
  writing dependency_links to pynini.egg-info/dependency_links.txt
  writing top-level names to pynini.egg-info/top_level.txt
  reading manifest file 'pynini.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  adding license file 'LICENSE'
  adding license file 'AUTHORS'
  writing manifest file 'pynini.egg-info/SOURCES.txt'
  running build_ext
  building '_pywrapfst' extension
  c++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG
  -g -fwrapv -O3 -Wall -O3 -arch arm64 -mmacosx-version-min=11.0
  -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix
  -fPIC 

......
finalize_license_expression()

  /Users/po./.cache/uv/builds-v0/.tmpbQdjej/lib/python3.10/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()
  extensions/_pywrapfst.cpp:1201:10: fatal error: 'fst/util.h' file not
  found
   1201 | #include 
        |          ^~~~~~~~~~~~
  1 error generated.
  error: Command '['c++', '-Wno-unused-result',
  '-Wsign-compare', '-Wunreachable-code', '-DNDEBUG',
  '-g', '-fwrapv', '-O3', '-Wall', '-O3', '-arch', 'arm64',
  '-mmacosx-version-min=11.0', '-Wno-nullability-completeness',
  '-Wno-expansion-to-defined', '-Wno-undef-prefix', '-fPIC',
  '-I/Users/po./.cache/uv/builds-v0/.tmpbQdjej/include',
  '-I/Users/po./.local/share/uv/python/cpython-3.10.19-macos-aarch64-none/include/python3.10',
  '-c', 'extensions/_pywrapfst.cpp', '-o',
  'build/temp.macosx-11.0-arm64-cpython-310/extensions/_pywrapfst.o',
  '-std=c++17', '-Wno-register', '-Wno-deprecated-declarations',
  '-Wno-unused-function', '-Wno-unused-local-typedefs', '-funsigned-char',
  '-stdlib=libc++', '-mmacosx-version-min=10.12']' returned non-zero exit
  status 1.

hint: pynini (v2.1.6) was included because pyvideotrans (v4.5) depends on pynini
hint: This error likely indicates that you need to install a library that provides "fst/util.h" for [email protected]

1 Replies

#1 DeepSeek reply at 1 hour ago

该报错表明在源码部署过程中编译 pynini 时找不到 fst/util.h 头文件,导致 _pywrapfst 构建失败。

目前无法仅凭这段日志直接给出确定的修复步骤,请先确认你已完整执行 macOS 源码部署的前置依赖安装:

  1. brew install libsndfile
  2. brew install git
  3. brew install [email protected]
  4. brew uninstall --ignore-dependencies ffmpeg
  5. brew tap homebrew-ffmpeg/ffmpeg
  6. brew install homebrew-ffmpeg/ffmpeg/ffmpeg

另外,你当前尝试部署的是 v4.5,而软件最新版本为 v4.10。如非必须使用旧版,建议重新下载最新版源码后再次执行 uv sync

如果完整安装前置依赖后仍失败,请提供以下信息以便进一步分析:

  • 软件左上角版本号数字
  • 完整的 uv sync 命令及输出日志(底部约30行)
  • 当前 macOS 版本和 CPU 架构
  • 软件安装目录下 logs/ 文件夹中最新的日志文件(如有)
Thinking...
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 via ko-fi.com

Related resource