-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
🐞 Bug Report: vanna[anthropic,fastapi] installs vanna 0.1.0 instead of 2.x
Describe the bug
When installing Vanna via:
pip install "vanna[anthropic,fastapi]"it installs vanna v0.1.0, despite the website documentation recommending this command for Vanna 2.x. As a result, many modules from Vanna 2 (e.g., vanna.base, vanna.servers.fastapi) are missing or broken.
To Reproduce
Steps to reproduce the behavior:
-
In a clean Python environment, run:
pip install "vanna[anthropic,fastapi]" -
After installation, run:
python -c "import vanna; print(vanna.__version__)" -
Observe that the version printed is
0.1.0.
Expected behavior
I expect the pip install "vanna[anthropic,fastapi]" command (as documented on the vanna.ai website) to install a 2.x version of Vanna, not 0.1.0.
Error logs / Screenshots
No stack trace is needed here because the issue is purely version mismatch — but here is the relevant output:
pip show vanna
Name: vanna
Version: 0.1.0
...
python -c "import vanna; print(vanna.__version__)"
0.1.0
Desktop (please complete the following information):
- OS: e.g. Ubuntu 22.04 (or whatever you're using)
- Python: 3.11.x
- Vanna: after install 0.1.0
- pip: (whatever version)
Additional context
-
According to the [Vanna GitHub README](https://github.com/vanna-ai/vanna), the proper installation for v2 (in development) is:
pip install --force-reinstall --no-cache-dir 'vanna[flask,anthropic] @ git+https://github.com/vanna-ai/vanna.git@v2' -
The PyPI page [vanna 2.0.0rc1](https://pypi.org/project/vanna/2.0.0rc1/) shows a release, but the stable
vanna[extras]installation path appears to still resolve to 0.1.0.
Suggested fix
- Update the PyPI metadata for vanna 2.x to correctly support extras like
anthropicandfastapi, so thatpip install "vanna[anthropic,fastapi]"resolves to 2.x. - Alternatively, update the documentation to reflect the correct installation command for v2 (e.g., using GitHub URL) — or mark stable 2.x on PyPI.
Additionally, there's already a somewhat related issue here: “Dependency Versioning #236” ([GitHub]2) — you could reference that or request to reopen/triage specifically for this extras versioning bug.
If you like, I can generate a correctly-formatted GitHub issue (Markdown) for you — ready to paste into the Vanna GitHub. Do you want me to do that?