Repository: Marker-Inc-Korea/AutoRAG
Issue: [HotFix] build failed mecab-ko
Root cause: Environment Incompatibility

build failed mecab-ko
sacrebleu for Korean need mecab-ko in the library(sacrebleu[ko]).



```
Requirement already satisfied: lxml in ./.venv/lib/python3.10/site-packages (from sacrebleu[ko]) (5.2.2)
Collecting mecab-ko<=1.0.1,>=1.0.0 (from sacrebleu[ko])
  Using cached mecab-ko-1.0.1.tar.gz (75 kB)
  Preparing metadata (setup.py) ... done
Collecting mecab-ko-dic<2.0,>=1.0 (from sacrebleu[ko])
  Using cached mecab_ko_dic-1.0.0-py3-none-any.whl
Building wheels for collected packages: mecab-ko
  Building wheel for mecab-ko (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [41 lines of output]
      /Users/eastsidegunn/PycharmProjects/AutoRAG/.venv/lib/python3.10/site-packages/setuptools/__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
      !!
      
              ********************************************************************************
              Requirements should be satisfied by a PEP 517 installer.
              If you are using pip, you can try `pip install --use-pep517`.
              ********************************************************************************
      
      !!
        dist.fetch_build_eggs(dist.setup_requires)
      [07/03/24 16:48:11] WARNING  toml section missing        pyproject_reading.py:42
                                   'pyproject.toml does not
                                   contain a
                                   tool.setuptools_scm
                                   section'
                                   Traceback (most recent call
                                   last):
                                     File
                                   "/private/var/folders/vd/3f
                                   pptnmx23v7t_frbxcgkpvr0000g
                                   n/T/pip-install-8f7hi15y/me
                                   cab-ko_b0fa6aabfb144cd5ba42
                                   5cc95cd9c123/.eggs/setuptoo
                                   ls_scm-8.1.0-py3.10.egg/set
                                   uptools_scm/_integration/py
                                   project_reading.py", line
                                   36, in read_pyproject
                                       section =
                                   defn.get("tool",
                                   {})[tool_name]
                                   KeyError: 'setuptools_scm'
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-10.9-universal2-cpython-310
      creating build/lib.macosx-10.9-universal2-cpython-310/mecab_ko
      copying src/mecab_ko/__init__.py -> build/lib.macosx-10.9-universal2-cpython-310/mecab_ko
      copying src/mecab_ko/cli.py -> build/lib.macosx-10.9-universal2-cpython-310/mecab_ko
      running build_ext
      error: [Errno 2] No such file or directory: 'mecab-config'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for mecab-ko
  Running setup.py clean for mecab-ko
Failed to build mecab-ko
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (mecab-ko)
```