Skip to content

SNOW-2449382: Install snwoflake-cli with python 3.14 fails #2669

@occitaneUbald

Description

@occitaneUbald

SnowCLI version

Latest

Python version

3.14

Platform

No response

What happened

Tryied to install snowflake-cli using python 3.14 :

% python --version              
Python 3.14.0
% pip install snowflake-cli-labs

With my understanding, it failed because it requested an old version of pydantic-core (2.33.2) instead of the last (2.41.4) which is referenced in the pylock of snowflake-cli.
Updating the version of pydantic-core should fix the issue.

Console output

Building wheels for collected packages: pydantic-core, pyyaml, snowflake-connector-python, cffi
  Building wheel for pydantic-core (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for pydantic-core (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [106 lines of output]
      Running `maturin pep517 build-wheel -i [PROJECT_DIRECTORY]/venv/bin/python --compatibility off`
      📦 Including license file `LICENSE`
      🍹 Building a mixed python/rust project
      🔗 Found pyo3 bindings
      🐍 Found CPython 3.14 at [PROJECT_DIRECTORY]/venv/bin/python
      📡 Using build options features, bindings from pyproject.toml
      💻 Using `MACOSX_DEPLOYMENT_TARGET=11.0` for aarch64-apple-darwin by default
         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 heck v0.5.0
         Compiling libc v0.2.155
         Compiling version_check v0.9.5
         Compiling icu_locid_transform_data v1.5.0
         Compiling smallvec v1.14.0
         Compiling icu_properties_data v1.5.0
         Compiling rustversion v1.0.17
         Compiling memchr v2.7.4
         Compiling num-traits v0.2.19
         Compiling memoffset v0.9.1
         Compiling write16 v1.0.0
         Compiling icu_normalizer_data v1.5.0
         Compiling cfg-if v1.0.0
         Compiling static_assertions v1.1.0
         Compiling utf8_iter v1.0.4
         Compiling radium v0.7.0
         Compiling utf16_iter v1.0.5
         Compiling lexical-util v1.0.6
         Compiling ahash v0.8.11
         Compiling serde v1.0.218
         Compiling tap v1.0.1
         Compiling wyz v0.5.1
         Compiling getrandom v0.2.15
         Compiling aho-corasick v1.1.3
         Compiling pyo3-build-config v0.24.1
         Compiling lexical-parse-integer v1.0.5
         Compiling zerocopy v0.7.34
         Compiling quote v1.0.36
         Compiling num-integer v0.1.46
         Compiling funty v2.0.0
         Compiling serde_json v1.0.140
         Compiling syn v2.0.82
         Compiling equivalent v1.0.1
         Compiling unindent v0.2.3
         Compiling hashbrown v0.14.5
         Compiling num-bigint v0.4.6
         Compiling percent-encoding v2.3.1
         Compiling indoc v2.0.5
         Compiling regex-syntax v0.8.5
         Compiling form_urlencoded v1.2.1
         Compiling bitvec v1.0.1
         Compiling lexical-parse-float v1.0.5
         Compiling itoa v1.0.11
         Compiling indexmap v2.2.6
         Compiling ryu v1.0.18
         Compiling uuid v1.16.0
         Compiling hex v0.4.3
         Compiling base64 v0.22.1
         Compiling pyo3-macros-backend v0.24.1
         Compiling pyo3-ffi v0.24.1
         Compiling pyo3 v0.24.1
         Compiling jiter v0.9.0
         Compiling pydantic-core v2.33.2 (/private/var/folders/n5/xyjnkwm16js54qgsv_709d2h0000gp/T/pip-install-zk24pvcy/pydantic-core_a2c6e4ed076745f1ba5005a79071abf2)
         Compiling regex-automata v0.4.8
      error: failed to run custom build command for `pyo3-ffi v0.24.1`
      
      Caused by:
        process didn't exit successfully: `/private/var/folders/n5/xyjnkwm16js54qgsv_709d2h0000gp/T/pip-install-zk24pvcy/pydantic-core_a2c6e4ed076745f1ba5005a79071abf2/target/release/build/pyo3-ffi-5b7305ec06f3c60c/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 MACOSX_DEPLOYMENT_TARGET="11.0" PYO3_BUILD_EXTENSION_MODULE="1" PYO3_ENVIRONMENT_SIGNATURE="cpython-3.14-64bit" PYO3_PYTHON="[PROJECT_DIRECTORY]/venv/bin/python" PYTHON_SYS_EXECUTABLE="[PROJECT_DIRECTORY]/venv/bin/python" "cargo" "rustc" "--features" "pyo3/extension-module" "--message-format" "json-render-diagnostics" "--manifest-path" "/private/var/folders/n5/xyjnkwm16js54qgsv_709d2h0000gp/T/pip-install-zk24pvcy/pydantic-core_a2c6e4ed076745f1ba5005a79071abf2/Cargo.toml" "--release" "--lib" "--crate-type" "cdylib" "--" "-C" "link-arg=-undefined" "-C" "link-arg=dynamic_lookup" "-C" "link-args=-Wl,-install_name,@rpath/pydantic_core._pydantic_core.cpython-314-darwin.so"`
      Error: command ['maturin', 'pep517', 'build-wheel', '-i', '[PROJECT_DIRECTORY]/venv/bin/python', '--compatibility', 'off'] returned non-zero exit status 1
      [end of output]

How to reproduce

Install python 3.14
Install snowflake-cli using pip install snowflake-cli-labs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions