infinity
infinity copied to clipboard
Running infinity cli with click >8.2.1 fails with TypeError: Secondary flag is not valid for non-boolean flag
System Info
As seen in #649
Workaround: Pin click to <8.3.0
Full error message
infinity_emb v2 --help /home/akk/micromamba/envs/infinity077/lib/python3.12/site-packages/torch/onnx/_internal/registration.py:159: OnnxExporterWarning: Symbolic function 'aten::scaled_dot_product_attention' already registered for opset 14. Replacing the existing function with new function. This is unexpected. Please report it on https://github.com/pytorch/pytorch/issues. warnings.warn( ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ /home/akk/micromamba/envs/infinity077/bin/infinity_emb:7 inInformation
- [ ] Docker + cli
- [x] pip + cli
- [ ] pip + usage of Python interface
Tasks
- [x] An officially supported CLI command
- [ ] My own modifications
Reproduction
Install infinity with click 8.3.0
infinity v2 --help
Should we bump the deps?
Pin them to <=8.1.8?
I think you are right, bumping typer helps.
Typer 0.12.5 with click==8.3.0 raises this error, when bumping typer to the latest version(0.20.0), the error is gone.