zhudotexe / kani

kani (カニ) is a highly hackable microframework for chat-based language models with tool use/function calling. (NLP-OSS @ EMNLP 2023)
https://kani.readthedocs.io
MIT License
558 stars 30 forks source link

[Feature Request] Suggest upgrading Python in error message when installing extra #8

Open ahwang16 opened 1 year ago

ahwang16 commented 1 year ago

I ran into a little bit of trouble trying to run pip install kani[openai] because I was running Python 3.7 instead of 3.10+. I received the error message "kani 0.0.0 does not provide the extra 'openai'" which wasn't very helpful. If possible, reminding the user that Kani requires Python 3.10+ in this message might be helpful for future installations.

liamdugan commented 1 year ago

Good idea. I'll look into this

zhudotexe commented 9 months ago

This particular error message was because of a test deploy to pypi without any extras that didn't specify any version constraints; I deleted v0.0.0 and installs on unsupported Python versions now just look like this:

(venv3.8) $ pip install kani
ERROR: Could not find a version that satisfies the requirement kani (from versions: none)
ERROR: No matching distribution found for kani

I don't know if it's possible to have pypi specify that you need to update your Python version in the error.