Trying to install python’s library pynini with either regular pip install or even building, and the end result is always a long error message of which I show only the end :
extensions/_pywrapfst.cpp:75924:54: error: ‘kDefaultSeed’ is not a member of ‘fst::script’
75924 | __pyx_t_4 = __Pyx_PyInt_From_uint64_t(fst::script::kDefaultSeed); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4094, __pyx_L1_error)
| ^~~~~~~~~~~~
extensions/_pywrapfst.cpp:75974:30: error: ‘kDefaultSeed’ is not a member of ‘fst::script’
75974 | __pyx_k__35 = fst::script::kDefaultSeed;
| ^~~~~~~~~~~~
extensions/_pywrapfst.cpp:75993:54: error: ‘kDefaultSeed’ is not a member of ‘fst::script’
75993 | __pyx_t_2 = __Pyx_PyInt_From_uint64_t(fst::script::kDefaultSeed); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4145, __pyx_L1_error)
| ^~~~~~~~~~~~
error: command ‘/usr/bin/aarch64-linux-gnu-gcc’ 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
Failed to build pynini
ERROR: Could not build wheels for pynini, which is required to install pyproject.toml-based project
As apparently that library depends on openfst, I tried with versions 1.8.1 and 1.8.3 with identical results
I did build the versions 1.81, 1.82, and 1.83 and same result:
59 | void CompileInternal(FstCompileArgs *args) {
| ^~~~~~~~~~~~~~~
/usr/local/include/fst/script/compile.h:59:6: note: template argument deduction/substitution failed:
extensions/_pywrapfst.cpp:59920:47: note: candidate expects 1 argument, 11 provided
59920 | __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);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/fst/script/fstscript.h:50,
from extensions/_pywrapfst.cpp:1291:
/usr/local/include/fst/script/compile.h:88: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, bool)’
88 | std::unique_ptr<FstClass> CompileInternal(
| ^~~~~~~~~~~~~~~
/usr/local/include/fst/script/compile.h:88:27: note: candidate expects 12 arguments, 11 provided
extensions/_pywrapfst.cpp: In function ‘int __pyx_pymod_exec__pywrapfst(PyObject*)’:
extensions/_pywrapfst.cpp:75895:30: error: ‘kDefaultSeed’ is not a member of ‘fst::script’
75895 | __pyx_k__33 = fst::script::kDefaultSeed;
| ^~~~~~~~~~~~
extensions/_pywrapfst.cpp:75924:54: error: ‘kDefaultSeed’ is not a member of ‘fst::script’
75924 | __pyx_t_4 = __Pyx_PyInt_From_uint64_t(fst::script::kDefaultSeed); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4094, __pyx_L1_error)
| ^~~~~~~~~~~~
extensions/_pywrapfst.cpp:75974:30: error: ‘kDefaultSeed’ is not a member of ‘fst::script’
75974 | __pyx_k__35 = fst::script::kDefaultSeed;
| ^~~~~~~~~~~~
extensions/_pywrapfst.cpp:75993:54: error: ‘kDefaultSeed’ is not a member of ‘fst::script’
75993 | __pyx_t_2 = __Pyx_PyInt_From_uint64_t(fst::script::kDefaultSeed); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4145, __pyx_L1_error)
| ^~~~~~~~~~~~
error: command '/usr/bin/aarch64-linux-gnu-gcc' 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
Failed to build pynini
ERROR: Could not build wheels for pynini, which is required to install pyproject.toml-based projects