-
I try to install install_beamsearch_decoders.sh using command copying bindings/python/flashlight/lib/text/decoder/kenlm.py -> build/lib.linux-x86_64-cpython-310/flashlight/lib/text/decoder
running build_ext
Traceback (most recent call last):
File "/hdd/evaluation/kenlm/text/setup.py", line 100, in get_kenlm_paths
import kenlm
ModuleNotFoundError: No module named 'kenlm'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/hdd/evaluation/kenlm/text/setup.py", line 251, in <module>
main()
File "/hdd/evaluation/kenlm/text/setup.py", line 214, in main
setup(
File "/opt/conda/lib/python3.10/site-packages/setuptools/__init__.py", line 104, in setup
return distutils.core.setup(**attrs)
File "/opt/conda/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 184, in setup
return run_commands(dist)
File "/opt/conda/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
dist.run_commands()
File "/opt/conda/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/opt/conda/lib/python3.10/site-packages/setuptools/dist.py", line 967, in run_command
super().run_command(command)
File "/opt/conda/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/opt/conda/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 368, in run
self.run_command("build")
File "/opt/conda/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/opt/conda/lib/python3.10/site-packages/setuptools/dist.py", line 967, in run_command
super().run_command(command)
File "/opt/conda/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/opt/conda/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 132, in run
self.run_command(cmd_name)
File "/opt/conda/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/opt/conda/lib/python3.10/site-packages/setuptools/dist.py", line 967, in run_command
super().run_command(command)
File "/opt/conda/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/hdd/evaluation/kenlm/text/setup.py", line 137, in run
self.build_extensions(ext)
File "/hdd/evaluation/kenlm/text/setup.py", line 147, in build_extensions
get_kenlm_paths(self.build_temp) if use_kenlm else (None, None)
File "/hdd/evaluation/kenlm/text/setup.py", line 102, in get_kenlm_paths
raise RuntimeError(
RuntimeError: ('KenLM is not installed or failed to import. ', 'Install with `pip install git+https://github.com/kpu/kenlm`. To build ', 'Flashlight Text bindings without KenLM support, set the environment ', 'variable USE_KENLM=0.')
WARNING: Requirement 'dist/*.whl' looks like a filename, but the file does not exist
ERROR: *.whl is not a valid wheel filename. |
Beta Was this translation helpful? Give feedback.
Answered by
mehadi92
Sep 19, 2024
Replies: 1 comment
-
I was using |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mehadi92
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was using
kenlm
as my directory name. this why I face this issue