Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails for python 3.10 #6383

Closed
LilithHafner opened this issue Apr 6, 2023 · 9 comments
Closed

Installation fails for python 3.10 #6383

LilithHafner opened this issue Apr 6, 2023 · 9 comments
Labels
bug Something isn't working MacOS stale

Comments

@LilithHafner
Copy link

Executing python3.10 -m pip install mecab-python3 produces the error

Collecting mecab-python3
  Using cached mecab-python3-1.0.6.tar.gz (77 kB)
  Preparing metadata (setup.py) ... done
Installing collected packages: mecab-python3
  DEPRECATION: mecab-python3 is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for mecab-python3 ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for mecab-python3 did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
        warnings.warn(
      WARNING: The wheel package is not available.
      WARNING: The wheel package is not available.
      WARNING: The wheel package is not available.
      WARNING: The wheel package is not available.
      running install
      /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      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
      copying src/MeCab/__init__.py -> build/lib.macosx-10.9-universal2-cpython-310/MeCab
      copying src/MeCab/cli.py -> build/lib.macosx-10.9-universal2-cpython-310/MeCab
      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: legacy-install-failure

× Encountered error while trying to install package.
╰─> mecab-python3

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

MacOS Ventural 13.3, M2 processor.

@LilithHafner LilithHafner added the bug Something isn't working label Apr 6, 2023
@LilithHafner
Copy link
Author

LilithHafner commented Apr 6, 2023

Related: #3976

@artbataev
Copy link
Collaborator

@LilithHafner you need to install mecab using Homebrew (brew install mecab). After this all should work. See #6377

@titu1994 titu1994 added the MacOS label Apr 6, 2023
@LilithHafner
Copy link
Author

Lovely, that works. Thank you.

Ideally, it would be possible to install this package with pip alone but if that is not possible, a hint such as the one you gave here would be much preferable to the current error "No such file or directory: 'mecab-config'"

@titu1994
Copy link
Collaborator

titu1994 commented Apr 6, 2023

Agreed. We're looking into if we can safely update NeMo requirements to do this automatically

@github-actions
Copy link
Contributor

github-actions bot commented May 7, 2023

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale label May 7, 2023
@LilithHafner
Copy link
Author

still broken

@titu1994
Copy link
Collaborator

titu1994 commented May 8, 2023

This is a mac specific issue sadly there is no way to update pip to install something from homebrew for Mac

@github-actions github-actions bot removed the stale label May 8, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2023

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Jun 7, 2023
@github-actions
Copy link
Contributor

This issue was closed because it has been inactive for 7 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working MacOS stale
Projects
None yet
Development

No branches or pull requests

3 participants