Skip to content

Flashlight-text python binding installation problem #94

@mukherjeesougata-eros

Description

@mukherjeesougata-eros

Bug Description

I am encountering the following error:-

    error: subprocess-exited-with-error
    
    × python setup.py develop did not run successfully.
    │ exit code: 1
    ╰─> [190 lines of output]
        running develop
        /home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/setuptools/_distutils/cmd.py:90: DevelopDeprecationWarning: develop command is deprecated.
        !!
        
                ********************************************************************************
                Please avoid running ``setup.py`` and ``develop``.
                Instead, use standards-based tools like pip or uv.
        
                By 2025-Oct-31, you need to update your project and remove deprecated calls
                or your builds will no longer be supported.
        
                See https://github.com/pypa/setuptools/issues/917 for details.
                ********************************************************************************
        
        !!
          self.initialize_options()
        Obtaining file:///data0/Senior-Engineer-audio/ASR/Fairseqv0.12.2/text
          Installing build dependencies: started
          Installing build dependencies: finished with status 'done'
          Checking if build backend supports build_editable: started
          Checking if build backend supports build_editable: finished with status 'done'
          Getting requirements to build editable: started
          Getting requirements to build editable: finished with status 'done'
          Preparing editable metadata (pyproject.toml): started
          Preparing editable metadata (pyproject.toml): finished with status 'done'
        Building wheels for collected packages: flashlight-text
          Building editable for flashlight-text (pyproject.toml): started
          Building editable for flashlight-text (pyproject.toml): finished with status 'error'
          error: subprocess-exited-with-error
        
          × Building editable for flashlight-text (pyproject.toml) did not run successfully.
          │ exit code: 1
          ╰─> [100 lines of output]
              running editable_wheel
              creating /tmp/pip-wheel-prb_plzm/.tmp-owoh5s4i/flashlight_text.egg-info
              writing /tmp/pip-wheel-prb_plzm/.tmp-owoh5s4i/flashlight_text.egg-info/PKG-INFO
              writing dependency_links to /tmp/pip-wheel-prb_plzm/.tmp-owoh5s4i/flashlight_text.egg-info/dependency_links.txt
              writing top-level names to /tmp/pip-wheel-prb_plzm/.tmp-owoh5s4i/flashlight_text.egg-info/top_level.txt
              writing manifest file '/tmp/pip-wheel-prb_plzm/.tmp-owoh5s4i/flashlight_text.egg-info/SOURCES.txt'
              reading manifest file '/tmp/pip-wheel-prb_plzm/.tmp-owoh5s4i/flashlight_text.egg-info/SOURCES.txt'
              reading manifest template 'MANIFEST.in'
              warning: no previously-included files matching '*.o' found anywhere in distribution
              warning: no previously-included files matching '*.so' found anywhere in distribution
              warning: no previously-included files matching '*.dylib' found anywhere in distribution
              warning: no previously-included files matching '*.a' found anywhere in distribution
              warning: no previously-included files matching '.git' found anywhere in distribution
              warning: no previously-included files matching '*.pyc' found anywhere in distribution
              warning: no previously-included files matching '*.swp' found anywhere in distribution
              warning: no files found matching 'requirements.txt'
              adding license file 'LICENSE'
              writing manifest file '/tmp/pip-wheel-prb_plzm/.tmp-owoh5s4i/flashlight_text.egg-info/SOURCES.txt'
              creating '/tmp/pip-wheel-prb_plzm/.tmp-owoh5s4i/flashlight_text-0.0.8+d7edbcff.d20250708.dist-info'
              creating /tmp/pip-wheel-prb_plzm/.tmp-owoh5s4i/flashlight_text-0.0.8+d7edbcff.d20250708.dist-info/WHEEL
              running build_py
              running build_ext
              <string>:93: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior.
              Traceback (most recent call last):
                File "<string>", line 100, in get_kenlm_paths
              ModuleNotFoundError: No module named 'kenlm'
        
              During handling of the above exception, another exception occurred:
        
              Traceback (most recent call last):
                File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
                  main()
                  ~~~~^^
                File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
                  json_out['return_val'] = hook(**hook_input['kwargs'])
                                           ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
                File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 273, in build_editable
                  return hook(wheel_directory, config_settings, metadata_directory)
                File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 468, in build_editable
                  return self._build_with_temp_dir(
                         ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      cmd, ".whl", wheel_directory, config_settings
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 404, in _build_with_temp_dir
                  self.run_setup()
                  ~~~~~~~~~~~~~~^^
                File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 512, in run_setup
                  super().run_setup(setup_script=setup_script)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 317, in run_setup
                  exec(code, locals())
                  ~~~~^^^^^^^^^^^^^^^^
                File "<string>", line 251, in <module>
                File "<string>", line 214, in main
                File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/__init__.py", line 115, in setup
                  return distutils.core.setup(**attrs)
                         ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
                File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/_distutils/core.py", line 186, in setup
                  return run_commands(dist)
                File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
                  dist.run_commands()
                  ~~~~~~~~~~~~~~~~~^^
                File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
                  self.run_command(cmd)
                  ~~~~~~~~~~~~~~~~^^^^^
                File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/dist.py", line 1102, in run_command
                  super().run_command(command)
                  ~~~~~~~~~~~~~~~~~~~^^^^^^^^^
                File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
                  cmd_obj.run()
                  ~~~~~~~~~~~^^
                File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/command/editable_wheel.py", line 139, in run
                  self._create_wheel_file(bdist_wheel)
                  ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/command/editable_wheel.py", line 349, in _create_wheel_file
                  files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
                                   ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/command/editable_wheel.py", line 272, in _run_build_commands
                  self._run_build_subcommands()
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/command/editable_wheel.py", line 299, in _run_build_subcommands
                  self.run_command(name)
                  ~~~~~~~~~~~~~~~~^^^^^^
                File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/_distutils/cmd.py", line 357, in run_command
                  self.distribution.run_command(command)
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
                File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/dist.py", line 1102, in run_command
                  super().run_command(command)
                  ~~~~~~~~~~~~~~~~~~~^^^^^^^^^
                File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
                  cmd_obj.run()
                  ~~~~~~~~~~~^^
                File "<string>", line 137, in run
                File "<string>", line 147, in build_extensions
                File "<string>", line 102, in get_kenlm_paths
              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.')
              An error occurred when building editable wheel for flashlight-text.
              See debugging tips in: https://setuptools.pypa.io/en/latest/userguide/development_mode.html#debugging-tips
              [end of output]
        
          note: This error originates from a subprocess, and is likely not a problem with pip.
          ERROR: Failed building editable for flashlight-text
        Failed to build flashlight-text
        ERROR: Could not build wheels for flashlight-text, which is required to install pyproject.toml-based projects
        
        [notice] A new release of pip is available: 24.0 -> 25.1.1
        [notice] To update, run: pip install --upgrade pip
        Traceback (most recent call last):
          File "<string>", line 2, in <module>
            exec(compile('''
            ~~~~^^^^^^^^^^^^
            # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            ...<31 lines>...
            exec(compile(setup_py_code, filename, "exec"))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            ''' % ('/data0/Senior-Engineer-audio/ASR/Fairseqv0.12.2/text/setup.py',), "<pip-setuptools-caller>", "exec"))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "<pip-setuptools-caller>", line 34, in <module>
          File "/data0/Senior-Engineer-audio/ASR/Fairseqv0.12.2/text/setup.py", line 251, in <module>
            main()
            ~~~~^^
          File "/data0/Senior-Engineer-audio/ASR/Fairseqv0.12.2/text/setup.py", line 214, in main
            setup(
            ~~~~~^
                name="flashlight-text",
                ^^^^^^^^^^^^^^^^^^^^^^^
            ...<30 lines>...
                ],
                ^^
            )
            ^
          File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/setuptools/__init__.py", line 115, in setup
            return distutils.core.setup(**attrs)
                   ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
          File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/setuptools/_distutils/core.py", line 186, in setup
            return run_commands(dist)
          File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
            dist.run_commands()
            ~~~~~~~~~~~~~~~~~^^
          File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
            self.run_command(cmd)
            ~~~~~~~~~~~~~~~~^^^^^
          File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/setuptools/dist.py", line 1102, in run_command
            super().run_command(command)
            ~~~~~~~~~~~~~~~~~~~^^^^^^^^^
          File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
            cmd_obj.run()
            ~~~~~~~~~~~^^
          File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/setuptools/command/develop.py", line 39, in run
            subprocess.check_call(cmd)
            ~~~~~~~~~~~~~~~~~~~~~^^^^^
          File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/subprocess.py", line 421, in check_call
            raise CalledProcessError(retcode, cmd)
        subprocess.CalledProcessError: Command '['/home/ubuntu/anaconda3/envs/fairseq/bin/python3.13', '-m', 'pip', 'install', '-e', '.', '--use-pep517', '--no-deps']' returned non-zero exit status 1.
        [end of output]
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [190 lines of output]
    running develop
    /home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/setuptools/_distutils/cmd.py:90: DevelopDeprecationWarning: develop command is deprecated.
    !!
    
            ********************************************************************************
            Please avoid running ``setup.py`` and ``develop``.
            Instead, use standards-based tools like pip or uv.
    
            By 2025-Oct-31, you need to update your project and remove deprecated calls
            or your builds will no longer be supported.
    
            See https://github.com/pypa/setuptools/issues/917 for details.
            ********************************************************************************
    
    !!
      self.initialize_options()
    Obtaining file:///data0/Senior-Engineer-audio/ASR/Fairseqv0.12.2/text
      Installing build dependencies: started
      Installing build dependencies: finished with status 'done'
      Checking if build backend supports build_editable: started
      Checking if build backend supports build_editable: finished with status 'done'
      Getting requirements to build editable: started
      Getting requirements to build editable: finished with status 'done'
      Preparing editable metadata (pyproject.toml): started
      Preparing editable metadata (pyproject.toml): finished with status 'done'
    Building wheels for collected packages: flashlight-text
      Building editable for flashlight-text (pyproject.toml): started
      Building editable for flashlight-text (pyproject.toml): finished with status 'error'
      error: subprocess-exited-with-error
    
      × Building editable for flashlight-text (pyproject.toml) did not run successfully.
      │ exit code: 1
      ╰─> [100 lines of output]
          running editable_wheel
          creating /tmp/pip-wheel-prb_plzm/.tmp-owoh5s4i/flashlight_text.egg-info
          writing /tmp/pip-wheel-prb_plzm/.tmp-owoh5s4i/flashlight_text.egg-info/PKG-INFO
          writing dependency_links to /tmp/pip-wheel-prb_plzm/.tmp-owoh5s4i/flashlight_text.egg-info/dependency_links.txt
          writing top-level names to /tmp/pip-wheel-prb_plzm/.tmp-owoh5s4i/flashlight_text.egg-info/top_level.txt
          writing manifest file '/tmp/pip-wheel-prb_plzm/.tmp-owoh5s4i/flashlight_text.egg-info/SOURCES.txt'
          reading manifest file '/tmp/pip-wheel-prb_plzm/.tmp-owoh5s4i/flashlight_text.egg-info/SOURCES.txt'
          reading manifest template 'MANIFEST.in'
          warning: no previously-included files matching '*.o' found anywhere in distribution
          warning: no previously-included files matching '*.so' found anywhere in distribution
          warning: no previously-included files matching '*.dylib' found anywhere in distribution
          warning: no previously-included files matching '*.a' found anywhere in distribution
          warning: no previously-included files matching '.git' found anywhere in distribution
          warning: no previously-included files matching '*.pyc' found anywhere in distribution
          warning: no previously-included files matching '*.swp' found anywhere in distribution
          warning: no files found matching 'requirements.txt'
          adding license file 'LICENSE'
          writing manifest file '/tmp/pip-wheel-prb_plzm/.tmp-owoh5s4i/flashlight_text.egg-info/SOURCES.txt'
          creating '/tmp/pip-wheel-prb_plzm/.tmp-owoh5s4i/flashlight_text-0.0.8+d7edbcff.d20250708.dist-info'
          creating /tmp/pip-wheel-prb_plzm/.tmp-owoh5s4i/flashlight_text-0.0.8+d7edbcff.d20250708.dist-info/WHEEL
          running build_py
          running build_ext
          <string>:93: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior.
          Traceback (most recent call last):
            File "<string>", line 100, in get_kenlm_paths
          ModuleNotFoundError: No module named 'kenlm'
    
          During handling of the above exception, another exception occurred:
    
          Traceback (most recent call last):
            File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
              main()
              ~~~~^^
            File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
              json_out['return_val'] = hook(**hook_input['kwargs'])
                                       ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
            File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 273, in build_editable
              return hook(wheel_directory, config_settings, metadata_directory)
            File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 468, in build_editable
              return self._build_with_temp_dir(
                     ~~~~~~~~~~~~~~~~~~~~~~~~~^
                  cmd, ".whl", wheel_directory, config_settings
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              )
              ^
            File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 404, in _build_with_temp_dir
              self.run_setup()
              ~~~~~~~~~~~~~~^^
            File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 512, in run_setup
              super().run_setup(setup_script=setup_script)
              ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
            File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 317, in run_setup
              exec(code, locals())
              ~~~~^^^^^^^^^^^^^^^^
            File "<string>", line 251, in <module>
            File "<string>", line 214, in main
            File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/__init__.py", line 115, in setup
              return distutils.core.setup(**attrs)
                     ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
            File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/_distutils/core.py", line 186, in setup
              return run_commands(dist)
            File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
              dist.run_commands()
              ~~~~~~~~~~~~~~~~~^^
            File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
              self.run_command(cmd)
              ~~~~~~~~~~~~~~~~^^^^^
            File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/dist.py", line 1102, in run_command
              super().run_command(command)
              ~~~~~~~~~~~~~~~~~~~^^^^^^^^^
            File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
              cmd_obj.run()
              ~~~~~~~~~~~^^
            File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/command/editable_wheel.py", line 139, in run
              self._create_wheel_file(bdist_wheel)
              ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
            File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/command/editable_wheel.py", line 349, in _create_wheel_file
              files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
                               ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/command/editable_wheel.py", line 272, in _run_build_commands
              self._run_build_subcommands()
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
            File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/command/editable_wheel.py", line 299, in _run_build_subcommands
              self.run_command(name)
              ~~~~~~~~~~~~~~~~^^^^^^
            File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/_distutils/cmd.py", line 357, in run_command
              self.distribution.run_command(command)
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
            File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/dist.py", line 1102, in run_command
              super().run_command(command)
              ~~~~~~~~~~~~~~~~~~~^^^^^^^^^
            File "/tmp/pip-build-env-o7opu8ow/overlay/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
              cmd_obj.run()
              ~~~~~~~~~~~^^
            File "<string>", line 137, in run
            File "<string>", line 147, in build_extensions
            File "<string>", line 102, in get_kenlm_paths
          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.')
          An error occurred when building editable wheel for flashlight-text.
          See debugging tips in: https://setuptools.pypa.io/en/latest/userguide/development_mode.html#debugging-tips
          [end of output]
    
      note: This error originates from a subprocess, and is likely not a problem with pip.
      ERROR: Failed building editable for flashlight-text
    Failed to build flashlight-text
    ERROR: Could not build wheels for flashlight-text, which is required to install pyproject.toml-based projects
    
    [notice] A new release of pip is available: 24.0 -> 25.1.1
    [notice] To update, run: pip install --upgrade pip
    Traceback (most recent call last):
      File "<string>", line 2, in <module>
        exec(compile('''
        ~~~~^^^^^^^^^^^^
        # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        ...<31 lines>...
        exec(compile(setup_py_code, filename, "exec"))
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        ''' % ('/data0/Senior-Engineer-audio/ASR/Fairseqv0.12.2/text/setup.py',), "<pip-setuptools-caller>", "exec"))
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "<pip-setuptools-caller>", line 34, in <module>
      File "/data0/Senior-Engineer-audio/ASR/Fairseqv0.12.2/text/setup.py", line 251, in <module>
        main()
        ~~~~^^
      File "/data0/Senior-Engineer-audio/ASR/Fairseqv0.12.2/text/setup.py", line 214, in main
        setup(
        ~~~~~^
            name="flashlight-text",
            ^^^^^^^^^^^^^^^^^^^^^^^
        ...<30 lines>...
            ],
            ^^
        )
        ^
      File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/setuptools/__init__.py", line 115, in setup
        return distutils.core.setup(**attrs)
               ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
      File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/setuptools/_distutils/core.py", line 186, in setup
        return run_commands(dist)
      File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
        dist.run_commands()
        ~~~~~~~~~~~~~~~~~^^
      File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
        self.run_command(cmd)
        ~~~~~~~~~~~~~~~~^^^^^
      File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/setuptools/dist.py", line 1102, in run_command
        super().run_command(command)
        ~~~~~~~~~~~~~~~~~~~^^^^^^^^^
      File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
        cmd_obj.run()
        ~~~~~~~~~~~^^
      File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/site-packages/setuptools/command/develop.py", line 39, in run
        subprocess.check_call(cmd)
        ~~~~~~~~~~~~~~~~~~~~~^^^^^
      File "/home/ubuntu/anaconda3/envs/fairseq/lib/python3.13/subprocess.py", line 421, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['/home/ubuntu/anaconda3/envs/fairseq/bin/python3.13', '-m', 'pip', 'install', '-e', '.', '--use-pep517', '--no-deps']' returned non-zero exit status 1.
    [end of output]

Reproduction Steps

Execute the following:-

  1. Create a conda environment
  2. Activate the conda environment
  3. Install kenlm using these set of commands.
  4. Run pip install -e . command from the root.

Platform and Hardware

Ubuntu 24.04.2 LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions