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 issue on Python 3.9 with option [ko] due to natto-py bug #11218

Closed
loctimize opened this issue Jul 26, 2022 · 2 comments · Fixed by #11222
Closed

Installation issue on Python 3.9 with option [ko] due to natto-py bug #11218

loctimize opened this issue Jul 26, 2022 · 2 comments · Fixed by #11222
Labels
install Installation issues lang / ko Korean language data and models third-party Third-party packages and services

Comments

@loctimize
Copy link

loctimize commented Jul 26, 2022

How to reproduce the behaviour

When running pip install -U 'spacy[transformers,lookups,apple,ja,ko,th]' the installation exits with the error:

Collecting natto-py==0.9.0
  Using cached natto-py-0.9.0.tar.gz (35 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in natto-py setup command: use_2to3 is invalid.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

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

It seems to be a known issue that has been fixed in natty-py v. 1.0.0, see: buruzaemon/natto-py#119.
Maybe it can be fixed by changing the required version of natto-py in setup.cfg in line 117 to:

ko =
    natto-py==1.0.0

I tested it on the current master branch and it worked when installing wit pip install -U .'[transformers,lookups,apple,ja,ko,th]'

Environment

  • Operating System: MacOS 12.5
  • Python Version Used: 3.9.13
  • spaCy Version Used: 3.4.0
  • Environment Information: MacBook Pro, Apple M1 Max, 64 GB RAM
@polm polm added lang / ko Korean language data and models third-party Third-party packages and services labels Jul 27, 2022
@polm polm changed the title Installation issue on Python 3.9 with option [ko] due to natto-py bug [BUG, INSTALL] Installation issue on Python 3.9 with option [ko] due to natto-py bug Jul 27, 2022
@polm
Copy link
Contributor

polm commented Jul 27, 2022

Thanks for the report, that does seem to be an issue - we'll work on fixing it.

In the meantime, for anyone else who runs into this error, you can fix it by manually installing natto-py with pip install -U natto-py.

@polm polm added the install Installation issues label Jul 27, 2022
@adrianeboyd adrianeboyd linked a pull request Jul 27, 2022 that will close this issue
3 tasks
@github-actions
Copy link
Contributor

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
install Installation issues lang / ko Korean language data and models third-party Third-party packages and services
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants