explosion / spaCy

💫 Industrial-strength Natural Language Processing (NLP) in Python
https://spacy.io
MIT License
29.82k stars 4.37k forks source link

spacy ray command missing when run via entrypoint #7732

Closed kinghuang closed 3 years ago

kinghuang commented 3 years ago

How to reproduce the behaviour

I installed the spacy-ray module, and expected to find a spacy ray command. But, it seems the ray command isn't available when the spacy CLI is run through its entrypoint script versus calling the module via the python CLI.

spacy entrypoint:

root@271ba8192ed4:/project/ner# spacy ray --help
Usage: spacy [OPTIONS] COMMAND [ARGS]...
Try 'spacy --help' for help.

Error: No such command 'ray'.

spacy module via python:

root@271ba8192ed4:/project/ner# python -m spacy ray --help
Usage: python -m spacy ray [OPTIONS] COMMAND [ARGS]...

  CLI for parallel and distributed computing via Ray. See the Ray
  documentation for details: https://ray.io.

Options:
  --help  Show this message and exit.

Commands:
  train  Train a spaCy pipeline using Ray for parallel training.

Your Environment

svlandeg commented 3 years ago

Thanks for the detailed report! I could replicate this, and PR #7799 should fix this.

github-actions[bot] commented 2 years ago

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.