Skip to content

Support Python 3.14Β #823

@CaliLuke

Description

@CaliLuke

Description

Creating a TypeDB.driver instance on Python 3.14 (macOS arm64) with driver version 3.5.5 crashes the interpreter with a segmentation fault during DriverOptions construction. The crash happens before any query or session is opened.

Environment

  1. TypeDB distribution: Core
  2. TypeDB version: 3.5.5
  3. Environment: macOS Sonoma 14.x, Apple Silicon (arm64), Python 3.14.0, virtualenv managed by uv
  4. Studio version: N/A (not used)
  5. Other details:
    • typedb-driver Python package version 3.5.5
    • No TLS (DriverOptions(False, None))
    • Credentials: Credentials("admin", "password")

Reproducible Steps

  1. Set up

    python3.14 -m venv .venv
    source .venv/bin/activate
    pip install typedb-driver==3.5.5
  2. Execute

    from typedb.driver import TypeDB, Credentials, DriverOptions
    
    # Crashes with segfault on Python 3.14/macOS arm64
    driver = TypeDB.driver(
        "localhost:1729",
        Credentials("admin", "password"),
        DriverOptions(False, None),
    )
  3. Unexpected result

    • Interpreter exits with a fatal error: segmentation fault.
    • Stack trace shows crash in typedb/native_driver_wrapper.py inside driver_options_new called from typedb/api/connection/driver_options.py.

Expected result

Driver should be constructed without crashing, returning a usable Driver instance or raising a Python exception if configuration is invalid.

Additional information

Relevant logs from TypeDB or Driver:

  • Crash trace excerpt:
    Fatal Python error: Segmentation fault
    File ".../typedb/native_driver_wrapper.py", line 590 in driver_options_new
    File ".../typedb/api/connection/driver_options.py", line 39 in __init__
    File ".../typedb.py", line 31 in connect
    
  • No server-side logs observed (driver crashes before connecting).
  • Same code path works on Python 3.13 with the same driver version.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions