Issue in make OPENFST=/path/to/your/openfst
omprakashsonie opened this issue · 5 comments
I am using pytorch 1.5 and using python setup_1_0.py install in the ctc_crf/Makefile.
/home/anaconda3/envs/torch_w2l/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/expanding_array.h:23:7: note: in call to ‘torch::ExpandingArray<2ul, double>& torch::ExpandingArray<2ul, double>::operator=(const torch::ExpandingArray<2ul, double>&)’
class ExpandingArray {
^
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/anaconda3/envs/torch_w2l/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1395, in _run_ninja_build
subprocess.run(
File "/home/anaconda3/envs/torch_w2l/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred::
:
_write_ninja_file_and_compile_objects(
File "/home/anaconda3/envs/torch_w2l/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1135, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/home/anaconda3/envs/torch_w2l/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1413, in _run_ninja_build
raise RuntimeError(message)
RuntimeError: Error compiling objects for extension
Makefile:22: recipe for target 'CTCCRF' failed
make: *** [CTCCRF] Error 1
Can you pls suggest next steps?
This may have something to do with the pytorch version.
a similar issue
Make sure to have openfst installed and set the path correctly.
Hi I also encountered this issue recently. Here is my solution in Step3: Install CTC-CRF module
make OPENFST=<path to openfst> # note the key point is that this should be an ABSOLUTE PATH instead of relative path
I think it would be better if specify this explicitly in the file installing-cat-tutorial.md
, right?