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

pip install error: Building wheel for pynini (setup.py) ... error #144

Open
zutuanwang opened this issue Dec 31, 2024 · 1 comment
Open

Comments

@zutuanwang
Copy link

pip install -r requirements.txt
Using cached yarl-1.18.3-cp310-cp310-macosx_11_0_arm64.whl (92 kB)
Building wheels for collected packages: pynini
Building wheel for pynini (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [52 lines of output]
running bdist_wheel
running build
running build_py
creating build/lib.macosx-11.1-arm64-cpython-310/pywrapfst
copying pywrapfst/init.py -> build/lib.macosx-11.1-arm64-cpython-310/pywrapfst
creating build/lib.macosx-11.1-arm64-cpython-310/pynini
copying pynini/init.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini
creating build/lib.macosx-11.1-arm64-cpython-310/pynini/examples
copying pynini/examples/chatspeak.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/examples
copying pynini/examples/chatspeak_model.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/examples
copying pynini/examples/weather.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/examples
copying pynini/examples/init.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/examples
copying pynini/examples/numbers.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/examples
copying pynini/examples/plurals.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/examples
copying pynini/examples/t9.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/examples
copying pynini/examples/case.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/examples
copying pynini/examples/dates.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/examples
copying pynini/examples/g2p.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/examples
creating build/lib.macosx-11.1-arm64-cpython-310/pynini/lib
copying pynini/lib/edit_transducer.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/lib
copying pynini/lib/utf8.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/lib
copying pynini/lib/init.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/lib
copying pynini/lib/features.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/lib
copying pynini/lib/pynutil.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/lib
copying pynini/lib/paradigms.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/lib
copying pynini/lib/tagger.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/lib
copying pynini/lib/rule_cascade.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/lib
copying pynini/lib/rewrite.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/lib
copying pynini/lib/byte.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/lib
creating build/lib.macosx-11.1-arm64-cpython-310/pynini/export
copying pynini/export/init.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/export
copying pynini/export/export.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/export
copying pynini/export/multi_grm_example.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/export
copying pynini/export/multi_grm.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/export
copying pynini/export/grm.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/export
copying pynini/export/grm_example.py -> build/lib.macosx-11.1-arm64-cpython-310/pynini/export
copying pywrapfst/init.pyi -> build/lib.macosx-11.1-arm64-cpython-310/pywrapfst
copying pywrapfst/py.typed -> build/lib.macosx-11.1-arm64-cpython-310/pywrapfst
copying pynini/init.pyi -> build/lib.macosx-11.1-arm64-cpython-310/pynini
copying pynini/py.typed -> build/lib.macosx-11.1-arm64-cpython-310/pynini
copying pynini/examples/py.typed -> build/lib.macosx-11.1-arm64-cpython-310/pynini/examples
copying pynini/lib/py.typed -> build/lib.macosx-11.1-arm64-cpython-310/pynini/lib
copying pynini/export/py.typed -> build/lib.macosx-11.1-arm64-cpython-310/pynini/export
running build_ext
building '_pywrapfst' extension
creating build/temp.macosx-11.1-arm64-cpython-310/extensions
clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/litevar/miniconda3/envs/glm4-voice/include -arch arm64 -fPIC -O2 -isystem /Users/litevar/miniconda3/envs/glm4-voice/include -arch arm64 -I/Users/litevar/miniconda3/envs/glm4-voice/include/python3.10 -c extensions/_pywrapfst.cpp -o build/temp.macosx-11.1-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.7
extensions/_pywrapfst.cpp:1291:10: fatal error: 'fst/util.h' file not found
1291 | #include <fst/util.h>
| ^~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang++' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pynini
Running setup.py clean for pynini
Failed to build pynini
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pynini)

@sixsixcoder
Copy link

sixsixcoder commented Jan 3, 2025

看样子您在mac M系列芯片上部署该模型,这个仓库目前不支持在mac上部署

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants