Skip to content

[BUG] Incompatible with Python >= 3.14 #305

@jsit

Description

@jsit

Describe the bug
VectorCode fails to run when Python version is 3.14 or greater

To Reproduce

  1. Install Python 3.14 (uv python install 3.14)
  2. Install VectorCode (uv tool install "vectorcode<1.0.0")
  3. Run vectorcode
  4. 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
    
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions