kylebgorman / pynini

Read-only mirror of Pynini
http://pynini.opengrm.org
Apache License 2.0
118 stars 27 forks source link

Hello, I’m a newbie and I’m encountering issues installing Pynini 2.1.5. #79

Closed MullyCap2004 closed 1 month ago

MullyCap2004 commented 1 month ago

Hi there! I'm new to Pynini, and I'm trying to install version 2.1.5 along with other requirements for an app. However, when I run pip install pynini==2.1.5, I encounter the following error:

(ChatTTS) [mully@MullyPC ChatTTS]$ pip install pynini==2.1.5
Collecting pynini==2.1.5
  Using cached pynini-2.1.5.tar.gz (627 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: Cython>=0.29 in /home/mully/anaconda3/envs/ChatTTS/lib/python3.12/site-packages (from pynini==2.1.5) (3.0.10)
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
  ╰─> [97 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-312
      creating build/lib.linux-x86_64-cpython-312/pynini
      copying pynini/__init__.py -> build/lib.linux-x86_64-cpython-312/pynini
      creating build/lib.linux-x86_64-cpython-312/pywrapfst
      copying pywrapfst/__init__.py -> build/lib.linux-x86_64-cpython-312/pywrapfst
      creating build/lib.linux-x86_64-cpython-312/pynini/examples
      copying pynini/examples/__init__.py -> build/lib.linux-x86_64-cpython-312/pynini/examples
      copying pynini/examples/case.py -> build/lib.linux-x86_64-cpython-312/pynini/examples
      copying pynini/examples/chatspeak.py -> build/lib.linux-x86_64-cpython-312/pynini/examples
      copying pynini/examples/chatspeak_model.py -> build/lib.linux-x86_64-cpython-312/pynini/examples
      copying pynini/examples/dates.py -> build/lib.linux-x86_64-cpython-312/pynini/examples
      copying pynini/examples/g2p.py -> build/lib.linux-x86_64-cpython-312/pynini/examples
      copying pynini/examples/numbers.py -> build/lib.linux-x86_64-cpython-312/pynini/examples
      copying pynini/examples/plurals.py -> build/lib.linux-x86_64-cpython-312/pynini/examples
      copying pynini/examples/t9.py -> build/lib.linux-x86_64-cpython-312/pynini/examples
      copying pynini/examples/weather.py -> build/lib.linux-x86_64-cpython-312/pynini/examples
      creating build/lib.linux-x86_64-cpython-312/pynini/export
      copying pynini/export/__init__.py -> build/lib.linux-x86_64-cpython-312/pynini/export
      copying pynini/export/export.py -> build/lib.linux-x86_64-cpython-312/pynini/export
      copying pynini/export/grm.py -> build/lib.linux-x86_64-cpython-312/pynini/export
      copying pynini/export/grm_example.py -> build/lib.linux-x86_64-cpython-312/pynini/export
      copying pynini/export/multi_grm.py -> build/lib.linux-x86_64-cpython-312/pynini/export
      copying pynini/export/multi_grm_example.py -> build/lib.linux-x86_64-cpython-312/pynini/export
      creating build/lib.linux-x86_64-cpython-312/pynini/lib
      copying pynini/lib/__init__.py -> build/lib.linux-x86_64-cpython-312/pynini/lib
      copying pynini/lib/byte.py -> build/lib.linux-x86_64-cpython-312/pynini/lib
      copying pynini/lib/edit_transducer.py -> build/lib.linux-x86_64-cpython-312/pynini/lib
      copying pynini/lib/features.py -> build/lib.linux-x86_64-cpython-312/pynini/lib
      copying pynini/lib/paradigms.py -> build/lib.linux-x86_64-cpython-312/pynini/lib
      copying pynini/lib/pynutil.py -> build/lib.linux-x86_64-cpython-312/pynini/lib
      copying pynini/lib/rewrite.py -> build/lib.linux-x86_64-cpython-312/pynini/lib
      copying pynini/lib/rule_cascade.py -> build/lib.linux-x86_64-cpython-312/pynini/lib
      copying pynini/lib/tagger.py -> build/lib.linux-x86_64-cpython-312/pynini/lib
      copying pynini/lib/utf8.py -> build/lib.linux-x86_64-cpython-312/pynini/lib
      copying pynini/__init__.pyi -> build/lib.linux-x86_64-cpython-312/pynini
      copying pynini/py.typed -> build/lib.linux-x86_64-cpython-312/pynini
      copying pywrapfst/__init__.pyi -> build/lib.linux-x86_64-cpython-312/pywrapfst
      copying pywrapfst/py.typed -> build/lib.linux-x86_64-cpython-312/pywrapfst
      copying pynini/examples/py.typed -> build/lib.linux-x86_64-cpython-312/pynini/examples
      copying pynini/export/py.typed -> build/lib.linux-x86_64-cpython-312/pynini/export
      copying pynini/lib/py.typed -> build/lib.linux-x86_64-cpython-312/pynini/lib
      running build_ext
      building '_pywrapfst' extension
      creating build/temp.linux-x86_64-cpython-312
      creating build/temp.linux-x86_64-cpython-312/extensions
      /home/mully/anaconda3/envs/ChatTTS/bin/x86_64-conda-linux-gnu-cc -fno-strict-overflow -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/mully/anaconda3/envs/ChatTTS/include -fPIC -O2 -isystem /home/mully/anaconda3/envs/ChatTTS/include -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/mully/anaconda3/envs/ChatTTS/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/mully/anaconda3/envs/ChatTTS/include -fPIC -I/home/mully/anaconda3/envs/ChatTTS/include/python3.12 -c extensions/_pywrapfst.cpp -o build/temp.linux-x86_64-cpython-312/extensions/_pywrapfst.o -std=c++17 -Wno-register -Wno-deprecated-declarations -Wno-unused-function -Wno-unused-local-typedefs -funsigned-char
      In file included from /home/mully/anaconda3/envs/ChatTTS/x86_64-conda-linux-gnu/include/c++/11.2.0/chrono:42,
                       from /home/mully/anaconda3/envs/ChatTTS/x86_64-conda-linux-gnu/include/c++/11.2.0/shared_mutex:36,
                       from /home/mully/anaconda3/envs/ChatTTS/include/fst/lock.h:35,
                       from /home/mully/anaconda3/envs/ChatTTS/include/fst/flags.h:33,
                       from /home/mully/anaconda3/envs/ChatTTS/include/fst/util.h:44,
                       from extensions/_pywrapfst.cpp:1289:
      /home/mully/anaconda3/envs/ChatTTS/x86_64-conda-linux-gnu/include/c++/11.2.0/ctime:80:11: error: 'timespec_get' has not been declared in '::'
         80 |   using ::timespec_get;
            |           ^~~~~~~~~~~~
      extensions/_pywrapfst.cpp: In function 'PyObject* __pyx_pf_10_pywrapfst_11SymbolTable_6read_text(PyTypeObject*, PyObject*, bool)':
      extensions/_pywrapfst.cpp:21177:24: error: 'SymbolTableTextOptions' is not a member of 'fst'; did you mean 'SymbolTableToString'?
      21177 |   std::unique_ptr<fst::SymbolTableTextOptions>  __pyx_v__opts;
            |                        ^~~~~~~~~~~~~~~~~~~~~~
            |                        SymbolTableToString
      extensions/_pywrapfst.cpp:21177:46: error: template argument 1 is invalid
      21177 |   std::unique_ptr<fst::SymbolTableTextOptions>  __pyx_v__opts;
            |                                              ^
      extensions/_pywrapfst.cpp:21177:46: error: template argument 2 is invalid
      extensions/_pywrapfst.cpp:21200:17: error: request for member 'reset' in '__pyx_v__opts', which is of non-class type 'int'
      21200 |   __pyx_v__opts.reset(new fst::SymbolTableTextOptions(__pyx_v_allow_negative_labels));
            |                 ^~~~~
      extensions/_pywrapfst.cpp:21200:27: error: expected type-specifier
      21200 |   __pyx_v__opts.reset(new fst::SymbolTableTextOptions(__pyx_v_allow_negative_labels));
            |                           ^~~
      extensions/_pywrapfst.cpp:21218:65: error: invalid type argument of unary '*' (have 'int')
      21218 |   __pyx_v__symbols.reset(fst::SymbolTable::ReadText(__pyx_t_1, (*__pyx_v__opts)));
            |                                                                 ^~~~~~~~~~~~~~
      extensions/_pywrapfst.cpp: In function '__pyx_obj_10_pywrapfst_Fst* __pyx_f_10_pywrapfst_8Compiler_compile(__pyx_obj_10_pywrapfst_Compiler*, int)':
      extensions/_pywrapfst.cpp:60010:47: error: no matching function for call to 'CompileInternal(std::__cxx11::basic_stringstream<char>&, const char [12], std::string&, std::string&, const fst::SymbolTable*&, const fst::SymbolTable*&, const fst::SymbolTable*&, bool&, bool&, bool&, bool&, bool&)'
      60010 |   __pyx_v__tfst = fst::script::CompileInternal((*__pyx_v_self->_sstrm), __pyx_k_pywrapfst, __pyx_v_self->_fst_type, __pyx_v_self->_arc_type, __pyx_v_self->_isymbols, __pyx_v_self->_osymbols, __pyx_v_self->_ssymbols, __pyx_v_self->_acceptor, __pyx_v_self->_keep_isymbols, __pyx_v_self->_keep_osymbols, __pyx_v_self->_keep_state_numbering, __pyx_v_self->_allow_negative_labels);
            |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from /home/mully/anaconda3/envs/ChatTTS/include/fst/script/fstscript.h:39,
                       from extensions/_pywrapfst.cpp:1291:
      /home/mully/anaconda3/envs/ChatTTS/include/fst/script/compile.h:64:6: note: candidate: 'template<class Arc> void fst::script::CompileInternal(fst::script::FstCompileArgs*)'
         64 | void CompileInternal(FstCompileArgs *args) {
            |      ^~~~~~~~~~~~~~~
      /home/mully/anaconda3/envs/ChatTTS/include/fst/script/compile.h:64:6: note:   template argument deduction/substitution failed:
      extensions/_pywrapfst.cpp:60010:47: note:   candidate expects 1 argument, 12 provided
      60010 |   __pyx_v__tfst = fst::script::CompileInternal((*__pyx_v_self->_sstrm), __pyx_k_pywrapfst, __pyx_v_self->_fst_type, __pyx_v_self->_arc_type, __pyx_v_self->_isymbols, __pyx_v_self->_osymbols, __pyx_v_self->_ssymbols, __pyx_v_self->_acceptor, __pyx_v_self->_keep_isymbols, __pyx_v_self->_keep_osymbols, __pyx_v_self->_keep_state_numbering, __pyx_v_self->_allow_negative_labels);
            |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from /home/mully/anaconda3/envs/ChatTTS/include/fst/script/fstscript.h:39,
                       from extensions/_pywrapfst.cpp:1291:
      /home/mully/anaconda3/envs/ChatTTS/include/fst/script/compile.h:93:27: note: candidate: 'std::unique_ptr<fst::script::FstClass> fst::script::CompileInternal(std::istream&, const string&, const string&, const string&, const fst::SymbolTable*, const fst::SymbolTable*, const fst::SymbolTable*, bool, bool, bool, bool)'
         93 | std::unique_ptr<FstClass> CompileInternal(
            |                           ^~~~~~~~~~~~~~~
      /home/mully/anaconda3/envs/ChatTTS/include/fst/script/compile.h:93:27: note:   candidate expects 11 arguments, 12 provided
      error: command '/home/mully/anaconda3/envs/ChatTTS/bin/x86_64-conda-linux-gnu-cc' 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: Could not build wheels for pynini, which is required to install pyproject.toml-based projects
(ChatTTS) [mully@MullyPC ChatTTS]$ 

My requirements.txt file looks like this:

(ChatTTS) [mully@MullyPC ChatTTS]$ cat requirements.txt 
numpy<2.0.0
numba
omegaconf>=2.3.0
torch>=2.1.0
tqdm
vector_quantize_pytorch
transformers>=4.41.1
vocos
IPython
gradio
pybase16384
pynini==2.1.5; sys_platform == 'linux'
WeTextProcessing; sys_platform == 'linux'
nemo_text_processing; sys_platform == 'linux'
av
pydub
(ChatTTS) [mully@MullyPC ChatTTS]$ 

Any guidance on how to resolve this issue would be greatly appreciated. Thank you!

P.S.: Additionally, here are the Python modules installed in my Conda environment:

(ChatTTS) [mully@MullyPC ChatTTS]$ conda list -n ChatTTS
# packages in environment at /home/mully/anaconda3/envs/ChatTTS:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
absl-py                   2.1.0                    pypi_0    pypi
aiofiles                  23.2.1                   pypi_0    pypi
aiohttp                   3.9.5                    pypi_0    pypi
aiosignal                 1.3.1                    pypi_0    pypi
alsa-lib                  1.2.12               h4ab18f5_0    conda-forge
altair                    5.3.0                    pypi_0    pypi
annotated-types           0.7.0                    pypi_0    pypi
antlr4-python3-runtime    4.9.3                    pypi_0    pypi
anyio                     4.4.0                    pypi_0    pypi
asttokens                 2.4.1                    pypi_0    pypi
atk-1.0                   2.38.0               h04ea711_2    conda-forge
attrs                     23.2.0                   pypi_0    pypi
av                        12.2.0                   pypi_0    pypi
aws-c-auth                0.7.4                h1083cbe_2    conda-forge
aws-c-cal                 0.6.2                h09139f6_2    conda-forge
aws-c-common              0.9.3                hd590300_0    conda-forge
aws-c-compression         0.2.17               h184a658_3    conda-forge
aws-c-event-stream        0.3.2                h6fea174_2    conda-forge
aws-c-http                0.7.13               hb59894b_2    conda-forge
aws-c-io                  0.13.33              h161b759_0    conda-forge
aws-c-mqtt                0.9.7                h55cd26b_0    conda-forge
aws-c-s3                  0.3.18               hfb4bb88_0    conda-forge
aws-c-sdkutils            0.1.12               h184a658_2    conda-forge
aws-checksums             0.1.17               h184a658_2    conda-forge
aws-crt-cpp               0.24.3               h0770d84_1    conda-forge
aws-sdk-cpp               1.11.182             h10f61e1_0    conda-forge
binutils_impl_linux-64    2.38                 h2a08ee3_1  
binutils_linux-64         2.38.0               hc2dff05_0  
blas                      1.0                    openblas  
bottleneck                1.3.7           py312ha883a20_0  
brotli                    1.1.0                hd590300_1    conda-forge
brotli-bin                1.1.0                hd590300_1    conda-forge
brotli-python             1.1.0           py312h30efb56_1    conda-forge
build                     1.2.1                    pypi_0    pypi
bzip2                     1.0.8                h5eee18b_6  
c-ares                    1.28.1               hd590300_0    conda-forge
ca-certificates           2024.7.4             hbcca054_0    conda-forge
cairo                     1.18.0               h3faef2a_0    conda-forge
certifi                   2024.6.2           pyhd8ed1ab_0    conda-forge
cffi                      1.16.0          py312h5eee18b_1  
chattts                   0.0.5                    pypi_0    pypi
click                     8.1.7                    pypi_0    pypi
cmake                     3.29.6                   pypi_0    pypi
cmdstan                   2.33.1               hc24a2e5_0  
cmdstanpy                 1.2.4              pyhd8ed1ab_0    conda-forge
colorama                  0.4.6           py312h06a4308_0  
conda-pack                0.7.1           py312h06a4308_0  
contourpy                 1.2.1           py312h8572e83_0    conda-forge
convertdate               2.4.0              pyhd8ed1ab_0    conda-forge
cycler                    0.12.1             pyhd8ed1ab_0    conda-forge
cython                    3.0.10                   pypi_0    pypi
dbus                      1.13.18              hb2f20db_0  
decorator                 5.1.1                    pypi_0    pypi
dnspython                 2.6.1                    pypi_0    pypi
einops                    0.8.0                    pypi_0    pypi
einx                      0.3.0                    pypi_0    pypi
elastic-transport         8.13.1             pyhd8ed1ab_0    conda-forge
elasticsearch             8.1.0              pyhd8ed1ab_0    conda-forge
email-validator           2.2.0                    pypi_0    pypi
encodec                   0.1.1                    pypi_0    pypi
ephem                     4.1.5           py312h98912ed_1    conda-forge
executing                 2.0.1                    pypi_0    pypi
expat                     2.6.2                h6a678d5_0  
fastapi                   0.111.0                  pypi_0    pypi
fastapi-cli               0.0.4                    pypi_0    pypi
ffmpy                     0.3.2                    pypi_0    pypi
findspark                 2.0.1              pyhd8ed1ab_0    conda-forge
font-ttf-dejavu-sans-mono 2.37                 hd3eb1b0_0  
font-ttf-inconsolata      3.000                h77eed37_0    conda-forge
font-ttf-source-code-pro  2.038                h77eed37_0    conda-forge
font-ttf-ubuntu           0.83                 h8b1ccd4_0  
fontconfig                2.14.2               h14ed4e7_0    conda-forge
fonts-anaconda            1                    h8fa9717_0  
fonts-conda-ecosystem     1                    hd3eb1b0_0  
fonts-conda-forge         1                             0    conda-forge
fonttools                 4.53.0          py312h9a8786e_0    conda-forge
freetype                  2.12.1               h4a9f257_0  
fribidi                   1.0.10               h7b6447c_0  
frozendict                2.4.4                    pypi_0    pypi
frozenlist                1.4.1                    pypi_0    pypi
gcc_impl_linux-64         11.2.0               h1234567_1  
gcc_linux-64              11.2.0               h5c386dc_0  
gdk-pixbuf                2.42.12              hb9ae30d_0    conda-forge
gflags                    2.2.2                h6a678d5_1  
giflib                    5.2.2                hd590300_0    conda-forge
glib                      2.80.2               hf974151_0    conda-forge
glib-tools                2.80.2               hb6ce0ca_0    conda-forge
glog                      0.6.0                h6f12383_0    conda-forge
gradio                    4.37.2                   pypi_0    pypi
gradio-client             1.0.2                    pypi_0    pypi
graphite2                 1.3.14               h295c915_1  
graphviz                  11.0.0               hc68bbd7_0    conda-forge
gtk2                      2.24.33              h73c1081_2  
gts                       0.7.6                hb67d8dd_3  
gxx_impl_linux-64         11.2.0               h1234567_1  
gxx_linux-64              11.2.0               hc2dff05_0  
h11                       0.14.0                   pypi_0    pypi
h2                        4.1.0              pyhd8ed1ab_0    conda-forge
harfbuzz                  8.5.0                hfac3d4d_0    conda-forge
holidays                  0.52               pyhd8ed1ab_0    conda-forge
hpack                     4.0.0                      py_0  
httpcore                  1.0.5                    pypi_0    pypi
httptools                 0.6.1                    pypi_0    pypi
httpx                     0.27.0                   pypi_0    pypi
huggingface-hub           0.23.4                   pypi_0    pypi
hyperframe                6.0.1              pyhd3eb1b0_0  
icu                       73.2                 h59595ed_0    conda-forge
importlib_resources       6.4.0              pyhd8ed1ab_0    conda-forge
ipython                   8.26.0                   pypi_0    pypi
jedi                      0.19.1                   pypi_0    pypi
joblib                    1.4.2                    pypi_0    pypi
jsonschema                4.22.0                   pypi_0    pypi
jsonschema-specifications 2023.12.1                pypi_0    pypi
kernel-headers_linux-64   2.6.32              he073ed8_17    conda-forge
kiwisolver                1.4.5           py312h8572e83_1    conda-forge
krb5                      1.20.1               h143b758_1  
lcms2                     2.16                 hb7c19ff_0    conda-forge
ld_impl_linux-64          2.38                 h1181459_1  
lerc                      4.0.0                h27087fc_0    conda-forge
libabseil                 20230802.1      cxx17_h59595ed_0    conda-forge
libarrow                  13.0.0          he1fec18_12_cpu    conda-forge
libblas                   3.9.0           22_linux64_openblas    conda-forge
libbrotlicommon           1.1.0                hd590300_1    conda-forge
libbrotlidec              1.1.0                hd590300_1    conda-forge
libbrotlienc              1.1.0                hd590300_1    conda-forge
libcblas                  3.9.0           22_linux64_openblas    conda-forge
libcrc32c                 1.1.2                h6a678d5_0  
libcups                   2.4.2                h2d74bed_1  
libcurl                   8.7.1                h251f7ec_0  
libdeflate                1.20                 hd590300_0    conda-forge
libedit                   3.1.20230828         h5eee18b_0  
libev                     4.33                 h7f8727e_1  
libevent                  2.1.12               hdbd6064_1  
libexpat                  2.6.2                h59595ed_0    conda-forge
libffi                    3.4.4                h6a678d5_1  
libgcc-devel_linux-64     11.2.0               h1234567_1  
libgcc-ng                 14.1.0               h77fa898_0    conda-forge
libgd                     2.3.3                h119a65a_9    conda-forge
libgfortran-ng            14.1.0               h69a702a_0    conda-forge
libgfortran5              14.1.0               hc5f4f2c_0    conda-forge
libglib                   2.80.2               hf974151_0    conda-forge
libgomp                   14.1.0               h77fa898_0    conda-forge
libgoogle-cloud           2.12.0               h19a6dae_3    conda-forge
libgrpc                   1.58.2               he06187c_0    conda-forge
libhwloc                  2.11.0          default_h5622ce7_1000    conda-forge
libiconv                  1.17                 hd590300_2    conda-forge
libjpeg-turbo             3.0.0                hd590300_1    conda-forge
liblapack                 3.9.0           22_linux64_openblas    conda-forge
libnghttp2                1.57.0               h2d74bed_0  
libnl                     3.9.0                hd590300_0    conda-forge
libnsl                    2.0.1                hd590300_0    conda-forge
libopenblas               0.3.27          pthreads_h413a1c8_0    conda-forge
libpng                    1.6.43               h2797004_0    conda-forge
libprotobuf               4.24.3               hf27288f_1    conda-forge
libre2-11                 2023.09.01           h7a70373_1    conda-forge
librsvg                   2.58.1               hadf69e7_0    conda-forge
libsqlite                 3.46.0               hde9e2c9_0    conda-forge
libssh2                   1.11.0               h251f7ec_0  
libstdcxx-devel_linux-64  11.2.0               h1234567_1  
libstdcxx-ng              14.1.0               hc0a3c3a_0    conda-forge
libthrift                 0.19.0               hb90f79a_1    conda-forge
libtiff                   4.6.0                h1dd3fc0_3    conda-forge
libutf8proc               2.8.0                h166bdaf_0    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libuv                     1.44.2               h5eee18b_0  
libwebp                   1.4.0                h2c329e2_0    conda-forge
libwebp-base              1.4.0                hd590300_0    conda-forge
libxcb                    1.15                 h7f8727e_0  
libxcrypt                 4.4.36               hd590300_1    conda-forge
libxml2                   2.13.1               hfdd30dd_0  
libzlib                   1.2.13               h4ab18f5_6    conda-forge
lunarcalendar             0.0.9              pyhd3eb1b0_0  
lz4-c                     1.9.4                h6a678d5_1  
make                      4.3                  hd18ef5c_1    conda-forge
markdown-it-py            3.0.0                    pypi_0    pypi
matplotlib-base           3.9.0           py312h9201f00_0    conda-forge
matplotlib-inline         0.1.7                    pypi_0    pypi
mdurl                     0.1.2                    pypi_0    pypi
multidict                 6.0.5                    pypi_0    pypi
munkres                   1.1.4                      py_0  
ncurses                   6.4                  h6a678d5_0  
numexpr                   2.8.7           py312he7dcb8a_0  
numpy                     1.26.4          py312h2809609_0  
numpy-base                1.26.4          py312he1a6c75_0  
omegaconf                 2.3.0                    pypi_0    pypi
openfst                   1.8.3                h00ab1b0_2    conda-forge
openjdk                   11.0.13              h87a67e3_0  
openjpeg                  2.5.2                h488ebb8_0    conda-forge
openssl                   3.3.1                h4ab18f5_1    conda-forge
orc                       1.9.0                h208142c_3    conda-forge
orjson                    3.10.6                   pypi_0    pypi
packaging                 24.1            py312h06a4308_0  
pandas                    2.2.2           py312h526ad5a_0  
pango                     1.54.0               h84a9a3c_0    conda-forge
parso                     0.8.4                    pypi_0    pypi
pcre2                     10.43                hcad00b1_0    conda-forge
pexpect                   4.9.0                    pypi_0    pypi
pillow                    10.3.0          py312hdcec9eb_0    conda-forge
pip                       24.0            py312h06a4308_0  
pixman                    0.43.2               h59595ed_0    conda-forge
prompt-toolkit            3.0.47                   pypi_0    pypi
prophet                   1.1.5           py312hdb19cb5_0  
pthread-stubs             0.4               h36c2ea0_1001    conda-forge
ptyprocess                0.7.0                    pypi_0    pypi
pure-eval                 0.2.2                    pypi_0    pypi
py4j                      0.10.9.7        py312h06a4308_0  
pyarrow                   13.0.0          py312h176e3d2_12_cpu    conda-forge
pybase16384               0.3.7                    pypi_0    pypi
pycparser                 2.22               pyhd8ed1ab_0    conda-forge
pydantic                  2.8.1                    pypi_0    pypi
pydantic-core             2.20.1                   pypi_0    pypi
pydub                     0.25.1                   pypi_0    pypi
pygments                  2.18.0                   pypi_0    pypi
pymeeus                   0.5.12             pyhd8ed1ab_0    conda-forge
pyparsing                 3.1.2              pyhd8ed1ab_0    conda-forge
pyproject-hooks           1.1.0                    pypi_0    pypi
pysocks                   1.7.1           py312h06a4308_0  
pyspark                   3.4.1           py312h06a4308_0  
python                    3.12.2          hab00c5b_0_cpython    conda-forge
python-dateutil           2.9.0post0      py312h06a4308_2  
python-dotenv             1.0.1                    pypi_0    pypi
python-multipart          0.0.9                    pypi_0    pypi
python-tzdata             2024.1             pyhd8ed1ab_0    conda-forge
python_abi                3.12                    4_cp312    conda-forge
pytz                      2024.1          py312h06a4308_0  
pywrap                    0.1.0                    pypi_0    pypi
pyyaml                    6.0.1                    pypi_0    pypi
qhull                     2020.2               hdb19cb5_2  
rdma-core                 52.0                 he02047a_0    conda-forge
re2                       2023.09.01           h7f4b329_1    conda-forge
readline                  8.2                  h5eee18b_0  
referencing               0.35.1                   pypi_0    pypi
rhash                     1.4.3                hdbd6064_0  
rich                      13.7.1                   pypi_0    pypi
rpds-py                   0.18.1                   pypi_0    pypi
ruff                      0.5.0                    pypi_0    pypi
s2n                       1.3.54               h06160fa_0    conda-forge
safetensors               0.4.3                    pypi_0    pypi
scikit-learn              1.5.1                    pypi_0    pypi
scipy                     1.14.0                   pypi_0    pypi
semantic-version          2.10.0                   pypi_0    pypi
setuptools                70.2.0                   pypi_0    pypi
shellingham               1.5.4                    pypi_0    pypi
six                       1.16.0             pyhd3eb1b0_1  
snappy                    1.1.10               h6a678d5_1  
sniffio                   1.3.1                    pypi_0    pypi
sqlite                    3.45.3               h5eee18b_0  
stack-data                0.6.3                    pypi_0    pypi
stanio                    0.5.0              pyhd8ed1ab_0    conda-forge
starlette                 0.37.2                   pypi_0    pypi
sysroot_linux-64          2.12                he073ed8_17    conda-forge
tbb                       2021.8.0             hdb19cb5_0  
tbb-devel                 2021.8.0             hdb19cb5_0  
threadpoolctl             3.5.0                    pypi_0    pypi
tk                        8.6.14               h39e8969_0  
tokenizers                0.19.1                   pypi_0    pypi
tomlkit                   0.12.0                   pypi_0    pypi
toolz                     0.12.1                   pypi_0    pypi
torchaudio                2.3.1                    pypi_0    pypi
tqdm                      4.66.4          py312he106c6f_0  
traitlets                 5.14.3                   pypi_0    pypi
transformers              4.42.3                   pypi_0    pypi
tslearn                   0.6.3                    pypi_0    pypi
typer                     0.12.3                   pypi_0    pypi
tzdata                    2024a                h04d1e81_0  
ucx                       1.15.0               ha691c75_8    conda-forge
ujson                     5.10.0                   pypi_0    pypi
urllib3                   2.2.2           py312h06a4308_0  
uvicorn                   0.30.1                   pypi_0    pypi
uvloop                    0.19.0                   pypi_0    pypi
vector-quantize-pytorch   1.14.45                  pypi_0    pypi
vocos                     0.1.0                    pypi_0    pypi
watchfiles                0.22.0                   pypi_0    pypi
wcwidth                   0.2.13                   pypi_0    pypi
websockets                11.0.3                   pypi_0    pypi
wheel                     0.43.0          py312h06a4308_0  
xorg-fixesproto           5.0               h7f98852_1002    conda-forge
xorg-inputproto           2.3.2             h7f98852_1002    conda-forge
xorg-kbproto              1.0.7             h7f98852_1002    conda-forge
xorg-libice               1.1.1                hd590300_0    conda-forge
xorg-libsm                1.2.4                h7391055_0    conda-forge
xorg-libx11               1.8.9                h8ee46fc_0    conda-forge
xorg-libxau               1.0.11               hd590300_0    conda-forge
xorg-libxdmcp             1.1.3                h7f98852_0    conda-forge
xorg-libxext              1.3.4                h0b41bf4_2    conda-forge
xorg-libxfixes            5.0.3             h7f98852_1004    conda-forge
xorg-libxi                1.7.10               h7f98852_0    conda-forge
xorg-libxrender           0.9.11               hd590300_0    conda-forge
xorg-libxt                1.3.0                hd590300_1    conda-forge
xorg-libxtst              1.2.3             h7f98852_1002    conda-forge
xorg-recordproto          1.14.2            h7f98852_1002    conda-forge
xorg-renderproto          0.11.1            h7f98852_1002    conda-forge
xorg-xextproto            7.3.0             h0b41bf4_1003    conda-forge
xorg-xproto               7.0.31            h27cfd23_1007  
xz                        5.4.6                h5eee18b_1  
yarl                      1.9.4                    pypi_0    pypi
zipp                      3.19.2             pyhd8ed1ab_0    conda-forge
zlib                      1.2.13               h4ab18f5_6    conda-forge
zstandard                 0.22.0          py312h2c38b39_0  
zstd                      1.5.5                hc292b87_2  
(ChatTTS) [mully@MullyPC ChatTTS]$ 
MullyCap2004 commented 1 month ago

The solution was to use conda-forge and the following command: conda install pynini==2.1.5.

kylebgorman commented 1 month ago

Yes, you apparently do not have an appropriate version of OpenFst to build against. But if you're on a platform supported by Conda, why not just use the precompiled version? BTW, we are now on version 2.1.6 and most users will want that one instead.