Skip to content

Fix library build issue with Python 3.14 #35

@daaain

Description

@daaain

Downloading pyright
Built markupsafe==3.0.2
× Failed to build pydantic-core==2.33.2
├─▶ The build backend returned an error
╰─▶ Call to maturin.build_wheel failed (exit status: 1)

  [stdout]
  Running `maturin pep517 build-wheel -i
  /home/runner/work/_temp/setup-uv-cache/builds-v0/.tmpOczmls/bin/python
  --compatibility off`

  [stderr]
      Updating crates.io index
   Downloading crates ...
    Downloaded form_urlencoded v1.2.1
    Downloaded idna_adapter v1.2.0
    Downloaded itoa v1.0.11
    Downloaded icu_locid_transform v1.5.0
    Downloaded write16 v1.0.0
    Downloaded autocfg v1.3.0
    Downloaded zerocopy-derive v0.7.34
    Downloaded zerovec v0.10.4
    Downloaded version_check v0.9.5
    Downloaded zerocopy v0.7.34
    Downloaded zerofrom v0.1.4
    Downloaded regex v1.11.1
    Downloaded yoke-derive v0.7.4
    Downloaded zerovec-derive v0.10.3
    Downloaded synstructure v0.13.1
    Downloaded writeable v0.5.5
    Downloaded ryu v1.0.18
    Downloaded url v2.5.4
    Downloaded icu_collections v1.5.0
    Downloaded serde_derive v1.0.218
    Downloaded serde_json v1.0.140
    Downloaded regex-syntax v0.8.5
    Downloaded num-bigint v0.4.6
    Downloaded portable-atomic v1.6.0
    Downloaded jiter v0.9.0
    Downloaded serde v1.0.218
    Downloaded pyo3-ffi v0.24.1
    Downloaded pyo3-macros-backend v0.24.1
    Downloaded syn v2.0.82
    Downloaded once_cell v1.19.0
    Downloaded getrandom v0.2.15
    Downloaded wasi v0.11.0+wasi-snapshot-preview1
    Downloaded target-lexicon v0.13.2
    Downloaded strum_macros v0.26.4
    Downloaded speedate v0.15.0
    Downloaded quote v1.0.36
    Downloaded heck v0.5.0
    Downloaded funty v2.0.0
    Downloaded stable_deref_trait v1.2.0
    Downloaded indoc v2.0.5
    Downloaded zerofrom-derive v0.1.4
    Downloaded rustversion v1.0.17
    Downloaded utf8_iter v1.0.4
    Downloaded unindent v0.2.3
    Downloaded strum v0.26.3
    Downloaded icu_locid v1.5.0
    Downloaded regex-automata v0.4.8
    Downloaded hashbrown v0.14.5
    Downloaded wyz v0.5.1
    Downloaded unicode-ident v1.0.12
    Downloaded libc v0.2.155
    Downloaded memoffset v0.9.1
    Downloaded python3-dll-a v0.2.13
    Downloaded proc-macro2 v1.0.86
    Downloaded litemap v0.7.3
    Downloaded lexical-parse-integer v1.0.5
    Downloaded hex v0.4.3
    Downloaded utf16_iter v1.0.5
    Downloaded radium v0.7.0
    Downloaded pyo3-build-config v0.24.1
    Downloaded num-traits v0.2.19
    Downloaded lexical-parse-float v1.0.5
    Downloaded idna v1.0.3
    Downloaded icu_properties_data v1.5.0
    Downloaded cc v1.0.101
    Downloaded bitvec v1.0.1
    Downloaded base64 v0.22.1
    Downloaded aho-corasick v1.1.3
    Downloaded memchr v2.7.4
    Downloaded lexical-util v1.0.6
    Downloaded indexmap v2.2.6
    Downloaded icu_provider v1.5.0
    Downloaded icu_properties v1.5.1
    Downloaded pyo3 v0.24.1
    Downloaded icu_normalizer_data v1.5.0
    Downloaded icu_normalizer v1.5.0
    Downloaded icu_locid_transform_data v1.5.0
    Downloaded cfg-if v1.0.0
    Downloaded ahash v0.8.11
    Downloaded yoke v0.7.4
    Downloaded uuid v1.16.0
    Downloaded smallvec v1.14.0
    Downloaded enum_dispatch v0.3.13
    Downloaded tinystr v0.7.6
    Downloaded tap v1.0.1
    Downloaded static_assertions v1.1.0
    Downloaded pyo3-macros v0.24.1
    Downloaded percent-encoding v2.3.1
    Downloaded num-integer v0.1.46
    Downloaded icu_provider_macros v1.5.0
    Downloaded equivalent v1.0.1
    Downloaded displaydoc v0.2.5
  📦 Including license file `LICENSE`
  🍹 Building a mixed python/rust project
  🔗 Found pyo3 bindings
  🐍 Found CPython 3.14 at
  /home/runner/work/_temp/setup-uv-cache/builds-v0/.tmpOczmls/bin/python
  📡 Using build options features, bindings from pyproject.toml
     Compiling proc-macro2 v1.0.86
     Compiling unicode-ident v1.0.12
     Compiling target-lexicon v0.13.2
     Compiling python3-dll-a v0.2.13
     Compiling once_cell v1.19.0
     Compiling stable_deref_trait v1.2.0
     Compiling autocfg v1.3.0
     Compiling writeable v0.5.5
     Compiling litemap v0.7.3
     Compiling libc v0.2.155
     Compiling heck v0.5.0
     Compiling num-traits v0.2.19
     Compiling version_check v0.9.5
     Compiling icu_locid_transform_data v1.5.0
     Compiling pyo3-build-config v0.24.1
     Compiling rustversion v1.0.17
     Compiling icu_properties_data v1.5.0
     Compiling smallvec v1.14.0
     Compiling quote v1.0.36
     Compiling syn v2.0.82
     Compiling memoffset v0.9.1
     Compiling memchr v2.7.4
     Compiling utf8_iter v1.0.4
     Compiling icu_normalizer_data v1.5.0
     Compiling cfg-if v1.0.0
     Compiling radium v0.7.0
     Compiling utf16_iter v1.0.5
     Compiling pyo3-macros-backend v0.24.1
     Compiling pyo3-ffi v0.24.1
     Compiling write16 v1.0.0
     Compiling static_assertions v1.1.0
  error: failed to run custom build command for `pyo3-ffi v0.24.1`

  Caused by:
    process didn't exit successfully:
  `/home/runner/work/_temp/setup-uv-cache/sdists-v9/pypi/pydantic-core/2.33.2/ok-_LolBvGeegHtleqt1u/src/target/release/build/pyo3-ffi-c8d07e87bb1f672f/build-script-build`
  (exit status: 1)
    --- stdout
    cargo:rustc-check-cfg=cfg(Py_LIMITED_API)
    cargo:rustc-check-cfg=cfg(Py_GIL_DISABLED)
    cargo:rustc-check-cfg=cfg(PyPy)
    cargo:rustc-check-cfg=cfg(GraalPy)
    cargo:rustc-check-cfg=cfg(py_sys_config, values("Py_DEBUG",
  "Py_REF_DEBUG", "Py_TRACE_REFS", "COUNT_ALLOCS"))
    cargo:rustc-check-cfg=cfg(pyo3_disable_reference_pool)
    cargo:rustc-check-cfg=cfg(pyo3_leak_on_drop_without_reference_pool)
    cargo:rustc-check-cfg=cfg(Py_3_7)
    cargo:rustc-check-cfg=cfg(Py_3_8)
    cargo:rustc-check-cfg=cfg(Py_3_9)
    cargo:rustc-check-cfg=cfg(Py_3_10)
    cargo:rustc-check-cfg=cfg(Py_3_11)
    cargo:rustc-check-cfg=cfg(Py_3_12)
    cargo:rustc-check-cfg=cfg(Py_3_13)
    cargo:rustc-check-cfg=cfg(Py_3_14)
    cargo:rerun-if-env-changed=PYO3_CROSS
    cargo:rerun-if-env-changed=PYO3_CROSS_LIB_DIR
    cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_VERSION
    cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_IMPLEMENTATION
    cargo:rerun-if-env-changed=PYO3_PRINT_CONFIG
    cargo:rerun-if-env-changed=PYO3_USE_ABI3_FORWARD_COMPATIBILITY

    --- stderr
    error: the configured Python interpreter version (3.14) is newer than
  PyO3's maximum supported version (3.13)
    = help: please check if an updated version of PyO3 is available.
  Current version: 0.24.1
    = help: set PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 to suppress this
  check and build anyway using the stable ABI
  warning: build failed, waiting for other jobs to finish...
  💥 maturin failed
    Caused by: Failed to build a native library through cargo
    Caused by: Cargo build finished with "exit status:
  101": `env -u CARGO PYO3_BUILD_EXTENSION_MODULE="1"
  PYO3_ENVIRONMENT_SIGNATURE="cpython-3.14-64bit"
  PYO3_PYTHON="/home/runner/work/_temp/setup-uv-cache/builds-v0/.tmpOczmls/bin/python"
  PYTHON_SYS_EXECUTABLE="/home/runner/work/_temp/setup-uv-cache/builds-v0/.tmpOczmls/bin/python"
  "cargo" "rustc" "--features" "pyo3/extension-module"
  "--message-format" "json-render-diagnostics" "--manifest-path"
  "/home/runner/work/_temp/setup-uv-cache/sdists-v9/pypi/pydantic-core/2.33.2/ok-_LolBvGeegHtleqt1u/src/Cargo.toml"
  "--release" "--lib" "--crate-type" "cdylib"`
  Error: command ['maturin', 'pep517', 'build-wheel', '-i',
  '/home/runner/work/_temp/setup-uv-cache/builds-v0/.tmpOczmls/bin/python',
  '--compatibility', 'off'] returned non-zero exit status 1

  hint: This usually indicates a problem with the package or the build
  environment.

help: pydantic-core (v2.33.2) was included because claude-code-log
(v0.5.1) depends on pydantic (v2.11.7) which depends on
pydantic-core

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions