-
-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
VectorCode fails to run when Python version is 3.14 or greater
To Reproduce
- Install Python 3.14 (
uv python install 3.14) - Install VectorCode (
uv tool install "vectorcode<1.0.0") - Run
vectorcode - See this error:
/Users/xyz/.local/share/uv/tools/vectorcode/lib/python3.14/site-packages/vectorcode/main.py:120: SyntaxWarning: 'return' in a 'finally' block return return_val Traceback (most recent call last): File "/Users/xyz/.local/bin/vectorcode", line 4, in <module> from vectorcode.main import main File "/Users/xyz/.local/share/uv/tools/vectorcode/lib/python3.14/site-packages/vectorcode/main.py", line 17, in <module> from vectorcode.common import ClientManager File "/Users/xyz/.local/share/uv/tools/vectorcode/lib/python3.14/site-packages/vectorcode/common.py", line 15, in <module> import chromadb File "/Users/xyz/.local/share/uv/tools/vectorcode/lib/python3.14/site-packages/chromadb/__init__.py", line 2, in <module> import chromadb.config File "/Users/xyz/.local/share/uv/tools/vectorcode/lib/python3.14/site-packages/chromadb/config.py", line 1, in <module> from pydantic import BaseSettings File "/Users/xyz/.local/share/uv/tools/vectorcode/lib/python3.14/site-packages/pydantic/__init__.py", line 437, in __getattr__ return _getattr_migration(attr_name) File "/Users/xyz/.local/share/uv/tools/vectorcode/lib/python3.14/site-packages/pydantic/_migration.py", line 304, in wrapper raise PydanticImportError( ...<3 lines>... ) pydantic.errors.PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package. See https://docs.pydantic.dev/2.12/migration/#basesettings-has-moved-to-pydantic-settings for more details. For further information visit https://errors.pydantic.dev/2.12/u/import-error - I did
uv python install 3.13, reinstalled VectorCode, and it now works.
Expected behavior
VectorCode should not fail.
System Information:
macOS 26.1 on Apple Silicon
kobamkode
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working