← All tasks
pythonexplosion/spaCy #11218Verified, not scored yet

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

envgap__explosion__spaCy-11218

01 / FAILURE SIGNATURE

As reported upstream

When running `pip install -U 'spacy[transformers,lookups,apple,ja,ko,th]'` the installation exits with the error:
Not scored yet.
  • The failure reproduces in a clean container and the known fix makes the project run; it has not been scored yet.

02 / ENVIRONMENT RECIPE

Base commit
360a702ecdf468bcdc7e14906d09cdfe1860e764
Manifest
setup.cfg
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

explosion/spaCy #11218 · read the original issue
## 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: https://github.com/buruzaemon/natto-py/issues/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

<!-- Include details of your environment. If you're using spaCy 1.7+, you can also type `python -m spacy info --markdown` and copy-paste the result here.-->

* 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

Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]